]>
git.ipfire.org Git - thirdparty/pciutils.git/blob - pciutils.h
4e2610884752ea6222c6ef5691863de006bcfefc
2 * $Id: pciutils.h,v 1.11 1999/01/19 21:24:42 mj Exp $
4 * Linux PCI Utilities -- Declarations
6 * Copyright (c) 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
8 * Can be freely distributed and used under the terms of the GNU GPL.
11 #include <linux/types.h>
14 #include <linux/pci.h>
19 #define PCIUTILS_VERSION "1.10"
21 #define PROC_BUS_PCI "/proc/bus/pci"
22 #define ETC_PCI_IDS "/usr/share/pci.ids"
32 void *xmalloc(unsigned int);
36 extern int show_numeric_ids
;
39 char *lookup_vendor(word
);
40 char *lookup_device(word
, word
);
41 char *lookup_device_full(word
, word
);
42 char *lookup_class(word
);
43 char *lookup_subsys_vendor(word
);
44 char *lookup_subsys_device(word
, word
);
45 char *lookup_subsys_device_full(word
, word
);
50 int bus
, slot
, func
; /* -1 = ANY */
54 void filter_init(struct pci_filter
*);
55 char *filter_parse_slot(struct pci_filter
*, char *);
56 char *filter_parse_id(struct pci_filter
*, char *);
57 int filter_match(struct pci_filter
*, byte bus
, byte devfn
, word vendid
, word devid
);