; Olivetti EISA SCSI Controller (ESC-1)

BOARD
  ID = "OLI1021"
  NAME = "Olivetti EISA SCSI Controller (ESC-1)"
  MFR = "OLIVETTI"
  CATEGORY = "MSD"
  SLOT = EISA
  AMPERAGE = 3000
  READID = YES
  BUSMASTER = 01
  IOCHECK = INVALID
  DISABLE = UNSUPPORTED

IOPORT(1) = 0zC90h			; Configuration Register 00h
  INITVAL = 0000000xb

IOPORT(2) = 0zC91h			; Configuration Register 01h
  INITVAL = 0xxxxxxxb

IOPORT(3) = 0zC92h			; Configuration Register 02h
  INITVAL = 000000xxb

IOPORT(4) = 0zC93h			; Configuration Register 03
  INITVAL = 0000000xb

IOPORT(5) = 0zC8Dh			; Doorbell Register (must be last)
  INITVAL = 000x0000b


GROUP = "Hard Disk Controller"
  TYPE = "MSD"

  FUNCTION = "AT Compatible Disk Controller"
  HELP = " If the AT compatible mode is enabled, the first two logical drives
	   must be configured on this ESC controller."
    CHOICE = "Enabled"
      link
	IRQ  = 14
	PORT = 1F0h-1F7h
	INIT = IOPORT(2) LOC(0) 1
    CHOICE = "Disabled"
      free
	INIT = IOPORT(2) LOC(0) 0

  FUNCTION= "SCSI ID Selection"
    SUBFUNCTION= "Drive 0"
      CHOICE = "Target ID - 00"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 000
      CHOICE = "Target ID - 01"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 001
      CHOICE = "Target ID - 02"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 010
      CHOICE = "Target ID - 03"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 011
      CHOICE = "Target ID - 04"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 100
      CHOICE = "Target ID - 05"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 101
      CHOICE = "Target ID - 06"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 110

      CHOICE = "Not Present"
	free
	  INIT = IOPORT(2) LOC(3 2 1) 111

    SUBFUNCTION= "Drive 1"
      CHOICE = "Not Present"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 111
      CHOICE = "Target ID - 01"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 001
      CHOICE = "Target ID - 02"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 010
      CHOICE = "Target ID - 03"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 011
      CHOICE = "Target ID - 04"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 100
      CHOICE = "Target ID - 05"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 101
      CHOICE = "Target ID - 06"
	free
	  INIT = IOPORT(2) LOC(6 5 4) 110

  FUNCTION = "ROM BIOS Access Mode"
    CHOICE = "AT Compatible - 2 Drives only"
    HELP = " The 'AT compatible' mode will cause the BIOS to function using the
	     AT compatible mode of the SCSI controller, supporting the first
	     two logical hard disks only."
	free
	INIT = IOPORT(4) LOC(0) 1
    CHOICE = "High Performance SCSI"
    HELP = " The 'High Performace SCSI' mode will cause the BIOS to function
	     using the SCSI mode of the controller."
	free
	INIT = IOPORT(4) LOC(0) 0
ENDGROUP


FUNCTION = "Floppy Disk Controller"
  CHOICE = "Enabled"
    link
      IRQ  = 6
      DMA  = 2
      SHARE = YES
      PORT = 3f2h 3f4h 3f5h 3f7h
      INIT = IOPORT(1) LOC(0) 1
  CHOICE = "Disabled"
    free
      INIT = IOPORT(1) LOC(0) 0


FUNCTION = "Direct SCSI"
  CHOICE = "Enabled"
    link
      IRQ = 5 | 11 | 10 | 15		; SCSI Mode Interrupt
      SHARE = YES
      TRIGGER = LEVEL
      INIT = IOPORT(3) LOC (1 0) 10 | 00 | 01 | 11
    free
      INIT = IOPORT(5) LOC(4) 1 	; Ring Doorbell (must be last)
