1 /* This file is part of msrtool. */
2 /* SPDX-License-Identifier: GPL-2.0-only */
6 int intel_core2_early_probe(const struct targetdef
*target
, const struct cpuid_t
*id
) {
7 return ((VENDOR_INTEL
== id
->vendor
) &&
12 const struct msrdef intel_core2_early_msrs
[] = {
13 {0x17, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PLATFORM_ID", "", {
16 {0x2a, MSRTYPE_RDWR
, MSR2(0, 0), "EBL_CR_POWERON", "", {
19 {0x3f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TEMPERATURE_OFFSET", "", {
22 {0xa8, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE0", "", {
25 {0xa9, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE1", "", {
28 {0xaa, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE2", "", {
31 {0xab, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE3", "", {
34 {0xac, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE4", "", {
37 {0xad, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE5", "", {
40 {0xcd, MSRTYPE_RDWR
, MSR2(0, 0), "FSB_CLOCK_STS", "", {
43 {0xe2, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_CST_CONFIG_CONTROL", "", {
46 {0xe3, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_IO_BASE_ADDR", "", {
49 {0xe4, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_IO_CAPTURE_ADDR", "", {
52 {0xee, MSRTYPE_RDWR
, MSR2(0, 0), "EXT_CONFIG", "", {
55 {0x11e, MSRTYPE_RDWR
, MSR2(0, 0), "BBL_CR_CTL3", "", {
58 {0x194, MSRTYPE_RDWR
, MSR2(0, 0), "CLOCK_FLEX_MAX", "", {
61 {0x198, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_STATUS", "", {
64 {0x1a0, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MISC_ENABLES", "", {
67 {0x1aa, MSRTYPE_RDWR
, MSR2(0, 0), "PIC_SENS_CFG", "", {
70 {0x400, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_CTL", "", {
73 {0x401, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_STATUS", "", {
76 {0x402, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_ADDR", "", {
79 {0x40c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_CTL", "", {
82 {0x40d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_STATUS", "", {
85 {0x40e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_ADDR", "", {
88 {0x10, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TIME_STAMP_COUNTER", "", {
91 {0x1b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APIC_BASE", "", {
94 {0x3a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FEATURE_CONTROL", "", {
97 {0x8b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_BIOS_SIGN_ID", "", {
100 {0xe1, MSRTYPE_RDWR
, MSR2(0, 0), "SMM_CST_MISC_INFO", "", {
103 {0xe7, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MPERF", "", {
106 {0xe8, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APERF", "", {
109 {0xfe, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRRCAP", "", {
112 {0x179, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_CAP", "", {
115 {0x17a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_STATUS", "", {
118 {0x199, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_CONTROL", "", {
121 {0x19a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_CTL", "", {
124 {0x19b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_INTERRUPT", "", {
127 {0x19c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_STATUS", "", {
130 {0x19d, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_THERM2_CTL", "", {
133 {0x1d9, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DEBUGCTL", "", {
136 {0x200, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE0", "", {
139 {0x201, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK0", "", {
142 {0x202, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE1", "", {
145 {0x203, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK1", "", {
148 {0x204, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE2", "", {
151 {0x205, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK2", "", {
154 {0x206, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE3", "", {
157 {0x207, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK3", "", {
160 {0x208, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE4", "", {
163 {0x209, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK4", "", {
166 {0x20a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE5", "", {
169 {0x20b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK5", "", {
172 {0x20c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE6", "", {
175 {0x20d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK6", "", {
178 {0x20e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE7", "", {
181 {0x20f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK7", "", {
184 {0x250, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
187 {0x258, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
190 {0x259, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
193 {0x268, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
196 {0x269, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
199 {0x26a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
202 {0x26b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
205 {0x26c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
208 {0x26d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
211 {0x26e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
214 {0x26f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
217 {0x2ff, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_DEF_TYPE", "", {