TianoCore EDK2 master
Loading...
Searching...
No Matches
CoreMsr.h
Go to the documentation of this file.
1
18#ifndef __CORE_MSR_H__
19#define __CORE_MSR_H__
20
22
32#define IS_CORE_PROCESSOR(DisplayFamily, DisplayModel) \
33 (DisplayFamily == 0x06 && \
34 ( \
35 DisplayModel == 0x0E \
36 ) \
37 )
38
55#define MSR_CORE_P5_MC_ADDR 0x00000000
56
73#define MSR_CORE_P5_MC_TYPE 0x00000001
74
94#define MSR_CORE_EBL_CR_POWERON 0x0000002A
95
99typedef union {
103 struct {
104 UINT32 Reserved1 : 1;
125 UINT32 Reserved2 : 2;
138 UINT32 ExecuteBIST : 1;
143 UINT32 Reserved3 : 1;
148 UINT32 Reserved4 : 1;
152 UINT32 ResetVector : 1;
153 UINT32 Reserved5 : 1;
157 UINT32 APICClusterID : 2;
162 UINT32 Reserved6 : 1;
171 UINT32 Reserved7 : 5;
172 UINT32 Reserved8 : 32;
173 } Bits;
177 UINT32 Uint32;
181 UINT64 Uint64;
183
212#define MSR_CORE_LASTBRANCH_0 0x00000040
213#define MSR_CORE_LASTBRANCH_1 0x00000041
214#define MSR_CORE_LASTBRANCH_2 0x00000042
215#define MSR_CORE_LASTBRANCH_3 0x00000043
216#define MSR_CORE_LASTBRANCH_4 0x00000044
217#define MSR_CORE_LASTBRANCH_5 0x00000045
218#define MSR_CORE_LASTBRANCH_6 0x00000046
219#define MSR_CORE_LASTBRANCH_7 0x00000047
221
240#define MSR_CORE_FSB_FREQ 0x000000CD
241
245typedef union {
249 struct {
261 UINT32 Reserved1 : 29;
262 UINT32 Reserved2 : 32;
263 } Bits;
267 UINT32 Uint32;
271 UINT64 Uint64;
273
292#define MSR_CORE_BBL_CR_CTL3 0x0000011E
293
297typedef union {
301 struct {
307 UINT32 Reserved1 : 7;
313 UINT32 L2Enabled : 1;
314 UINT32 Reserved2 : 14;
318 UINT32 L2NotPresent : 1;
319 UINT32 Reserved3 : 8;
320 UINT32 Reserved4 : 32;
321 } Bits;
325 UINT32 Uint32;
329 UINT64 Uint64;
331
350#define MSR_CORE_THERM2_CTL 0x0000019D
351
355typedef union {
359 struct {
360 UINT32 Reserved1 : 16;
368 UINT32 TM_SELECT : 1;
369 UINT32 Reserved2 : 15;
370 UINT32 Reserved3 : 32;
371 } Bits;
375 UINT32 Uint32;
379 UINT64 Uint64;
381
401#define MSR_CORE_IA32_MISC_ENABLE 0x000001A0
402
406typedef union {
410 struct {
411 UINT32 Reserved1 : 3;
417 UINT32 Reserved2 : 3;
422 UINT32 Reserved3 : 2;
429 UINT32 FERR : 1;
433 UINT32 BTS : 1;
434 UINT32 Reserved4 : 1;
449 UINT32 TM2 : 1;
450 UINT32 Reserved5 : 2;
455 UINT32 EIST : 1;
456 UINT32 Reserved6 : 1;
460 UINT32 MONITOR : 1;
461 UINT32 Reserved7 : 1;
462 UINT32 Reserved8 : 2;
469 UINT32 Reserved9 : 9;
470 UINT32 Reserved10 : 2;
474 UINT32 XD : 1;
475 UINT32 Reserved11 : 29;
476 } Bits;
480 UINT64 Uint64;
482
501#define MSR_CORE_LASTBRANCH_TOS 0x000001C9
502
520#define MSR_CORE_LER_FROM_LIP 0x000001DD
521
540#define MSR_CORE_LER_TO_LIP 0x000001DE
541
566#define MSR_CORE_MTRRPHYSBASE0 0x00000200
567#define MSR_CORE_MTRRPHYSBASE1 0x00000202
568#define MSR_CORE_MTRRPHYSBASE2 0x00000204
569#define MSR_CORE_MTRRPHYSBASE3 0x00000206
570#define MSR_CORE_MTRRPHYSBASE4 0x00000208
571#define MSR_CORE_MTRRPHYSBASE5 0x0000020A
572#define MSR_CORE_MTRRPHYSMASK6 0x0000020D
573#define MSR_CORE_MTRRPHYSMASK7 0x0000020F
575
600#define MSR_CORE_MTRRPHYSMASK0 0x00000201
601#define MSR_CORE_MTRRPHYSMASK1 0x00000203
602#define MSR_CORE_MTRRPHYSMASK2 0x00000205
603#define MSR_CORE_MTRRPHYSMASK3 0x00000207
604#define MSR_CORE_MTRRPHYSMASK4 0x00000209
605#define MSR_CORE_MTRRPHYSMASK5 0x0000020B
606#define MSR_CORE_MTRRPHYSBASE6 0x0000020C
607#define MSR_CORE_MTRRPHYSBASE7 0x0000020E
609
626#define MSR_CORE_MTRRFIX64K_00000 0x00000250
627
644#define MSR_CORE_MTRRFIX16K_80000 0x00000258
645
662#define MSR_CORE_MTRRFIX16K_A0000 0x00000259
663
680#define MSR_CORE_MTRRFIX4K_C0000 0x00000268
681
698#define MSR_CORE_MTRRFIX4K_C8000 0x00000269
699
716#define MSR_CORE_MTRRFIX4K_D0000 0x0000026A
717
734#define MSR_CORE_MTRRFIX4K_D8000 0x0000026B
735
752#define MSR_CORE_MTRRFIX4K_E0000 0x0000026C
753
770#define MSR_CORE_MTRRFIX4K_E8000 0x0000026D
771
788#define MSR_CORE_MTRRFIX4K_F0000 0x0000026E
789
806#define MSR_CORE_MTRRFIX4K_F8000 0x0000026F
807
824#define MSR_CORE_MC4_CTL 0x0000040C
825
842#define MSR_CORE_MC4_STATUS 0x0000040D
843
864#define MSR_CORE_MC4_ADDR 0x0000040E
865
886#define MSR_CORE_MC3_ADDR 0x00000412
887
904#define MSR_CORE_MC3_MISC 0x00000413
905
922#define MSR_CORE_MC5_CTL 0x00000414
923
940#define MSR_CORE_MC5_STATUS 0x00000415
941
958#define MSR_CORE_MC5_ADDR 0x00000416
959
976#define MSR_CORE_MC5_MISC 0x00000417
977
996#define MSR_CORE_IA32_EFER 0xC0000080
997
1001typedef union {
1005 struct {
1006 UINT32 Reserved1 : 11;
1010 UINT32 NXE : 1;
1011 UINT32 Reserved2 : 20;
1012 UINT32 Reserved3 : 32;
1013 } Bits;
1017 UINT32 Uint32;
1021 UINT64 Uint64;
1023
1024#endif