1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef LINUX_MOD_DEVICETABLE_H
13 #define LINUX_MOD_DEVICETABLE_H
15 #define PCI_ANY_ID (~0)
17 struct pci_device_id {
19 __u32 subvendor, subdevice;
20 __u32 class, class_mask;
21 kernel_ulong_t driver_data;
24 #define IEEE1394_MATCH_VENDOR_ID 0x0001
25 #define IEEE1394_MATCH_MODEL_ID 0x0002
26 #define IEEE1394_MATCH_SPECIFIER_ID 0x0004
27 #define IEEE1394_MATCH_VERSION 0x0008
29 struct ieee1394_device_id {
35 kernel_ulong_t driver_data
36 __attribute__((aligned(sizeof(kernel_ulong_t))));
39 struct usb_device_id {
53 __u8 bInterfaceSubClass;
54 __u8 bInterfaceProtocol;
56 kernel_ulong_t driver_info;
59 #define USB_DEVICE_ID_MATCH_VENDOR 0x0001
60 #define USB_DEVICE_ID_MATCH_PRODUCT 0x0002
61 #define USB_DEVICE_ID_MATCH_DEV_LO 0x0004
62 #define USB_DEVICE_ID_MATCH_DEV_HI 0x0008
63 #define USB_DEVICE_ID_MATCH_DEV_CLASS 0x0010
64 #define USB_DEVICE_ID_MATCH_DEV_SUBCLASS 0x0020
65 #define USB_DEVICE_ID_MATCH_DEV_PROTOCOL 0x0040
66 #define USB_DEVICE_ID_MATCH_INT_CLASS 0x0080
67 #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100
68 #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200
70 struct ccw_device_id {
78 kernel_ulong_t driver_info;
81 #define CCW_DEVICE_ID_MATCH_CU_TYPE 0x01
82 #define CCW_DEVICE_ID_MATCH_CU_MODEL 0x02
83 #define CCW_DEVICE_ID_MATCH_DEVICE_TYPE 0x04
84 #define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08
87 #define PNP_MAX_DEVICES 8
89 struct pnp_device_id {
91 kernel_ulong_t driver_data;
94 struct pnp_card_device_id {
96 kernel_ulong_t driver_data;
99 } devs[PNP_MAX_DEVICES];
102 #define SERIO_ANY 0xff
104 struct serio_device_id {
115 char compatible[128];
119 struct vio_device_id {
124 struct pcmcia_device_id {
136 __u32 prod_id_hash[4]
137 __attribute__((aligned(sizeof(__u32))));
139 kernel_ulong_t prod_id[4]
140 __attribute__((aligned(sizeof(kernel_ulong_t))));
142 kernel_ulong_t driver_info;
143 kernel_ulong_t cisfile;
146 #define PCMCIA_DEV_ID_MATCH_MANF_ID 0x0001
147 #define PCMCIA_DEV_ID_MATCH_CARD_ID 0x0002
148 #define PCMCIA_DEV_ID_MATCH_FUNC_ID 0x0004
149 #define PCMCIA_DEV_ID_MATCH_FUNCTION 0x0008
150 #define PCMCIA_DEV_ID_MATCH_PROD_ID1 0x0010
151 #define PCMCIA_DEV_ID_MATCH_PROD_ID2 0x0020
152 #define PCMCIA_DEV_ID_MATCH_PROD_ID3 0x0040
153 #define PCMCIA_DEV_ID_MATCH_PROD_ID4 0x0080
154 #define PCMCIA_DEV_ID_MATCH_DEVICE_NO 0x0100
155 #define PCMCIA_DEV_ID_MATCH_FAKE_CIS 0x0200
156 #define PCMCIA_DEV_ID_MATCH_ANONYMOUS 0x0400
158 struct i2c_device_id {
162 #define INPUT_DEVICE_ID_EV_MAX 0x1f
163 #define INPUT_DEVICE_ID_KEY_MAX 0x1ff
164 #define INPUT_DEVICE_ID_REL_MAX 0x0f
165 #define INPUT_DEVICE_ID_ABS_MAX 0x3f
166 #define INPUT_DEVICE_ID_MSC_MAX 0x07
167 #define INPUT_DEVICE_ID_LED_MAX 0x0f
168 #define INPUT_DEVICE_ID_SND_MAX 0x07
169 #define INPUT_DEVICE_ID_FF_MAX 0x7f
170 #define INPUT_DEVICE_ID_SW_MAX 0x0f
172 #define INPUT_DEVICE_ID_MATCH_BUS 1
173 #define INPUT_DEVICE_ID_MATCH_VENDOR 2
174 #define INPUT_DEVICE_ID_MATCH_PRODUCT 4
175 #define INPUT_DEVICE_ID_MATCH_VERSION 8
177 #define INPUT_DEVICE_ID_MATCH_EVBIT 0x0010
178 #define INPUT_DEVICE_ID_MATCH_KEYBIT 0x0020
179 #define INPUT_DEVICE_ID_MATCH_RELBIT 0x0040
180 #define INPUT_DEVICE_ID_MATCH_ABSBIT 0x0080
181 #define INPUT_DEVICE_ID_MATCH_MSCIT 0x0100
182 #define INPUT_DEVICE_ID_MATCH_LEDBIT 0x0200
183 #define INPUT_DEVICE_ID_MATCH_SNDBIT 0x0400
184 #define INPUT_DEVICE_ID_MATCH_FFBIT 0x0800
185 #define INPUT_DEVICE_ID_MATCH_SWBIT 0x1000
187 struct input_device_id {
189 kernel_ulong_t flags;
196 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
197 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
198 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
199 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
200 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
201 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
202 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
203 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
204 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
206 kernel_ulong_t driver_info;