diff options
Diffstat (limited to 'include/linux/mod_devicetable.h')
| -rw-r--r-- | include/linux/mod_devicetable.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index b508016fb76d..b62d4af6c667 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -456,7 +456,8 @@ enum dmi_field { | |||
| 456 | }; | 456 | }; |
| 457 | 457 | ||
| 458 | struct dmi_strmatch { | 458 | struct dmi_strmatch { |
| 459 | unsigned char slot; | 459 | unsigned char slot:7; |
| 460 | unsigned char exact_match:1; | ||
| 460 | char substr[79]; | 461 | char substr[79]; |
| 461 | }; | 462 | }; |
| 462 | 463 | ||
| @@ -474,7 +475,8 @@ struct dmi_system_id { | |||
| 474 | */ | 475 | */ |
| 475 | #define dmi_device_id dmi_system_id | 476 | #define dmi_device_id dmi_system_id |
| 476 | 477 | ||
| 477 | #define DMI_MATCH(a, b) { a, b } | 478 | #define DMI_MATCH(a, b) { .slot = a, .substr = b } |
| 479 | #define DMI_EXACT_MATCH(a, b) { .slot = a, .substr = b, .exact_match = 1 } | ||
| 478 | 480 | ||
| 479 | #define PLATFORM_NAME_SIZE 20 | 481 | #define PLATFORM_NAME_SIZE 20 |
| 480 | #define PLATFORM_MODULE_PREFIX "platform:" | 482 | #define PLATFORM_MODULE_PREFIX "platform:" |
| @@ -577,4 +579,23 @@ struct mei_cl_device_id { | |||
| 577 | kernel_ulong_t driver_info; | 579 | kernel_ulong_t driver_info; |
| 578 | }; | 580 | }; |
| 579 | 581 | ||
| 582 | /* RapidIO */ | ||
| 583 | |||
| 584 | #define RIO_ANY_ID 0xffff | ||
| 585 | |||
| 586 | /** | ||
| 587 | * struct rio_device_id - RIO device identifier | ||
| 588 | * @did: RapidIO device ID | ||
| 589 | * @vid: RapidIO vendor ID | ||
| 590 | * @asm_did: RapidIO assembly device ID | ||
| 591 | * @asm_vid: RapidIO assembly vendor ID | ||
| 592 | * | ||
| 593 | * Identifies a RapidIO device based on both the device/vendor IDs and | ||
| 594 | * the assembly device/vendor IDs. | ||
| 595 | */ | ||
| 596 | struct rio_device_id { | ||
| 597 | __u16 did, vid; | ||
| 598 | __u16 asm_did, asm_vid; | ||
| 599 | }; | ||
| 600 | |||
| 580 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 601 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
