
;==========================================================
; TRM DC-820 configuration file
;
; DO NOT change sequence of the functions, because the trm0820.ovl
; will reference the function value in the file
;==========================================================
BOARD
	ID="TRM0820"
	NAME="DC-820 EISA SCSI Cache Host Adapter"
	MFR="TEKRAM Technology Co., Ltd."
	CATEGORY="MSD"
	SLOT=EISA
	LENGTH=330
	AMPERAGE=2500
	SKIRT=NO
	READID=YES
	BUSMASTER=50
	IOCHECK=VALID
;	DISABLE=SUPPORTED
	COMMENTS="DC-820 Configuration File"

IOPORT(1)=0zc90h			;DMA
	INITVAL = 00X00000		;command code = 20h
IOPORT(2)=0zc91h			;IRQ selection / BIOS address
	INITVAL = 00XXXXXX
IOPORT(3)=0zc92h			;DMA / IO port
	INITVAL = 00XXXXXX
IOPORT(4)=0zc93h
	INITVAL = XXXXXXXX		; line size
IOPORT(5)=0zc94h
	INITVAL = XXXXXXXX		; SCSI ID
IOPORT(6)=0zc95h
	INITVAL = 0000XXXX		; DRAM test / DOS 5 support
IOPORT(7)=0zc96h
	INITVAL = XXXXXXXX		; Power on delay
IOPORT(8)=0zc97h
	INITVAL = XXXXXXXX		; # of retry before DEVICE is blocked
IOPORT(9)=0zc98h			; low byte = HASH depth
	SIZE = WORD			; high byte = DOS 5 BIOS area #
	INITVAL = XXXXXXXXXXXXXXXX	; # of retry before DEVICE is blocked
IOPORT(10)=0zc9ah			; translation method for BIOS parameter
	SIZE = WORD			; default = 0 using EEPROM 1G.....
	INITVAL = XXXXXXXXXXXXXXXX	;	  = 1 TEKRAM translation method
					;	  = 2 Mylex translation
					;	  = 3 Automatic method
IOPORT(11)=0zc9ch			; Low byte = # of failed command
	SIZE=WORD			; high byte reserved
	INITVAL = XXXXXXXXXXXXXXXX

IOPORT(16)=0zc8fh			; IO done flag
	INITVAL = XXXXXXXX		; if bit 0 == 1
IOPORT(17)=0zc8dh			; DMA
	INITVAL = 000000X0		; Doorbel interrupt to controller

FUNCTION = "DC-820 Adapter Hardware Options"
  TYPE="MSD"
SUBFUNCTION = "Interrupt level selection"

	HELP = "Select an interrupt for DC-820"

	COMMENTS = "Select an interrupt for DC-820"

	CHOICE = "IRQ 11     - Default"
		LINK
		IRQ =  11
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 100B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ 10"
		LINK
		IRQ =  10
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 101B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ 12"
		LINK
		IRQ =  12
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 011B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ 9"
		LINK
		IRQ =  9
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 110B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ 14"
		LINK
		IRQ =  14
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 010B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ 15"
		LINK
		IRQ =  15
		SHARE = NO
		TRIGGER = EDGE
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 001B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

	CHOICE = "IRQ Disabled"
		LINK
		INIT=IOPORT(1) LOC(5) 1
		INIT=IOPORT(16) LOC(7-0) 11111111b
		INIT=IOPORT(17) LOC(1) 1
		INIT=IOPORT(2) LOC(5-3) 111B
		INIT=IOPORT(9) LOC(15-0) 0000000000100000b
		INIT=IOPORT(10) LOC(15-0) 0000000000000000b
		INIT=IOPORT(11) LOC(15-0) 0000000000001111b

SUBFUNCTION = "Host Adapter BIOS ADDRESS"
	HELP = "Select the DC-820 BIOS base address"
	COMMENTS = "Select the DC-820 BIOS base address"

	CHOICE="DC000H     - Default"
		COMBINE
		MEMORY=16K
		ADDRESS=0DC000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 001B

	CHOICE = "Disabled"
;		DISABLE = yes
		FREE
		INIT=IOPORT(2) LOC(2-0) 111B

	CHOICE="D8000H"
		COMBINE
		MEMORY=16K
		ADDRESS=0D8000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 010B

	CHOICE="D4000H"
		COMBINE
		MEMORY=16K
		ADDRESS=0D4000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 011B

	CHOICE="D0000H"
		COMBINE
		MEMORY=16K
		ADDRESS=0D0000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 100B

	CHOICE="CC000H"
		COMBINE
		MEMORY=16K
		ADDRESS=0CC000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 101B

	CHOICE="C8000H"
		COMBINE
		MEMORY=16K
		ADDRESS=0C8000H
		WRITABLE=NO
		MEMTYPE = OTH
		SHARE=NO
		SIZE=BYTE
		CACHE=YES
		DECODE=32
		INIT=IOPORT(2) LOC(2-0) 110B

SUBFUNCTION = "I/O port definition"
	HELP = "Select the DC-820 base port address"
	COMMENTS = "Select the DC-820 base port address"

	CHOICE	= "330H       - Default"
		LINK
		PORT = 330H-333H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 000B

	CHOICE	= "334H"
		LINK
		PORT = 334H-337H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 001B

	CHOICE	= "230H"
		LINK
		PORT = 230H-233H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 010B

	CHOICE	= "234H"
		LINK
		PORT = 234H-237H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 011B

	CHOICE	= "130H"
		LINK
		PORT = 130H-133H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 100B

	CHOICE	= "134H"
		LINK
		PORT = 134H-137H
		SHARE=NO
		SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 101B

	CHOICE	= "Slot specific I/O XC00H"
		LINK
	;	PORT = x800H-x803H
	;	SHARE=NO
	;	SIZE=BYTE
		INIT=IOPORT(3) LOC (2-0) 110B

       ;CHOICE	= "I/O PORT Disabled"
;		DISABLE = YES
       ;	FREE
       ;	INIT=IOPORT(3) LOC (2-0) 111B

SUBFUNCTION = "DMA Channel Definition"
	HELP = "This option selects the DMA channel for DC-820"
	COMMENTS = "Select the DC-820 DMA channel"

	CHOICE = "DMA 5      - Default"
		LINK
		DMA = 5
		SHARE = YES
		INIT=IOPORT(3) LOC(5-3) 101B

	CHOICE = "DMA 6"
		LINK
		DMA = 6
		SHARE = YES
		INIT=IOPORT(3) LOC(5-3) 110B

	CHOICE = "DMA 7"
		LINK
		DMA = 7
		SHARE = YES
		INIT=IOPORT(3) LOC(5-3) 111B

	CHOICE = "DMA 0"
		LINK
		DMA = 0
		SHARE = YES
		INIT=IOPORT(3) LOC(5-3) 000B

	CHOICE = "DMA Disabled"
;		DISABLE = YES
		FREE
		INIT=IOPORT(3) LOC(5-3) 001B

FUNCTION = "DC-820 Adapter Firmware Options"
  TYPE=""
SUBFUNCTION = "Cache line size"
	HELP = "This option set the cache line size for DC-820"
	COMMENTS = "Select the DC-820 cache line size"

	CHOICE = "16K Bytes  - Default"
		LINK
		INIT=IOPORT(4) LOC(7-0) 00010000B

	CHOICE = " 8K Bytes"
		LINK
		INIT=IOPORT(4) LOC(7-0) 00001000B

	CHOICE = " 4K Bytes"
		LINK
		INIT=IOPORT(4) LOC(7-0) 00000100B

SUBFUNCTION = "Cache DRAM test"
	HELP = "This option select the cache DRAM test method"
	COMMENTS = "Select the DC-820 cache DRAM test method"

	CHOICE = "Suppressed - Default"
		LINK
		INIT=IOPORT(6) LOC(3 2) 00B

	CHOICE = "Simplified"
		LINK
		INIT=IOPORT(6) LOC(3 2) 01B

	CHOICE = "Full test"
		LINK
		INIT=IOPORT(6) LOC(3 2) 10B

SUBFUNCTION = "Host Adapter SCSI ID"
	HELP = "This option set DC-820 Host Adapter SCSI ID"
	COMMENTS = "Select SCSI ID for DC-820"

	CHOICE = "SCSI ID 7  - Default"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000111B

	CHOICE = "SCSI ID 6"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000110B

	CHOICE = "SCSI ID 5"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000101B

	CHOICE = "SCSI ID 4"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000100B

	CHOICE = "SCSI ID 3"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000011B

	CHOICE = "SCSI ID 2"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000010B

	CHOICE = "SCSI ID 1"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000001B

	CHOICE = "SCSI ID 0"
		LINK
		INIT=IOPORT(5) LOC(7-0) 00000000B

SUBFUNCTION = "DOS 5 support enable / disable"
	HELP = "This option enable or disable DOS 5 support.
		If disabled, support up to 2 physical DOS drives.
		If enabled, maximum of 8 physical drives can be
		handled by controller BIOS. A scratch RAM ( 1K bytes ) area is required
		for this option. The scratch RAM is allocated at TOP of
		DOS memory ( i.e. 640K-1k )."

	COMMENTS = "Select DOS 5 option for DC-820"

	CHOICE = "Disabled   - Default"
		LINK
		INIT=IOPORT(6) LOC(1 0) 01B

	CHOICE = "Enabled"
		LINK
		INIT=IOPORT(6) LOC(1 0) 11B

;;	CHOICE = "Enabled, scratch RAM area = unused interrupt vectors"
;;		LINK
;;		INIT=IOPORT(6) LOC(1 0) 10B

SUBFUNCTION = "Power ON delay for SCSI devices"
	HELP = "This option controls the time to wait for SCSI device ready"
	COMMENTS = "Select power-on delay for SCSI devices"

	CHOICE = "30 seconds - Default"
		LINK
		INIT=IOPORT(7) LOC(7-0) 00011110B

	CHOICE = "40 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 00101000B

	CHOICE = "50 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 00110010B

	CHOICE = "60 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 00111100B

	CHOICE = "80 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 01010000B

	CHOICE = "100 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 01100100B

	CHOICE = "120 seconds"
		LINK
		INIT=IOPORT(7) LOC(7-0) 01111000B

;SUBFUNCTION = "Number of accumulated failed mirrored SCSI command before warning beeper on"
;	 HELP = "This option set the number of accumulated FAILED MIRRORED SCSI
;		 to warn user by setting warning beeper"
;
;	 COMMENTS = "Select number of failed SCSI command"
;
;	 CHOICE = "1"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00000001B
;
;	 CHOICE = "3"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00000011B
;
;	 CHOICE = "5"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00000101B
;
;	 CHOICE = "7"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00000111B
;
;	 CHOICE = "10"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00001010B
;
;	 CHOICE = "15"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00001111B
;
;	 CHOICE = "20"
;		 LINK
;		 INIT=IOPORT(8) LOC(7-0) 00010100B
;

include = "trm0820.ovl"

