diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-12-16 18:22:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-12-16 18:22:32 +0000 |
commit | 1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352 (patch) | |
tree | 9db1d895d506145757dff083c0f75ec3252d30f2 /libldetect.h | |
parent | 9f8ce02a3814161d80ae8430282eeb58ae75cbb8 (diff) | |
download | ldetect-1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352.tar ldetect-1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352.tar.gz ldetect-1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352.tar.bz2 ldetect-1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352.tar.xz ldetect-1f8893a6cd761f9ef87d4cb9c8d8baecf17b4352.zip |
now detect usb
Diffstat (limited to 'libldetect.h')
-rw-r--r-- | libldetect.h | 21 |
1 files changed, 15 insertions, 6 deletions
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); |