From 58dab80c5625896156e4d31fb39778556c88eb32 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 15 Dec 2000 15:19:16 +0000 Subject: creation --- libldetect.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libldetect.h (limited to 'libldetect.h') 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); -- cgit v1.2.1