diff options
Diffstat (limited to 'sysfsutils/cmd/names.h')
-rw-r--r-- | sysfsutils/cmd/names.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sysfsutils/cmd/names.h b/sysfsutils/cmd/names.h new file mode 100644 index 0000000..dc32e9f --- /dev/null +++ b/sysfsutils/cmd/names.h @@ -0,0 +1,36 @@ +/* + * $Id: names.h,v 1.2.2.1 2005/04/06 23:18:11 stekloff Exp $ + * + * The PCI Library + * + * Copyright (c) 1997--2002 Martin Mares <mj@ucw.cz> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _NAMES_H_ +#define _NAMES_H_ + +#define PCI_LOOKUP_VENDOR 1 +#define PCI_LOOKUP_DEVICE 2 +#define PCI_LOOKUP_CLASS 4 +#define PCI_LOOKUP_SUBSYSTEM 8 +#define PCI_LOOKUP_PROGIF 16 +#define PCI_LOOKUP_NUMERIC 0x10000 + +#define PCI_VENDOR_ID 0x00 +#define PCI_DEVICE_ID 0x02 + +struct pci_access { + unsigned int numeric_ids; + unsigned char *pci_id_file_name; + unsigned char *nl_list; + struct nl_entry **nl_hash; +}; + +extern unsigned char *pci_lookup_name(struct pci_access *a, unsigned char *buf, + int size, int flags, unsigned int arg1, unsigned int arg2, + unsigned int arg3, unsigned int arg4); +extern void pci_free_name_list(struct pci_access *a); + +#endif /* _NAMES_H_ */ |