/* ------------------------------------------------------------- */ /* demo 10: Find card number */ /* step 1 : run demo10.exe */ /* step 2 : connect a 50-pin flat-cable to CON2 & CON3 of card_? */ /* step 3 : The card number is shown in screen as TEST OK */ /* ------------------------------------------------------------- */ #include "PIO.H" WORD wBase,wIrq; WORD wBoards,wRetVal; WORD wBase,wIrq,wSubVendor,wSubDevice,wSubAux,wSlotBus,wSlotDevice; int main() { int i,j,k; char c; clrscr(); PIO_DriverInit(&wBoards,0x80,0x01,0x00); /* for PIO-D144 */ printf("\n(1) Threr are %d PIO-D144 Cards in this PC",wBoards); if ( wBoards==0 ) { putch(0x07); putch(0x07); putch(0x07); printf("(1) There are no PIO-D144 card in this PC !!!\n"); exit(0); } printf("\n(2) The Configuration Space -> wBase"); for(i=0; i