diff options
author | stekloff <stekloff> | 2005-04-06 20:57:01 +0000 |
---|---|---|
committer | stekloff <stekloff> | 2005-04-06 20:57:01 +0000 |
commit | dd8c511d725f816bc64592028ff178616fcde607 (patch) | |
tree | 55250e02ac67ceeb3c2bac3b1e29a78c22be1ac2 /cmd/names.h | |
parent | 855a337e54321d9aa2b97c38ffa4787d3105257c (diff) | |
download | sysfsutils-origin.tar.gz |
Diffstat (limited to 'cmd/names.h')
-rw-r--r-- | cmd/names.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cmd/names.h b/cmd/names.h new file mode 100644 index 0000000..da20938 --- /dev/null +++ b/cmd/names.h @@ -0,0 +1,36 @@ +/* + * $Id: names.h,v 1.2 2005/04/06 20:57:12 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_ */ |