diff options
Diffstat (limited to 'include/linux/mod_devicetable.h')
| -rw-r--r-- | include/linux/mod_devicetable.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 69b2342d5eb..d6a3f47e95c 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -131,6 +131,16 @@ 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 | __u32 vendor; | ||
| 139 | __u32 product; | ||
| 140 | kernel_ulong_t driver_data | ||
| 141 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | ||
| 142 | }; | ||
| 143 | |||
| 134 | /* s390 CCW devices */ | 144 | /* s390 CCW devices */ |
| 135 | struct ccw_device_id { | 145 | struct ccw_device_id { |
| 136 | __u16 match_flags; /* which fields to match against */ | 146 | __u16 match_flags; /* which fields to match against */ |
| @@ -159,6 +169,15 @@ struct ap_device_id { | |||
| 159 | 169 | ||
| 160 | #define AP_DEVICE_ID_MATCH_DEVICE_TYPE 0x01 | 170 | #define AP_DEVICE_ID_MATCH_DEVICE_TYPE 0x01 |
| 161 | 171 | ||
| 172 | /* s390 css bus devices (subchannels) */ | ||
| 173 | struct css_device_id { | ||
| 174 | __u8 match_flags; | ||
| 175 | __u8 type; /* subchannel type */ | ||
| 176 | __u16 pad2; | ||
| 177 | __u32 pad3; | ||
| 178 | kernel_ulong_t driver_data; | ||
| 179 | }; | ||
| 180 | |||
| 162 | #define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ | 181 | #define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ |
| 163 | /* to workaround crosscompile issues */ | 182 | /* to workaround crosscompile issues */ |
| 164 | 183 | ||
| @@ -379,5 +398,52 @@ struct i2c_device_id { | |||
| 379 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | 398 | __attribute__((aligned(sizeof(kernel_ulong_t)))); |
| 380 | }; | 399 | }; |
| 381 | 400 | ||
| 401 | /* dmi */ | ||
| 402 | enum dmi_field { | ||
| 403 | DMI_NONE, | ||
| 404 | DMI_BIOS_VENDOR, | ||
| 405 | DMI_BIOS_VERSION, | ||
| 406 | DMI_BIOS_DATE, | ||
| 407 | DMI_SYS_VENDOR, | ||
| 408 | DMI_PRODUCT_NAME, | ||
| 409 | DMI_PRODUCT_VERSION, | ||
| 410 | DMI_PRODUCT_SERIAL, | ||
| 411 | DMI_PRODUCT_UUID, | ||
| 412 | DMI_BOARD_VENDOR, | ||
| 413 | DMI_BOARD_NAME, | ||
| 414 | DMI_BOARD_VERSION, | ||
| 415 | DMI_BOARD_SERIAL, | ||
| 416 | DMI_BOARD_ASSET_TAG, | ||
| 417 | DMI_CHASSIS_VENDOR, | ||
| 418 | DMI_CHASSIS_TYPE, | ||
| 419 | DMI_CHASSIS_VERSION, | ||
| 420 | DMI_CHASSIS_SERIAL, | ||
| 421 | DMI_CHASSIS_ASSET_TAG, | ||
| 422 | DMI_STRING_MAX, | ||
| 423 | }; | ||
| 424 | |||
| 425 | struct dmi_strmatch { | ||
| 426 | unsigned char slot; | ||
| 427 | char substr[79]; | ||
| 428 | }; | ||
| 429 | |||
| 430 | #ifndef __KERNEL__ | ||
| 431 | struct dmi_system_id { | ||
| 432 | kernel_ulong_t callback; | ||
| 433 | kernel_ulong_t ident; | ||
| 434 | struct dmi_strmatch matches[4]; | ||
| 435 | kernel_ulong_t driver_data | ||
| 436 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | ||
| 437 | }; | ||
| 438 | #else | ||
| 439 | struct dmi_system_id { | ||
| 440 | int (*callback)(const struct dmi_system_id *); | ||
| 441 | const char *ident; | ||
| 442 | struct dmi_strmatch matches[4]; | ||
| 443 | void *driver_data; | ||
| 444 | }; | ||
| 445 | #endif | ||
| 446 | |||
| 447 | #define DMI_MATCH(a, b) { a, b } | ||
| 382 | 448 | ||
| 383 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 449 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
