summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-14 10:12:22 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-14 10:12:22 -0600
commitcbc98ae5392ed151ecf74ad41c3ec7b0cb5547bb (patch)
treea9941dde3d913607f39cba911a727453b5e08fd2 /include/linux
parent0e5064f80d41d75abbb10e040bbd7c600e08299c (diff)
kbuild: Figure endianness / word size at compile time
The helper file2alias had to jump through a lot of hoops because it did not know the host and target endianness / word size at compile time. We now build a small header scripts/elfconfig.h which contains this information for file2alias to use.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mod_devicetable.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index f285481d5c79..9baa5a448684 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -7,19 +7,18 @@
#ifndef LINUX_MOD_DEVICETABLE_H
#define LINUX_MOD_DEVICETABLE_H
-#include <linux/types.h>
-
#ifdef __KERNEL__
+#include <linux/types.h>
typedef unsigned long kernel_ulong_t;
#endif
#define PCI_ANY_ID (~0)
struct pci_device_id {
- unsigned int vendor, device; /* Vendor and device ID or PCI_ANY_ID */
- unsigned int subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */
- unsigned int class, class_mask; /* (class,subclass,prog-if) triplet */
- kernel_ulong_t driver_data; /* Data private to the driver */
+ __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 */
+ kernel_ulong_t driver_data; /* Data private to the driver */
};
/*