diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-07-04 01:27:02 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-04 07:35:47 +0200 |
commit | 7420866543da43a72ef81d5e03b12d9df752d99b (patch) | |
tree | 77a2824274543fa20b17b07b2f637b4ce8cb2481 /include/linux/mod_devicetable.h | |
parent | eb062ecbdf77e3fa10e8ea64414c4e1a12fecf5e (diff) | |
download | barebox-7420866543da43a72ef81d5e03b12d9df752d99b.tar.gz barebox-7420866543da43a72ef81d5e03b12d9df752d99b.tar.xz |
PCI: initial commit
used shorten version of linux-2.6.39 pci_ids.h
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h new file mode 100644 index 0000000000..c822075688 --- /dev/null +++ b/include/linux/mod_devicetable.h @@ -0,0 +1,20 @@ +/* + * Device tables which are exported to userspace via + * scripts/mod/file2alias.c. You must keep that file in sync with this + * header. + */ + +#ifndef LINUX_MOD_DEVICETABLE_H +#define LINUX_MOD_DEVICETABLE_H + +#include <linux/types.h> + +#define PCI_ANY_ID (~0) + +struct pci_device_id { + __u32 vendor, device; /* Vendor and device ID or PCI_ANY_ID*/ + __u32 subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */ + __u32 class, class_mask; /* (class,subclass,prog-if) triplet */ +}; + +#endif /* LINUX_MOD_DEVICETABLE_H */ |