diff options
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index c4db5827963d..97b91d1abb43 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -131,6 +131,17 @@ struct usb_device_id { | |||
131 | #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100 | 131 | #define USB_DEVICE_ID_MATCH_INT_SUBCLASS 0x0100 |
132 | #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200 | 132 | #define USB_DEVICE_ID_MATCH_INT_PROTOCOL 0x0200 |
133 | 133 | ||
134 | #define HID_ANY_ID (~0) | ||
135 | |||
136 | struct hid_device_id { | ||
137 | __u16 bus; | ||
138 | __u16 pad1; | ||
139 | __u32 vendor; | ||
140 | __u32 product; | ||
141 | kernel_ulong_t driver_data | ||
142 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | ||
143 | }; | ||
144 | |||
134 | /* s390 CCW devices */ | 145 | /* s390 CCW devices */ |
135 | struct ccw_device_id { | 146 | struct ccw_device_id { |
136 | __u16 match_flags; /* which fields to match against */ | 147 | __u16 match_flags; /* which fields to match against */ |
@@ -274,7 +285,7 @@ struct pcmcia_device_id { | |||
274 | /* Input */ | 285 | /* Input */ |
275 | #define INPUT_DEVICE_ID_EV_MAX 0x1f | 286 | #define INPUT_DEVICE_ID_EV_MAX 0x1f |
276 | #define INPUT_DEVICE_ID_KEY_MIN_INTERESTING 0x71 | 287 | #define INPUT_DEVICE_ID_KEY_MIN_INTERESTING 0x71 |
277 | #define INPUT_DEVICE_ID_KEY_MAX 0x1ff | 288 | #define INPUT_DEVICE_ID_KEY_MAX 0x2ff |
278 | #define INPUT_DEVICE_ID_REL_MAX 0x0f | 289 | #define INPUT_DEVICE_ID_REL_MAX 0x0f |
279 | #define INPUT_DEVICE_ID_ABS_MAX 0x3f | 290 | #define INPUT_DEVICE_ID_ABS_MAX 0x3f |
280 | #define INPUT_DEVICE_ID_MSC_MAX 0x07 | 291 | #define INPUT_DEVICE_ID_MSC_MAX 0x07 |
@@ -388,5 +399,52 @@ struct i2c_device_id { | |||
388 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | 399 | __attribute__((aligned(sizeof(kernel_ulong_t)))); |
389 | }; | 400 | }; |
390 | 401 | ||
402 | /* dmi */ | ||
403 | enum dmi_field { | ||
404 | DMI_NONE, | ||
405 | DMI_BIOS_VENDOR, | ||
406 | DMI_BIOS_VERSION, | ||
407 | DMI_BIOS_DATE, | ||
408 | DMI_SYS_VENDOR, | ||
409 | DMI_PRODUCT_NAME, | ||
410 | DMI_PRODUCT_VERSION, | ||
411 | DMI_PRODUCT_SERIAL, | ||
412 | DMI_PRODUCT_UUID, | ||
413 | DMI_BOARD_VENDOR, | ||
414 | DMI_BOARD_NAME, | ||
415 | DMI_BOARD_VERSION, | ||
416 | DMI_BOARD_SERIAL, | ||
417 | DMI_BOARD_ASSET_TAG, | ||
418 | DMI_CHASSIS_VENDOR, | ||
419 | DMI_CHASSIS_TYPE, | ||
420 | DMI_CHASSIS_VERSION, | ||
421 | DMI_CHASSIS_SERIAL, | ||
422 | DMI_CHASSIS_ASSET_TAG, | ||
423 | DMI_STRING_MAX, | ||
424 | }; | ||
425 | |||
426 | struct dmi_strmatch { | ||
427 | unsigned char slot; | ||
428 | char substr[79]; | ||
429 | }; | ||
430 | |||
431 | #ifndef __KERNEL__ | ||
432 | struct dmi_system_id { | ||
433 | kernel_ulong_t callback; | ||
434 | kernel_ulong_t ident; | ||
435 | struct dmi_strmatch matches[4]; | ||
436 | kernel_ulong_t driver_data | ||
437 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | ||
438 | }; | ||
439 | #else | ||
440 | struct dmi_system_id { | ||
441 | int (*callback)(const struct dmi_system_id *); | ||
442 | const char *ident; | ||
443 | struct dmi_strmatch matches[4]; | ||
444 | void *driver_data; | ||
445 | }; | ||
446 | #endif | ||
447 | |||
448 | #define DMI_MATCH(a, b) { a, b } | ||
391 | 449 | ||
392 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 450 | #endif /* LINUX_MOD_DEVICETABLE_H */ |