4. Programming Reference
4.1 Determining the I/O Address
The plug & play BIOS will assign the correct I/O address to each VXC
series card during the power-up process. The fixed IDs of each VXC series
card is as follows:
Item
Vendor ID
Device ID
Sub-
Vendor ID
Sub-
Device ID
Sub-Aux
ID
VXC-112A 0xe159 0x0001 0x1D61 0x0000
0x00
VXC-142 0xe159 0x0001 0x0061 0x0000 0x00
VXC-142i 0xe159 0x0001 0x0161 0x0002 0x00
VXC-182i 0xe159 0x0001 0x0161 0x0001 0x00
All necessary functions are provided as follows:
1. PIO_DriverInit(&wBoard, wSubVendor, wSubDevice, wSubAux)
2. PIO_GetConfigAddressSpace(wBoardNo,*wBase,*wIrq, *wSubVendor,
*wSubDevice, *wSubAux, *wSlotBus, *wSlotDevice)
3. Show_PIO_PISO(wSubVendor, wSubDevice, wSubAux)
All functions are defined in PIO.H. The important driver information is as follows:
1. Resource-allocated information:
•
wBase : BASE address mapping in the PC
•
wIrq:
The IRQ channel number allocated in the PC
2. VXC identification information:
•
wSubVendor:
The subVendor ID of the board
•
wSubDevice:
The subDevice ID of the board
•
wSubAux:
The subAux ID of the board
3. PC’s physical slot information:
•
wSlotBus:
The slot position of hardware slot ID1 in the PC
•
wSlotDevice:
The slot position of hardware slot ID2 in the PC
VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----28