TianoCore EDK2 master
Loading...
Searching...
No Matches
Pentium4Msr.h
Go to the documentation of this file.
1
18#ifndef __PENTIUM_4_MSR_H__
19#define __PENTIUM_4_MSR_H__
20
22
32#define IS_PENTIUM_4_PROCESSOR(DisplayFamily, DisplayModel) \
33 (DisplayFamily == 0x0F \
34 )
35
53#define MSR_PENTIUM_4_IA32_MONITOR_FILTER_LINE_SIZE 0x00000006
54
75#define MSR_PENTIUM_4_EBC_HARD_POWERON 0x0000002A
76
80typedef union {
84 struct {
98 UINT32 ExecuteBIST : 1;
126 UINT32 APICClusterID : 2;
133 UINT32 BusParkDisable : 1;
134 UINT32 Reserved1 : 4;
141 UINT32 AgentID : 2;
142 UINT32 Reserved2 : 18;
143 UINT32 Reserved3 : 32;
144 } Bits;
148 UINT32 Uint32;
152 UINT64 Uint64;
154
174#define MSR_PENTIUM_4_EBC_SOFT_POWERON 0x0000002B
175
179typedef union {
183 struct {
189 UINT32 RCNT_SCNT : 1;
220 UINT32 Reserved1 : 25;
221 UINT32 Reserved2 : 32;
222 } Bits;
226 UINT32 Uint32;
230 UINT64 Uint64;
232
254#define MSR_PENTIUM_4_EBC_FREQUENCY_ID 0x0000002C
255
259typedef union {
263 struct {
264 UINT32 Reserved1 : 16;
286 UINT32 Reserved2 : 5;
292 UINT32 ClockRatio : 8;
293 UINT32 Reserved3 : 32;
294 } Bits;
298 UINT32 Uint32;
302 UINT64 Uint64;
304
326#define MSR_PENTIUM_4_EBC_FREQUENCY_ID_1 0x0000002C
327
331typedef union {
335 struct {
336 UINT32 Reserved1 : 21;
344 UINT32 Reserved2 : 8;
345 UINT32 Reserved3 : 32;
346 } Bits;
350 UINT32 Uint32;
354 UINT64 Uint64;
356
376#define MSR_PENTIUM_4_MCG_RAX 0x00000180
377
397#define MSR_PENTIUM_4_MCG_RBX 0x00000181
398
418#define MSR_PENTIUM_4_MCG_RCX 0x00000182
419
439#define MSR_PENTIUM_4_MCG_RDX 0x00000183
440
460#define MSR_PENTIUM_4_MCG_RSI 0x00000184
461
481#define MSR_PENTIUM_4_MCG_RDI 0x00000185
482
502#define MSR_PENTIUM_4_MCG_RBP 0x00000186
503
523#define MSR_PENTIUM_4_MCG_RSP 0x00000187
524
544#define MSR_PENTIUM_4_MCG_RFLAGS 0x00000188
545
565#define MSR_PENTIUM_4_MCG_RIP 0x00000189
566
586#define MSR_PENTIUM_4_MCG_MISC 0x0000018A
587
591typedef union {
595 struct {
603 UINT32 DS : 1;
604 UINT32 Reserved1 : 31;
605 UINT32 Reserved2 : 32;
606 } Bits;
610 UINT32 Uint32;
614 UINT64 Uint64;
616
637#define MSR_PENTIUM_4_MCG_R8 0x00000190
638
659#define MSR_PENTIUM_4_MCG_R9 0x00000191
660
681#define MSR_PENTIUM_4_MCG_R10 0x00000192
682
703#define MSR_PENTIUM_4_MCG_R11 0x00000193
704
725#define MSR_PENTIUM_4_MCG_R12 0x00000194
726
747#define MSR_PENTIUM_4_MCG_R13 0x00000195
748
769#define MSR_PENTIUM_4_MCG_R14 0x00000196
770
791#define MSR_PENTIUM_4_MCG_R15 0x00000197
792
813#define MSR_PENTIUM_4_THERM2_CTL 0x0000019D
814
833#define MSR_PENTIUM_4_IA32_MISC_ENABLE 0x000001A0
834
838typedef union {
842 struct {
846 UINT32 FastStrings : 1;
847 UINT32 Reserved1 : 1;
851 UINT32 FPU : 1;
856 UINT32 TM1 : 1;
866 UINT32 Reserved2 : 1;
904 UINT32 FERR : 1;
910 UINT32 BTS : 1;
916 UINT32 PEBS : 1;
930 UINT32 TM2 : 1;
931 UINT32 Reserved3 : 4;
935 UINT32 MONITOR : 1;
947 UINT32 Reserved4 : 2;
971 UINT32 Reserved5 : 7;
972 UINT32 Reserved6 : 2;
976 UINT32 XD : 1;
977 UINT32 Reserved7 : 29;
978 } Bits;
982 UINT64 Uint64;
984
1002#define MSR_PENTIUM_4_PLATFORM_BRV 0x000001A1
1003
1007typedef union {
1011 struct {
1012 UINT32 Reserved1 : 18;
1018 UINT32 PLATFORM : 1;
1019 UINT32 Reserved2 : 13;
1020 UINT32 Reserved3 : 32;
1021 } Bits;
1025 UINT32 Uint32;
1029 UINT64 Uint64;
1031
1052#define MSR_PENTIUM_4_LER_FROM_LIP 0x000001D7
1053
1075#define MSR_PENTIUM_4_LER_TO_LIP 0x000001D8
1076
1095#define MSR_PENTIUM_4_DEBUGCTLA 0x000001D9
1096
1117#define MSR_PENTIUM_4_LASTBRANCH_TOS 0x000001DA
1118
1146#define MSR_PENTIUM_4_LASTBRANCH_0 0x000001DB
1147#define MSR_PENTIUM_4_LASTBRANCH_1 0x000001DC
1148#define MSR_PENTIUM_4_LASTBRANCH_2 0x000001DD
1149#define MSR_PENTIUM_4_LASTBRANCH_3 0x000001DE
1151
1172#define MSR_PENTIUM_4_BPU_COUNTER0 0x00000300
1173#define MSR_PENTIUM_4_BPU_COUNTER1 0x00000301
1174#define MSR_PENTIUM_4_BPU_COUNTER2 0x00000302
1175#define MSR_PENTIUM_4_BPU_COUNTER3 0x00000303
1177
1198#define MSR_PENTIUM_4_MS_COUNTER0 0x00000304
1199#define MSR_PENTIUM_4_MS_COUNTER1 0x00000305
1200#define MSR_PENTIUM_4_MS_COUNTER2 0x00000306
1201#define MSR_PENTIUM_4_MS_COUNTER3 0x00000307
1203
1224#define MSR_PENTIUM_4_FLAME_COUNTER0 0x00000308
1225#define MSR_PENTIUM_4_FLAME_COUNTER1 0x00000309
1226#define MSR_PENTIUM_4_FLAME_COUNTER2 0x0000030A
1227#define MSR_PENTIUM_4_FLAME_COUNTER3 0x0000030B
1229
1252#define MSR_PENTIUM_4_IQ_COUNTER0 0x0000030C
1253#define MSR_PENTIUM_4_IQ_COUNTER1 0x0000030D
1254#define MSR_PENTIUM_4_IQ_COUNTER2 0x0000030E
1255#define MSR_PENTIUM_4_IQ_COUNTER3 0x0000030F
1256#define MSR_PENTIUM_4_IQ_COUNTER4 0x00000310
1257#define MSR_PENTIUM_4_IQ_COUNTER5 0x00000311
1259
1280#define MSR_PENTIUM_4_BPU_CCCR0 0x00000360
1281#define MSR_PENTIUM_4_BPU_CCCR1 0x00000361
1282#define MSR_PENTIUM_4_BPU_CCCR2 0x00000362
1283#define MSR_PENTIUM_4_BPU_CCCR3 0x00000363
1285
1306#define MSR_PENTIUM_4_MS_CCCR0 0x00000364
1307#define MSR_PENTIUM_4_MS_CCCR1 0x00000365
1308#define MSR_PENTIUM_4_MS_CCCR2 0x00000366
1309#define MSR_PENTIUM_4_MS_CCCR3 0x00000367
1311
1332#define MSR_PENTIUM_4_FLAME_CCCR0 0x00000368
1333#define MSR_PENTIUM_4_FLAME_CCCR1 0x00000369
1334#define MSR_PENTIUM_4_FLAME_CCCR2 0x0000036A
1335#define MSR_PENTIUM_4_FLAME_CCCR3 0x0000036B
1337
1360#define MSR_PENTIUM_4_IQ_CCCR0 0x0000036C
1361#define MSR_PENTIUM_4_IQ_CCCR1 0x0000036D
1362#define MSR_PENTIUM_4_IQ_CCCR2 0x0000036E
1363#define MSR_PENTIUM_4_IQ_CCCR3 0x0000036F
1364#define MSR_PENTIUM_4_IQ_CCCR4 0x00000370
1365#define MSR_PENTIUM_4_IQ_CCCR5 0x00000371
1367
1384#define MSR_PENTIUM_4_BSU_ESCR0 0x000003A0
1385
1402#define MSR_PENTIUM_4_BSU_ESCR1 0x000003A1
1403
1420#define MSR_PENTIUM_4_FSB_ESCR0 0x000003A2
1421
1438#define MSR_PENTIUM_4_FSB_ESCR1 0x000003A3
1439
1456#define MSR_PENTIUM_4_FIRM_ESCR0 0x000003A4
1457
1474#define MSR_PENTIUM_4_FIRM_ESCR1 0x000003A5
1475
1492#define MSR_PENTIUM_4_FLAME_ESCR0 0x000003A6
1493
1510#define MSR_PENTIUM_4_FLAME_ESCR1 0x000003A7
1511
1528#define MSR_PENTIUM_4_DAC_ESCR0 0x000003A8
1529
1546#define MSR_PENTIUM_4_DAC_ESCR1 0x000003A9
1547
1564#define MSR_PENTIUM_4_MOB_ESCR0 0x000003AA
1565
1582#define MSR_PENTIUM_4_MOB_ESCR1 0x000003AB
1583
1600#define MSR_PENTIUM_4_PMH_ESCR0 0x000003AC
1601
1618#define MSR_PENTIUM_4_PMH_ESCR1 0x000003AD
1619
1636#define MSR_PENTIUM_4_SAAT_ESCR0 0x000003AE
1637
1654#define MSR_PENTIUM_4_SAAT_ESCR1 0x000003AF
1655
1672#define MSR_PENTIUM_4_U2L_ESCR0 0x000003B0
1673
1690#define MSR_PENTIUM_4_U2L_ESCR1 0x000003B1
1691
1708#define MSR_PENTIUM_4_BPU_ESCR0 0x000003B2
1709
1726#define MSR_PENTIUM_4_BPU_ESCR1 0x000003B3
1727
1744#define MSR_PENTIUM_4_IS_ESCR0 0x000003B4
1745
1762#define MSR_PENTIUM_4_IS_ESCR1 0x000003B5
1763
1780#define MSR_PENTIUM_4_ITLB_ESCR0 0x000003B6
1781
1798#define MSR_PENTIUM_4_ITLB_ESCR1 0x000003B7
1799
1816#define MSR_PENTIUM_4_CRU_ESCR0 0x000003B8
1817
1834#define MSR_PENTIUM_4_CRU_ESCR1 0x000003B9
1835
1854#define MSR_PENTIUM_4_IQ_ESCR0 0x000003BA
1855
1874#define MSR_PENTIUM_4_IQ_ESCR1 0x000003BB
1875
1892#define MSR_PENTIUM_4_RAT_ESCR0 0x000003BC
1893
1910#define MSR_PENTIUM_4_RAT_ESCR1 0x000003BD
1911
1928#define MSR_PENTIUM_4_SSU_ESCR0 0x000003BE
1929
1946#define MSR_PENTIUM_4_MS_ESCR0 0x000003C0
1947
1964#define MSR_PENTIUM_4_MS_ESCR1 0x000003C1
1965
1982#define MSR_PENTIUM_4_TBPU_ESCR0 0x000003C2
1983
2000#define MSR_PENTIUM_4_TBPU_ESCR1 0x000003C3
2001
2018#define MSR_PENTIUM_4_TC_ESCR0 0x000003C4
2019
2036#define MSR_PENTIUM_4_TC_ESCR1 0x000003C5
2037
2054#define MSR_PENTIUM_4_IX_ESCR0 0x000003C8
2055
2072#define MSR_PENTIUM_4_IX_ESCR1 0x000003C9
2073
2096#define MSR_PENTIUM_4_ALF_ESCR0 0x000003CA
2097#define MSR_PENTIUM_4_ALF_ESCR1 0x000003CB
2098#define MSR_PENTIUM_4_CRU_ESCR2 0x000003CC
2099#define MSR_PENTIUM_4_CRU_ESCR3 0x000003CD
2100#define MSR_PENTIUM_4_CRU_ESCR4 0x000003E0
2101#define MSR_PENTIUM_4_CRU_ESCR5 0x000003E1
2103
2120#define MSR_PENTIUM_4_TC_PRECISE_EVENT 0x000003F0
2121
2141#define MSR_PENTIUM_4_PEBS_ENABLE 0x000003F1
2142
2146typedef union {
2150 struct {
2154 UINT32 EventNum : 13;
2155 UINT32 Reserved1 : 11;
2159 UINT32 UOP : 1;
2176 UINT32 Reserved2 : 5;
2177 UINT32 Reserved3 : 32;
2178 } Bits;
2182 UINT32 Uint32;
2186 UINT64 Uint64;
2188
2205#define MSR_PENTIUM_4_PEBS_MATRIX_VERT 0x000003F2
2206
2247#define MSR_PENTIUM_4_LASTBRANCH_0_FROM_IP 0x00000680
2248#define MSR_PENTIUM_4_LASTBRANCH_1_FROM_IP 0x00000681
2249#define MSR_PENTIUM_4_LASTBRANCH_2_FROM_IP 0x00000682
2250#define MSR_PENTIUM_4_LASTBRANCH_3_FROM_IP 0x00000683
2251#define MSR_PENTIUM_4_LASTBRANCH_4_FROM_IP 0x00000684
2252#define MSR_PENTIUM_4_LASTBRANCH_5_FROM_IP 0x00000685
2253#define MSR_PENTIUM_4_LASTBRANCH_6_FROM_IP 0x00000686
2254#define MSR_PENTIUM_4_LASTBRANCH_7_FROM_IP 0x00000687
2255#define MSR_PENTIUM_4_LASTBRANCH_8_FROM_IP 0x00000688
2256#define MSR_PENTIUM_4_LASTBRANCH_9_FROM_IP 0x00000689
2257#define MSR_PENTIUM_4_LASTBRANCH_10_FROM_IP 0x0000068A
2258#define MSR_PENTIUM_4_LASTBRANCH_11_FROM_IP 0x0000068B
2259#define MSR_PENTIUM_4_LASTBRANCH_12_FROM_IP 0x0000068C
2260#define MSR_PENTIUM_4_LASTBRANCH_13_FROM_IP 0x0000068D
2261#define MSR_PENTIUM_4_LASTBRANCH_14_FROM_IP 0x0000068E
2262#define MSR_PENTIUM_4_LASTBRANCH_15_FROM_IP 0x0000068F
2264
2302#define MSR_PENTIUM_4_LASTBRANCH_0_TO_IP 0x000006C0
2303#define MSR_PENTIUM_4_LASTBRANCH_1_TO_IP 0x000006C1
2304#define MSR_PENTIUM_4_LASTBRANCH_2_TO_IP 0x000006C2
2305#define MSR_PENTIUM_4_LASTBRANCH_3_TO_IP 0x000006C3
2306#define MSR_PENTIUM_4_LASTBRANCH_4_TO_IP 0x000006C4
2307#define MSR_PENTIUM_4_LASTBRANCH_5_TO_IP 0x000006C5
2308#define MSR_PENTIUM_4_LASTBRANCH_6_TO_IP 0x000006C6
2309#define MSR_PENTIUM_4_LASTBRANCH_7_TO_IP 0x000006C7
2310#define MSR_PENTIUM_4_LASTBRANCH_8_TO_IP 0x000006C8
2311#define MSR_PENTIUM_4_LASTBRANCH_9_TO_IP 0x000006C9
2312#define MSR_PENTIUM_4_LASTBRANCH_10_TO_IP 0x000006CA
2313#define MSR_PENTIUM_4_LASTBRANCH_11_TO_IP 0x000006CB
2314#define MSR_PENTIUM_4_LASTBRANCH_12_TO_IP 0x000006CC
2315#define MSR_PENTIUM_4_LASTBRANCH_13_TO_IP 0x000006CD
2316#define MSR_PENTIUM_4_LASTBRANCH_14_TO_IP 0x000006CE
2317#define MSR_PENTIUM_4_LASTBRANCH_15_TO_IP 0x000006CF
2319
2338#define MSR_PENTIUM_4_IFSB_BUSQ0 0x000107CC
2339
2356#define MSR_PENTIUM_4_IFSB_BUSQ1 0x000107CD
2357
2376#define MSR_PENTIUM_4_IFSB_SNPQ0 0x000107CE
2377
2394#define MSR_PENTIUM_4_IFSB_SNPQ1 0x000107CF
2395
2414#define MSR_PENTIUM_4_EFSB_DRDY0 0x000107D0
2415
2432#define MSR_PENTIUM_4_EFSB_DRDY1 0x000107D1
2433
2452#define MSR_PENTIUM_4_IFSB_CTL6 0x000107D2
2453
2472#define MSR_PENTIUM_4_IFSB_CNTR7 0x000107D3
2473
2492#define MSR_PENTIUM_4_EMON_L3_CTR_CTL0 0x000107CC
2493
2510#define MSR_PENTIUM_4_EMON_L3_CTR_CTL1 0x000107CD
2511
2530#define MSR_PENTIUM_4_EMON_L3_CTR_CTL2 0x000107CE
2531
2548#define MSR_PENTIUM_4_EMON_L3_CTR_CTL3 0x000107CF
2549
2568#define MSR_PENTIUM_4_EMON_L3_CTR_CTL4 0x000107D0
2569
2586#define MSR_PENTIUM_4_EMON_L3_CTR_CTL5 0x000107D1
2587
2604#define MSR_PENTIUM_4_EMON_L3_CTR_CTL6 0x000107D2
2605
2622#define MSR_PENTIUM_4_EMON_L3_CTR_CTL7 0x000107D3
2623
2624#endif