; PS/2 Configuration file for the Alloy HI-2 Bus Interface Card
; Version 1.20
; ALLOY PART #: 630274-002          
AdapterID	077FFh

AdapterName	"Alloy HI-2 PC Expansion Bus Interface Card for the PS/2"

NumBytes	4
; All four available POS ports are used by this card.

NamedItem
; Let's find out what's in the box.  If we have just slaves, we'll only
; use the D000 window.  If we have MainLine also, we'll use C000 and D000.
; In either event the access address range (A23-A20) is set to zero.
;GG-11/11/87-(memory resource settings added, order of choices swapped)
	Prompt	"Contents of Expansion Box"
		choice	"Single Addr Slave Cards Only"	pos[3]=1X101111b
							mem 0D0000h-0DFFFFh
		choice	"Slave and MainLine Cards"	pos[3]=1X111111b
							mem 0C0000h-0DFFFFh
	Help
	"The Alloy expansion box connected to the HI-2 adapter may contain
	either Single Address Range Slaves alone, or Slaves plus a MainLine
	card.  If you have a MainLine card, select 'Slave and MainLine Cards'.
	If you do not have a MainLine card, select 'Single Addr Slave Cards
	Only'.  If you are not sure what is in your box, select 'Slave and
	Mainline Cards', as this will work in either case."

NamedItem
; Now to set up the I/O address.  Note that the same value selected here
; must be considered in the address given to NTNX.  The POS2 register
; (at 104h) is defined as:
;	POS Register Bit	 7   6   5   4   3   2   1   0
;	I/O Address Bit		15  14  13  12  11  10   X   X
; So, to select a given address as the I/O base assign pos[2] the upper
; six bits of that value.  Note that this assigns an entire 1K page. Also
; be aware that the bit assignments are low true.  See below for examples. 
;GG-11/11/87 (io resource settings added)
	Prompt	"I/O Port Address Range Base"
		choice	"0400h"		pos[2]=111110XXb
					io 00620h-0063Fh
		choice	"0800h"		pos[2]=111101XXb
					io 00A20h-00A3Fh
		choice	"0C00h"		pos[2]=111100XXb
					io 00E20h-00E3Fh
		choice	"1000h"		pos[2]=111011XXb
					io 01220h-0123Fh
		choice	"1400h"		pos[2]=111010XXb
					io 01620h-0163Fh
		choice	"1800h"		pos[2]=111001XXb
					io 01A20h-01A3Fh
		choice	"1C00h"		pos[2]=111000XXb
					io 01E20h-01E3Fh
		choice	"2000h"		pos[2]=110111XXb
					io 02220h-0223Fh
		choice	"2400h"		pos[2]=110110XXb
					io 02620h-0263Fh
		choice	"2800h"		pos[2]=110101XXb
					io 02A20h-02A3Fh
		choice	"2C00h"		pos[2]=110100XXb
					io 02E20h-02E3Fh
		choice	"3000h"		pos[2]=110011XXb
					io 03220h-0323Fh
		choice	"3400h"		pos[2]=110010XXb
					io 03620h-0363Fh
		choice	"3800h"		pos[2]=110001XXb
					io 03A20h-03A3Fh
		choice	"3C00h"		pos[2]=110000XXb
					io 03E20h-03E3Fh
		choice	"4000h"		pos[2]=101111XXb
					io 04220h-0423Fh
		choice	"4400h"		pos[2]=101110XXb
					io 04620h-0463Fh
		choice	"4800h"		pos[2]=101101XXb
					io 04A20h-04A3Fh
		choice	"4C00h"		pos[2]=101100XXb
					io 04E20h-04E3Fh
		choice	"5000h"		pos[2]=101011XXb
					io 05220h-0523Fh
		choice	"5400h"		pos[2]=101010XXb
					io 05620h-0563Fh
		choice	"5800h"		pos[2]=101001XXb
					io 05A20h-05A3Fh
		choice	"5C00h"		pos[2]=101000XXb
					io 05E20h-05E3Fh
		choice	"6000h"		pos[2]=100111XXb
					io 06220h-0623Fh
		choice	"6400h"		pos[2]=100110XXb
					io 06620h-0663Fh
		choice	"6800h"		pos[2]=100101XXb
					io 06A20h-06A3Fh
		choice	"6C00h"		pos[2]=100100XXb
					io 06E20h-06E3Fh
		choice	"7000h"		pos[2]=100011XXb
					io 07220h-0723Fh
		choice	"7400h"		pos[2]=100010XXb
					io 07620h-0763Fh
		choice	"7800h"		pos[2]=100001XXb
					io 07A20h-07A3Fh
		choice	"7C00h"		pos[2]=100000XXb
					io 07E20h-07E3Fh
		choice	"8000h"		pos[2]=011111XXb
					io 08220h-0823Fh
		choice	"8400h"		pos[2]=011110XXb
					io 08620h-0863Fh
		choice	"8800h"		pos[2]=011101XXb
					io 08A20h-08A3Fh
		choice	"8C00h"		pos[2]=011100XXb
					io 08E20h-08E3Fh
		choice	"9000h"		pos[2]=011011XXb
					io 09220h-0923Fh
		choice	"9400h"		pos[2]=011010XXb
					io 09620h-0963Fh
		choice	"9800h"		pos[2]=011001XXb
					io 09A20h-09A3Fh
		choice	"9C00h"		pos[2]=011000XXb
					io 09E20h-09E3Fh
		choice	"A000h"		pos[2]=010111XXb
					io 0A220h-0A23Fh
		choice	"A400h"		pos[2]=010110XXb
					io 0A620h-0A63Fh
		choice	"A800h"		pos[2]=010101XXb
					io 0AA20h-0AA3Fh
		choice	"AC00h"		pos[2]=010100XXb
					io 0AE20h-0AE3Fh
		choice	"B000h"		pos[2]=010011XXb
					io 0B220h-0B23Fh
		choice	"B400h"		pos[2]=010010XXb
					io 0B620h-0B63Fh
		choice	"B800h"		pos[2]=010001XXb
					io 0BA20h-0BA3Fh
		choice	"BC00h"		pos[2]=010000XXb
					io 0BE20h-0BE3Fh
		choice	"C000h"		pos[2]=001111XXb
					io 0C220h-0C23Fh
		choice	"C400h"		pos[2]=001110XXb
					io 0C620h-0C63Fh
		choice	"C800h"		pos[2]=001101XXb
					io 0CA20h-0CA3Fh
		choice	"CC00h"		pos[2]=001100XXb
					io 0CE20h-0CE3Fh
		choice	"D000h"		pos[2]=001011XXb
					io 0D220h-0D23Fh
		choice	"D400h"		pos[2]=001010XXb
					io 0D620h-0D63Fh
		choice	"D800h"		pos[2]=001001XXb
					io 0DA20h-0DA3Fh
		choice	"DC00h"		pos[2]=001000XXb
					io 0DE20h-0DE3Fh
		choice	"E000h"		pos[2]=000111XXb
					io 0E220h-0E23Fh
		choice	"E400h"		pos[2]=000110XXb
					io 0E620h-0E63Fh
		choice	"E800h"		pos[2]=000101XXb
					io 0EA20h-0EA3Fh
		choice	"EC00h"		pos[2]=000100XXb
					io 0EE20h-0EE3Fh
		choice	"F000h"		pos[2]=000011XXb
					io 0F220h-0F23Fh
		choice	"F400h"		pos[2]=000010XXb
					io 0F620h-0F63Fh
		choice	"F800h"		pos[2]=000001XXb
					io 0FA20h-0FA3Fh
		choice	"FC00h"		pos[2]=000000XXb
					io 0FE20h-0FE3Fh
	Help
	"This selection sets the I/O port range taken by the HI-2 card.
	The card will occupy a full 1K (400h) range, starting at the
	address specified.  The addressing within this range is then
	translated to PC compatible addressing, which is in the 1K range
	of 0 to 3FFh.  Note that the port address that the software must
	access to talk to a board in the expansion box is the base range 
	specified here PLUS the port address of the board.  For example,
	if a port range base of 400h is selected here, and your PC-Slave
	boards are in the default configuration for the 220h port group,
	then NTNX must talk to the boards at 620h (400h+220h). NXCNFG
	must be configured for this combined value."

NamedItem
; Here to set the arbitration level.  Just let them pick one
; This is pretty much copied from the example in the Tech Ref
; Also sets DMA channel 2
	Prompt	"Arbitration Level"
		choice	"Level 1"	pos[1]=10XX0001b	arb 1
		choice	"Level 0"	pos[1]=10XX0000b	arb 0
		choice	"Level 2"	pos[1]=10XX0010b	arb 2
		choice	"Level 3"	pos[1]=10XX0011b	arb 3
		choice	"Level 4"	pos[1]=10XX0100b	arb 4
		choice	"Level 5"	pos[1]=10XX0101b	arb 5
		choice	"Level 6"	pos[1]=10XX0110b	arb 6
		choice	"Level 7"	pos[1]=10XX0111b	arb 7
		choice	"Level 8"	pos[1]=10XX1000b	arb 8
		choice	"Level 9"	pos[1]=10XX1001b	arb 9
		choice	"Level 10"	pos[1]=10XX1010b	arb 10
		choice	"Level 11"	pos[1]=10XX1011b	arb 11
		choice	"Level 12"	pos[1]=10XX1100b	arb 12
		choice	"Level 13"	pos[1]=10XX1101b	arb 13
		choice	"Level 14"	pos[1]=10XX1110b	arb 14
		choice	"Level 15"	pos[1]=10XX1111b	arb 15
	Help
	"This assignment should only be changed if the system indicates a
	conflict with another adapter.  Conflicting assignments are marked
	with an asterisk.  If you must change this assignment, you should 
	try to change it to the lowest available number, as lower numbers 
	have higher priorities.  This priority value is used by the system."

NamedItem
; Here we set up the interupt channel to use.  One such channel is needed
; by the MainLine board.  Which one is selectable.
	Prompt	"Interrupt Channel to use"
		choice	"IRQ 4"		pos[0]=X0101111b
		choice	"IRQ 6"		pos[0]=X1001111b
		choice	"none"		pos[0]=X0001111b
	Help
	"An interrupt channel is needed to run MainLine.  If this system
	has only slave boards, then you may choose 'none'.  Otherwise, be
	sure that the MainLine hardware AND software are configured for
	the same channel that is selected here."
