diff options
Diffstat (limited to 'libldetect.h')
-rw-r--r-- | libldetect.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libldetect.h b/libldetect.h new file mode 100644 index 0000000..a8d9053 --- /dev/null +++ b/libldetect.h @@ -0,0 +1,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); |