diff options
Diffstat (limited to 'include')
| -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 b29e7f6f8fa5..cff2cc08f45a 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -571,4 +571,25 @@ struct amba_id { | |||
| 571 | #endif | 571 | #endif |
| 572 | }; | 572 | }; |
| 573 | 573 | ||
| 574 | /* | ||
| 575 | * Match x86 CPUs for CPU specific drivers. | ||
| 576 | * See documentation of "x86_match_cpu" for details. | ||
| 577 | */ | ||
| 578 | |||
| 579 | struct x86_cpu_id { | ||
| 580 | __u16 vendor; | ||
| 581 | __u16 family; | ||
| 582 | __u16 model; | ||
| 583 | __u16 feature; /* bit index */ | ||
| 584 | kernel_ulong_t driver_data; | ||
| 585 | }; | ||
| 586 | |||
| 587 | #define X86_FEATURE_MATCH(x) \ | ||
| 588 | { X86_VENDOR_ANY, X86_FAMILY_ANY, X86_MODEL_ANY, x } | ||
| 589 | |||
| 590 | #define X86_VENDOR_ANY 0xffff | ||
| 591 | #define X86_FAMILY_ANY 0 | ||
| 592 | #define X86_MODEL_ANY 0 | ||
| 593 | #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */ | ||
| 594 | |||
| 574 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 595 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
