;Adaptec AHA-1540B/1542B Configuration File
;This file does not describe all board options.
;Only those options that require system resources are described.
BOARD
     ID = "ICU0091"
     NAME = "Adaptec AHA-1540/1542 SCSI Host Adapter"
     MFR = "Adaptec"
     CATEGORY = "MSD"
     SLOT = ISA16
     COMMENTS = "Adaptec AHA-1540/1542 SCSI Host Adapter\n"
     VERSION = 2.0

JUMPER(5) = 13
     NAME = "J5"
     JTYPE = PAIRED
     VERTICAL = NO
     REVERSE = YES
     LABEL = LOC(1-13) "Sync Tran"
		       "Diagnostic"
		       "SCSI Par"
		       "SCSI ID0"
		       "SCSI ID1"
		       "SCSI ID2"
		       "DMA 0"
		       "DMA 1"
		       "IRQ 0"
		       "IRQ 1"
		       "IRQ 2"
		       "DMA Speed"
		       "DMA Speed"
     FACTORY = LOC(1-13) 0000000101010

JUMPER(6) = 5
     NAME = "J6"
     JTYPE = PAIRED
     VERTICAL = NO
     REVERSE = YES
     LABEL = LOC(1-5) "BIOS Enable"
		      "Not Used"
		      "Not Used"
		      "Not Used"
		      "Sense Dis"
     INITVAL = LOC(1-5) x000x
     FACTORY = LOC(1-5) 10000

JUMPER(7) = 8
     NAME = "J7"
     JTYPE = PAIRED
     VERTICAL = YES
     REVERSE = YES
     LABEL = LOC(1-8) "Floppy Add"
		      "I/O Port 0"
		      "I/O Port 1"
		      "I/O Port 2"
		      "Wait State"
		      "Wait State"
		      "BIOS Addr0"
		      "BIOS Addr1"
     FACTORY = LOC(1-8) 01000000

JUMPER(8) = 8
     NAME = "J8"
     JTYPE = PAIRED
     VERTICAL = NO
     REVERSE = YES
     LABEL = LOC(1-8) "Floppy En"
		      "DREQ 2"
		      "DREQ 3"
		      "DACK 2"
		      "DACK 3"
		      "IRQ 6"
		      "IRQ 10"
		      "Dual Spd"
     FACTORY = LOC(1-8) 11010100

JUMPER(9) = 14
     NAME = "J9"
     JTYPE = PAIRED
     VERTICAL = NO
     REVERSE = YES
     LABEL = LOC(1-14) "DREQ 0"
		       "DREQ 5"
		       "DREQ 6"
		       "DREQ 7"
		       "DACK 0"
		       "DACK 5"
		       "DACK 6"
		       "DACK 7"
		       "IRQ 9"
		       "IRQ 10"
		       "IRQ 11"
		       "IRQ 12"
		       "IRQ 14"
		       "IRQ 15"
     FACTORY = LOC(1-14) 01000100001000


GROUP = "System Resources Used "
TYPE = "MSD"

FUNCTION = "SCSI Controller"
TYPE = "SCS"

  SUBFUNCTION = "BIOS Address"
     CHOICE = "DC000-DFFFF"
       FREE
       MEMORY = 16K
       ADDRESS = 0DC000H
       WRITABLE = NO
       MEMTYPE = OTH
       SHARE = NO
       INIT = JUMPER(6) LOC(1) 1
       INIT = JUMPER(7) LOC(7 8) 00
     CHOICE = "CC000-CFFFF"
       FREE
       MEMORY = 16K
       ADDRESS = 0CC000H
       WRITABLE = NO
       MEMTYPE = OTH
       SHARE = NO
       INIT = JUMPER(6) LOC(1) 1
       INIT = JUMPER(7) LOC(7 8) 10
     CHOICE = "D8000-DBFFF"
       FREE
       MEMORY = 16K
       ADDRESS = 0D8000H
       WRITABLE = NO
       MEMTYPE = OTH
       SHARE = NO
       INIT = JUMPER(6) LOC(1) 1
       INIT = JUMPER(7) LOC(7 8) 01
     CHOICE = "C8000-CBFFF"
       FREE
       MEMORY = 16K
       ADDRESS = 0C8000H
       WRITABLE = NO
       MEMTYPE = OTH
       SHARE = NO
       INIT = JUMPER(6) LOC(1) 1
       INIT = JUMPER(7) LOC(7 8) 11
     CHOICE = "Disabled"
       DISABLE = YES
       FREE
       INIT = JUMPER(6) LOC(1) 0
       INIT = JUMPER(7) LOC(7 8) 00

  SUBFUNCTION = "I/O Port Address"
     CHOICE = "330h"
       FREE
       PORT = 330H-333h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 100
     CHOICE = "130h"
       FREE
       PORT = 130H-133h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 101
     CHOICE = "134h"
       FREE
       PORT = 134H-137h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 001
     CHOICE = "230h"
       FREE
       PORT = 230H-233h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 110
     CHOICE = "234h"
       FREE
       PORT = 234H-237h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 010
     CHOICE = "334h"
       FREE
       PORT = 334H-337h
       SHARE = NO
       INIT = JUMPER(7) LOC(2 3 4) 000

  SUBFUNCTION = "DMA Channel"
      CHOICE = "DMA Channel 5"
		LINK                
		DMA = 5
		SHARE = NO
		INIT = JUMPER(5) LOC(7 8) 01
		INIT = JUMPER(9) LOC(1-8) 01000100 
		 
	CHOICE = "DMA Channel 0"
		LINK                
		DMA = 0
		SHARE = NO
		INIT = JUMPER(5) LOC(7 8) 11
		INIT = JUMPER(9) LOC(1-8) 10001000 
	CHOICE = "DMA Channel 6"
		LINK                
		DMA = 6
		SHARE = NO
		INIT = JUMPER(5) LOC(7 8) 10
		INIT = JUMPER(9) LOC(1-8) 00100010 
	CHOICE = "DMA Channel 7"
		LINK                
		DMA = 7
		SHARE = NO
		INIT = JUMPER(5) LOC(7 8) 00
		INIT = JUMPER(9) LOC(1-8) 00010001 

  SUBFUNCTION = "DMA Request"
     CHOICE = "DREQ5"
       LINK
       INIT = JUMPER(5) LOC(7 8) 01
       INIT = JUMPER(9) LOC(1-4) 0100
     CHOICE = "DREQ0"
       LINK
       INIT = JUMPER(5) LOC(7 8) 11
       INIT = JUMPER(9) LOC(1-4) 1000
     CHOICE = "DREQ6"
       LINK
       INIT = JUMPER(5) LOC(7 8) 10
       INIT = JUMPER(9) LOC(1-4) 0010
     CHOICE = "DREQ7"
       LINK
       INIT = JUMPER(5) LOC(7 8) 00
       INIT = JUMPER(9) LOC(1-4) 0001
  SUBFUNCTION = "DMA ACK"
     CHOICE = "DACK5"
       LINK
       INIT = JUMPER(5) LOC(7 8) 01
       INIT = JUMPER(9) LOC(5-8) 0100
     CHOICE = "DACK0"
       LINK
       INIT = JUMPER(5) LOC(7 8) 11
       INIT = JUMPER(9) LOC(5-8) 1000
     CHOICE = "DACK6"
       LINK
       INIT = JUMPER(5) LOC(7 8) 10
       INIT = JUMPER(9) LOC(5-8) 0010
     CHOICE = "DACK7"
       LINK
       INIT = JUMPER(5) LOC(7 8) 00
       INIT = JUMPER(9) LOC(5-8) 0001

  SUBFUNCTION = "Interrupt"
     CHOICE = "11"
       FREE
       IRQ = 11
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 010
       INIT = JUMPER(9) LOC(9-14) 001000
     CHOICE = "9"
       FREE
       IRQ = 9
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 000
       INIT = JUMPER(9) LOC(9-14) 100000
     CHOICE = "10"
       FREE
       IRQ = 10
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 100
       INIT = JUMPER(9) LOC(9-14) 010000
     CHOICE = "12"
       FREE
       IRQ = 12
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 110
       INIT = JUMPER(9) LOC(9-14) 000100
     CHOICE = "14"
       FREE
       IRQ = 14
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 001
       INIT = JUMPER(9) LOC(9-14) 000010
     CHOICE = "15"
       FREE
       IRQ = 15
       SHARE = NO
       INIT = JUMPER(5) LOC(9 10 11) 101
       INIT = JUMPER(9) LOC(9-14) 000001

  SUBFUNCTION = "Adapter SCSI ID"
     CHOICE = "7"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 000
     CHOICE = "6"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 100
     CHOICE = "5"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 010
     CHOICE = "4"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 110
     CHOICE = "3"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 001
     CHOICE = "2"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 101
     CHOICE = "1"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 011
     CHOICE = "0"
       FREE
       INIT = JUMPER(5) LOC(4 5 6) 111


FUNCTION = "Floppy Controller" 
TYPE = "FDC"
     CHOICE = "Enable"
       COMBINE

       PORT = 1F0H-1F7H | 170H-177H
       SHARE = NO

       DMA = 2 | 3
       SHARE = NO

       IRQ = 6 | 10
       SHARE = NO
       ;PORT=1F0H-1F7H, JUMPER(7) LOC(1) 0, JUMPER(8) LOC(1) 1
       ;PORT=170H-177H, JUMPER(7) LOC(1) 1, JUMPER(8) LOC(1) 1
       ;DMA=2, JUMPER(8) LOC(2-5) 1010
       ;DMA=3, JUMPER(8) LOC(2-5) 0101
       ;IRQ=6, JUMPER(8) LOC(6 7) 10
       ;IRQ=10, JUMPER(8) LOC(6 7) 01
       INIT = JUMPER(7) LOC(1) 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1
       INIT = JUMPER(8) LOC(1-7) 1101010 | 1101001 |1010110 | 1010101 | 1101010 | 1101001 |1010110 |1010101
     CHOICE = "Disable"
       FREE
       INIT = JUMPER(8) LOC(1) 0

ENDGROUP
