blob: a8d90537e7a3e90fabcf607a9c799b4517a7afe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/******************************************************************************/
/* pci ************************************************************************/
/******************************************************************************/
struct pci_entry {
unsigned short vendor; /* PCI vendor id */
unsigned short device;
unsigned short subvendor; /* 0xffff if not probe_type'd or no subid */
unsigned short subdevice; /* 0xffff if not probe_type'd or no subid */
unsigned short class; /* 0 if not probe_type'd */
char *module;
char *text;
};
struct pci_entries {
struct pci_entry *entries;
int nb;
};
extern struct pci_entries pci_probe(int probe_type); /* probe_type is boolean */
extern void pci_free(struct pci_entries entries);
extern const char *pci_class2text(unsigned short class);
|