3. I/O Control Register
3.1 How to Find the I/O Address
The plug&play BIOS will assign a proper I/O address to every PCI-1800/1802 card in the
power-on stage. The P180X_DriverInit(..) can detect how many PCI-1800/1802 cards in the
system. Then the P180X_DriverInit(..) will detect the I/O address of these cards. The
P180X_DriverInit(..) is supported in NAPPCI/dos, NAPPCI/w31, NAPPCI/w95 and
NAPPCI/wnt. The P180X_DriverInit(..) is implemented based on the PCI plug&play
mechanism-2. The P180X_DriverInit(..) must be called once before all the other driver is
called. The function of P180X_DriverInit(..) are given as follows:
Detect how many PCI-1800/1802 cards in the system ?
Detect and save the I/O control address of every PCI-1800/1802 card
The sample program source is given as follows:
wRetVal=P180X_DriverInit(&wBoards); /* call P180X_DriverInit(..) first */
printf("Threr are %d P180X Cards in this PC\n",wBoards);
/* dump every P180X card's configuration address space */
printf("The Configuration Space -> Timer Control DIO AD/DA \n");
for (i=0; i<wBoards; i++)
{
printf("Card %02d: %04xH %04xH %04xH %04xH\n", i,wConfigSpace[i][0],
wConfigSpace[i][1], wConfigSpace[i][2],wConfigSpace[i][3]);
}
/* The P180X_ActiveBoard() function must be used to active a board, */
/* then all operation will take effect to the active board. */
printf("Now Active First P180X Card...\n");
P180X_ActiveBoard( 0 );
z
P1202_DriverInit(…) is designed for PCI-1202H/L/HU/LU
z
P1602_DriverInit(…) is designed for PCI-1602/F/U/FU
PCI-1202/1602/1800/1802 Hardware User’s Manual
(
Ver.4.2, Dec/2009, PMH-014-42)---- 32