]> mj.ucw.cz Git - pciutils.git/blob - pciutils.h
2bfc63ba487039dca1a673a7edce826012d187d7
[pciutils.git] / pciutils.h
1 /*
2  *      $Id: pciutils.h,v 1.2 1998/01/27 11:50:13 mj Exp $
3  *
4  *      Linux PCI Utilities -- Declarations
5  *
6  *      Copyright (c) 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
7  *
8  *      Can be freely distributed and used under the terms of the GNU GPL.
9  */
10
11 #include <linux/types.h>
12
13 #define PROC_BUS_PCI "/proc/bus/pci"
14 #define ETC_PCI_IDS "/etc/pci.ids"
15
16 /* Types */
17
18 typedef __u8 byte;
19 typedef __u16 word;
20 typedef __u32 u32;
21
22 /* lspci.c */
23
24 void *xmalloc(unsigned int);
25
26 /* names.c */
27
28 extern int show_numeric_ids;
29 extern char *pci_ids;
30
31 char *lookup_vendor(word);
32 char *lookup_device(word, word);
33 char *lookup_device_full(word, word);
34 char *lookup_class(word);