X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=pciutils.h;h=f46f2b4d97f0576aaa58f20111248d6381bf7de8;hb=b7554856c84ad02a88ce478a3f8423b6596c2b6a;hp=2bfc63ba487039dca1a673a7edce826012d187d7;hpb=18928b915267d42bdb55e83ad0bcc8002671326a;p=pciutils.git diff --git a/pciutils.h b/pciutils.h index 2bfc63b..f46f2b4 100644 --- a/pciutils.h +++ b/pciutils.h @@ -1,5 +1,5 @@ /* - * $Id: pciutils.h,v 1.2 1998/01/27 11:50:13 mj Exp $ + * $Id: pciutils.h,v 1.8 1998/07/17 08:57:20 mj Exp $ * * Linux PCI Utilities -- Declarations * @@ -10,6 +10,14 @@ #include +#ifdef KERNEL_PCI_H +#include +#else +#include "pci.h" +#endif + +#define PCIUTILS_VERSION "1.07" + #define PROC_BUS_PCI "/proc/bus/pci" #define ETC_PCI_IDS "/etc/pci.ids" @@ -32,3 +40,18 @@ char *lookup_vendor(word); char *lookup_device(word, word); char *lookup_device_full(word, word); char *lookup_class(word); +char *lookup_subsys_vendor(word); +char *lookup_subsys_device(word, word); +char *lookup_subsys_device_full(word, word); + +/* filter.c */ + +struct pci_filter { + int bus, slot, func; /* -1 = ANY */ + int vendor, device; +}; + +void filter_init(struct pci_filter *); +char *filter_parse_slot(struct pci_filter *, char *); +char *filter_parse_id(struct pci_filter *, char *); +int filter_match(struct pci_filter *, byte bus, byte devfn, word vendid, word devid);