diff options
Diffstat (limited to 'include/linux/mod_devicetable.h')
| -rw-r--r-- | include/linux/mod_devicetable.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 83ac0713ed0a..fb69ad191ad7 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -560,4 +560,25 @@ struct amba_id { | |||
| 560 | #endif | 560 | #endif |
| 561 | }; | 561 | }; |
| 562 | 562 | ||
| 563 | /* | ||
| 564 | * Match x86 CPUs for CPU specific drivers. | ||
| 565 | * See documentation of "x86_match_cpu" for details. | ||
| 566 | */ | ||
| 567 | |||
| 568 | struct x86_cpu_id { | ||
| 569 | __u16 vendor; | ||
| 570 | __u16 family; | ||
| 571 | __u16 model; | ||
| 572 | __u16 feature; /* bit index */ | ||
| 573 | kernel_ulong_t driver_data; | ||
| 574 | }; | ||
| 575 | |||
| 576 | #define X86_FEATURE_MATCH(x) \ | ||
| 577 | { X86_VENDOR_ANY, X86_FAMILY_ANY, X86_MODEL_ANY, x } | ||
| 578 | |||
| 579 | #define X86_VENDOR_ANY 0xffff | ||
| 580 | #define X86_FAMILY_ANY 0 | ||
| 581 | #define X86_MODEL_ANY 0 | ||
| 582 | #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */ | ||
| 583 | |||
| 563 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 584 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
