From 1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 16 Dec 2000 18:22:32 +0000 Subject: now detect usb --- libldetect.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'libldetect.h') diff --git a/libldetect.h b/libldetect.h index a8d9053..5e43b1a 100644 --- a/libldetect.h +++ b/libldetect.h @@ -1,7 +1,7 @@ /******************************************************************************/ -/* pci ************************************************************************/ +/* pciusb *********************************************************************/ /******************************************************************************/ -struct pci_entry { +struct pciusb_entry { unsigned short vendor; /* PCI vendor id */ unsigned short device; @@ -12,13 +12,22 @@ struct pci_entry { char *module; char *text; }; -struct pci_entries { - struct pci_entry *entries; +struct pciusb_entries { + struct pciusb_entry *entries; int nb; }; +extern void pciusb_free(struct pciusb_entries entries); -extern struct pci_entries pci_probe(int probe_type); /* probe_type is boolean */ -extern void pci_free(struct pci_entries entries); +/******************************************************************************/ +/* pci ************************************************************************/ +/******************************************************************************/ +extern struct pciusb_entries pci_probe(int probe_type); /* probe_type is boolean */ extern const char *pci_class2text(unsigned short class); + +/******************************************************************************/ +/* usb ************************************************************************/ +/******************************************************************************/ +extern struct pciusb_entries usb_probe(void); +extern const char *usb_class2text(unsigned short class); -- cgit v1.2.1