1
2 #ifndef _ASM_X86_CPU_DEVICE_ID
3 #define _ASM_X86_CPU_DEVICE_ID
4
5
6
7
8
9
10 #include <linux/mod_devicetable.h>
11
12 #define X86_CENTAUR_FAM6_C7_D 0xd
13 #define X86_CENTAUR_FAM6_NANO 0xf
14
15 #define X86_STEPPINGS(mins, maxs) GENMASK(maxs, mins)
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 #define X86_MATCH_VENDOR_FAM_MODEL_STEPPINGS_FEATURE(_vendor, _family, _model, \
33 _steppings, _feature, _data) { \
34 .vendor = X86_VENDOR_##_vendor, \
35 .family = _family, \
36 .model = _model, \
37 .steppings = _steppings, \
38 .feature = _feature, \
39 .driver_data = (unsigned long) _data \
40 }
41
42
43
44
45
46
47
48
49
50
51
52 struct x86_cpu_desc {
53 u8 x86_family;
54 u8 x86_vendor;
55 u8 x86_model;
56 u8 x86_stepping;
57 u32 x86_microcode_rev;
58 };
59
60 #define INTEL_CPU_DESC(model, stepping, revision) { \
61 .x86_family = 6, \
62 .x86_vendor = X86_VENDOR_INTEL, \
63 .x86_model = (model), \
64 .x86_stepping = (stepping), \
65 .x86_microcode_rev = (revision), \
66 }
67
68 extern const struct x86_cpu_id *x86_match_cpu(const struct x86_cpu_id *match);
69 extern bool x86_cpu_has_min_microcode_rev(const struct x86_cpu_desc *table);
70
71 #endif