![](/images/new-backgrounds/1206877/20687759x1.webp)
Sample program 2: find all
wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff); | /*find all PIO_PISO*/ |
printf("\nThrer are %d PIO_PISO Cards in this PC",wBoards); | |
if | "); |
printf("\n | |
for(i=0; i<wBoards; i++) |
|
{
PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wSubVendor, &wSubDevice,&wSubAux,&wSlotBus,&wSlotDevice);
printf("\nCard_%d:wBase=%x,wIrq=%x,subID=[%x,%x,%x], SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice, wSubAux,wSlotBus,wSlotDevice);
printf("
}