comparison libdha/test.c @ 9767:f6d2772efca3

Ignore disabled cards. (Jon Burgess <jburgess@uklinux.net>)
author ranma
date Mon, 31 Mar 2003 00:14:36 +0000
parents 138800dfbe22
children 972d1998bde9
comparison
equal deleted inserted replaced
9766:afb1150cd5de 9767:f6d2772efca3
14 printf("Error occured during pci scan: %s\n",strerror(err)); 14 printf("Error occured during pci scan: %s\n",strerror(err));
15 return EXIT_FAILURE; 15 return EXIT_FAILURE;
16 } 16 }
17 else 17 else
18 { 18 {
19 printf(" Bus:card:func vend:dev base0 :base1 :base2 :baserom\n"); 19 printf(" Bus:card:func vend:dev command base0 :base1 :base2 :baserom\n");
20 for(i=0;i<num_pci;i++) 20 for(i=0;i<num_pci;i++)
21 printf("%04X:%04X:%04X %04X:%04X %08X:%08X:%08X:%08X\n" 21 printf("%04X:%04X:%04X %04X:%04X %04X %08X:%08X:%08X:%08X\n"
22 ,lst[i].bus,lst[i].card,lst[i].func 22 ,lst[i].bus,lst[i].card,lst[i].func
23 ,lst[i].vendor,lst[i].device 23 ,lst[i].vendor,lst[i].device,lst[i].command
24 ,lst[i].base0,lst[i].base1,lst[i].base2,lst[i].baserom); 24 ,lst[i].base0,lst[i].base1,lst[i].base2,lst[i].baserom);
25 } 25 }
26 return EXIT_SUCCESS; 26 return EXIT_SUCCESS;
27 } 27 }