2020-05-05 23:43:18 +02:00
|
|
|
/* This file is part of msrtool. */
|
2020-05-05 22:49:26 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-06-20 21:14:22 +02:00
|
|
|
|
|
|
|
#include "msrtool.h"
|
|
|
|
|
2012-07-21 05:29:48 +02:00
|
|
|
int intel_core1_probe(const struct targetdef *target, const struct cpuid_t *id) {
|
2017-01-22 22:19:24 +01:00
|
|
|
return ((VENDOR_INTEL == id->vendor) &&
|
|
|
|
(0x6 == id->family) &&
|
|
|
|
(0xe == id->model));
|
2011-06-20 21:14:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const struct msrdef intel_core1_msrs[] = {
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x17, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PLATFORM_ID", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x2a, MSRTYPE_RDWR, MSR2(0, 0), "EBL_CR_POWERON", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xcd, MSRTYPE_RDWR, MSR2(0, 0), "FSB_CLOCK_STS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xce, MSRTYPE_RDWR, MSR2(0, 0), "FSB_CLOCK_VCC", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xe2, MSRTYPE_RDWR, MSR2(0, 0), "CLOCK_CST_CONFIG_CONTROL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xe3, MSRTYPE_RDWR, MSR2(0, 0), "PMG_IO_BASE_ADDR", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xe4, MSRTYPE_RDWR, MSR2(0, 0), "PMG_IO_CAPTURE_ADDR", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xee, MSRTYPE_RDWR, MSR2(0, 0), "EXT_CONFIG", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x11e, MSRTYPE_RDWR, MSR2(0, 0), "BBL_CR_CTL3", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x194, MSRTYPE_RDWR, MSR2(0, 0), "CLOCK_FLEX_MAX", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x198, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_STATUS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x1a0, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MISC_ENABLES", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x1aa, MSRTYPE_RDWR, MSR2(0, 0), "PIC_SENS_CFG", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x400, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_CTL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x401, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_STATUS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x402, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_ADDR", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x40c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_CTL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x40d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_STATUS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x40e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_ADDR", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x10, MSRTYPE_RDWR, MSR2(0, 0), "IA32_TIME_STAMP_COUNTER", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x1b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_APIC_BASE", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x3a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FEATURE_CONTROL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x3f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_TEMPERATURE_OFFSET", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x8b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_BIOS_SIGN_ID", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xe7, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MPERF", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xe8, MSRTYPE_RDWR, MSR2(0, 0), "IA32_APERF", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0xfe, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRRCAP", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x15f, MSRTYPE_RDWR, MSR2(0, 0), "DTS_CAL_CTRL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x179, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MCG_CAP", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x17a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MCG_STATUS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x199, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_CONTROL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x19a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_CLOCK_MODULATION", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x19b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_INTERRUPT", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x19c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_STATUS", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x19d, MSRTYPE_RDWR, MSR2(0, 0), "GV_THERM", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x1d9, MSRTYPE_RDWR, MSR2(0, 0), "IA32_DEBUGCTL", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x200, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE0", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x201, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK0", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x202, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE1", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x203, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK1", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x204, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE2", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x205, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK2", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x206, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE3", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x207, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK3", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x208, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE4", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x209, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK4", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE5", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK5", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE6", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK6", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE7", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x20f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK7", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x250, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x258, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x259, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x268, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x269, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x26f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
2020-01-29 13:45:45 +01:00
|
|
|
{0x2ff, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_DEF_TYPE", "", {
|
2011-06-20 21:14:22 +02:00
|
|
|
{ BITS_EOT }
|
|
|
|
}},
|
|
|
|
{ MSR_EOT }
|
|
|
|
};
|