]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Include/Register/Msr/SilvermontMsr.h
UefiCpuPkg/SilvermontMsr.h: add MSR reference from SDM in comment
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / SilvermontMsr.h
CommitLineData
053a6ae9
MK
1/** @file\r
2 MSR Definitions for Intel processors based on the Silvermont microarchitecture.\r
3\r
4 Provides defines for Machine Specific Registers(MSR) indexes. Data structures\r
5 are provided for MSRs that contain one or more bit fields. If the MSR value\r
6 returned is a single 32-bit or 64-bit value, then a data structure is not\r
7 provided for that MSR.\r
8\r
9 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
10 This program and the accompanying materials\r
11 are licensed and made available under the terms and conditions of the BSD License\r
12 which accompanies this distribution. The full text of the license may be found at\r
13 http://opensource.org/licenses/bsd-license.php\r
14\r
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
17\r
18 @par Specification Reference:\r
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,\r
20 December 2015, Chapter 35 Model-Specific-Registers (MSR), Section 35-4.\r
21\r
22**/\r
23\r
24#ifndef __SILVERMONT_MSR_H__\r
25#define __SILVERMONT_MSR_H__\r
26\r
27#include <Register/ArchitecturalMsr.h>\r
28\r
29/**\r
30 Shared. Model Specific Platform ID (R).\r
31\r
32 @param ECX MSR_SILVERMONT_PLATFORM_ID (0x00000017)\r
33 @param EAX Lower 32-bits of MSR value.\r
34 Described by the type MSR_SILVERMONT_PLATFORM_ID_REGISTER.\r
35 @param EDX Upper 32-bits of MSR value.\r
36 Described by the type MSR_SILVERMONT_PLATFORM_ID_REGISTER.\r
37\r
38 <b>Example usage</b>\r
39 @code\r
40 MSR_SILVERMONT_PLATFORM_ID_REGISTER Msr;\r
41\r
42 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PLATFORM_ID);\r
43 @endcode\r
94fe1b5f 44 @note MSR_SILVERMONT_PLATFORM_ID is defined as MSR_PLATFORM_ID in SDM.\r
053a6ae9
MK
45**/\r
46#define MSR_SILVERMONT_PLATFORM_ID 0x00000017\r
47\r
48/**\r
49 MSR information returned for MSR index #MSR_SILVERMONT_PLATFORM_ID\r
50**/\r
51typedef union {\r
52 ///\r
53 /// Individual bit fields\r
54 ///\r
55 struct {\r
56 UINT32 Reserved1:8;\r
57 ///\r
58 /// [Bits 12:8] Maximum Qualified Ratio (R) The maximum allowed bus ratio.\r
59 ///\r
60 UINT32 MaximumQualifiedRatio:5;\r
61 UINT32 Reserved2:19;\r
62 UINT32 Reserved3:18;\r
63 ///\r
64 /// [Bits 52:50] See Table 35-2.\r
65 ///\r
66 UINT32 PlatformId:3;\r
67 UINT32 Reserved4:11;\r
68 } Bits;\r
69 ///\r
70 /// All bit fields as a 64-bit value\r
71 ///\r
72 UINT64 Uint64;\r
73} MSR_SILVERMONT_PLATFORM_ID_REGISTER;\r
74\r
75\r
76/**\r
77 Shared. Processor Hard Power-On Configuration (R/W) Enables and disables\r
78 processor features; (R) indicates current processor configuration.\r
79\r
80 @param ECX MSR_SILVERMONT_EBL_CR_POWERON (0x0000002A)\r
81 @param EAX Lower 32-bits of MSR value.\r
82 Described by the type MSR_SILVERMONT_EBL_CR_POWERON_REGISTER.\r
83 @param EDX Upper 32-bits of MSR value.\r
84 Described by the type MSR_SILVERMONT_EBL_CR_POWERON_REGISTER.\r
85\r
86 <b>Example usage</b>\r
87 @code\r
88 MSR_SILVERMONT_EBL_CR_POWERON_REGISTER Msr;\r
89\r
90 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_EBL_CR_POWERON);\r
91 AsmWriteMsr64 (MSR_SILVERMONT_EBL_CR_POWERON, Msr.Uint64);\r
92 @endcode\r
94fe1b5f 93 @note MSR_SILVERMONT_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.\r
053a6ae9
MK
94**/\r
95#define MSR_SILVERMONT_EBL_CR_POWERON 0x0000002A\r
96\r
97/**\r
98 MSR information returned for MSR index #MSR_SILVERMONT_EBL_CR_POWERON\r
99**/\r
100typedef union {\r
101 ///\r
102 /// Individual bit fields\r
103 ///\r
104 struct {\r
105 UINT32 Reserved1:1;\r
106 ///\r
107 /// [Bit 1] Data Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled\r
108 /// Always 0.\r
109 ///\r
110 UINT32 DataErrorCheckingEnable:1;\r
111 ///\r
112 /// [Bit 2] Response Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled\r
113 /// Always 0.\r
114 ///\r
115 UINT32 ResponseErrorCheckingEnable:1;\r
116 ///\r
117 /// [Bit 3] AERR# Drive Enable (R/W) 1 = Enabled; 0 = Disabled Always 0.\r
118 ///\r
119 UINT32 AERR_DriveEnable:1;\r
120 ///\r
121 /// [Bit 4] BERR# Enable for initiator bus requests (R/W) 1 = Enabled; 0 =\r
122 /// Disabled Always 0.\r
123 ///\r
124 UINT32 BERR_Enable:1;\r
125 UINT32 Reserved2:1;\r
126 UINT32 Reserved3:1;\r
127 ///\r
128 /// [Bit 7] BINIT# Driver Enable (R/W) 1 = Enabled; 0 = Disabled Always 0.\r
129 ///\r
130 UINT32 BINIT_DriverEnable:1;\r
131 UINT32 Reserved4:1;\r
132 ///\r
133 /// [Bit 9] Execute BIST (R/O) 1 = Enabled; 0 = Disabled.\r
134 ///\r
135 UINT32 ExecuteBIST:1;\r
136 ///\r
137 /// [Bit 10] AERR# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled\r
138 /// Always 0.\r
139 ///\r
140 UINT32 AERR_ObservationEnabled:1;\r
141 UINT32 Reserved5:1;\r
142 ///\r
143 /// [Bit 12] BINIT# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled\r
144 /// Always 0.\r
145 ///\r
146 UINT32 BINIT_ObservationEnabled:1;\r
147 UINT32 Reserved6:1;\r
148 ///\r
149 /// [Bit 14] 1 MByte Power on Reset Vector (R/O) 1 = 1 MByte; 0 = 4 GBytes.\r
150 ///\r
151 UINT32 ResetVector:1;\r
152 UINT32 Reserved7:1;\r
153 ///\r
154 /// [Bits 17:16] APIC Cluster ID (R/O) Always 00B.\r
155 ///\r
156 UINT32 APICClusterID:2;\r
157 UINT32 Reserved8:2;\r
158 ///\r
159 /// [Bits 21:20] Symmetric Arbitration ID (R/O) Always 00B.\r
160 ///\r
161 UINT32 SymmetricArbitrationID:2;\r
162 ///\r
163 /// [Bits 26:22] Integer Bus Frequency Ratio (R/O).\r
164 ///\r
165 UINT32 IntegerBusFrequencyRatio:5;\r
166 UINT32 Reserved9:5;\r
167 UINT32 Reserved10:32;\r
168 } Bits;\r
169 ///\r
170 /// All bit fields as a 32-bit value\r
171 ///\r
172 UINT32 Uint32;\r
173 ///\r
174 /// All bit fields as a 64-bit value\r
175 ///\r
176 UINT64 Uint64;\r
177} MSR_SILVERMONT_EBL_CR_POWERON_REGISTER;\r
178\r
179\r
180/**\r
181 Core. SMI Counter (R/O).\r
182\r
183 @param ECX MSR_SILVERMONT_SMI_COUNT (0x00000034)\r
184 @param EAX Lower 32-bits of MSR value.\r
185 Described by the type MSR_SILVERMONT_SMI_COUNT_REGISTER.\r
186 @param EDX Upper 32-bits of MSR value.\r
187 Described by the type MSR_SILVERMONT_SMI_COUNT_REGISTER.\r
188\r
189 <b>Example usage</b>\r
190 @code\r
191 MSR_SILVERMONT_SMI_COUNT_REGISTER Msr;\r
192\r
193 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_SMI_COUNT);\r
194 @endcode\r
94fe1b5f 195 @note MSR_SILVERMONT_SMI_COUNT is defined as MSR_SMI_COUNT in SDM.\r
053a6ae9
MK
196**/\r
197#define MSR_SILVERMONT_SMI_COUNT 0x00000034\r
198\r
199/**\r
200 MSR information returned for MSR index #MSR_SILVERMONT_SMI_COUNT\r
201**/\r
202typedef union {\r
203 ///\r
204 /// Individual bit fields\r
205 ///\r
206 struct {\r
207 ///\r
208 /// [Bits 31:0] SMI Count (R/O) Running count of SMI events since last\r
209 /// RESET.\r
210 ///\r
211 UINT32 SMICount:32;\r
212 UINT32 Reserved:32;\r
213 } Bits;\r
214 ///\r
215 /// All bit fields as a 32-bit value\r
216 ///\r
217 UINT32 Uint32;\r
218 ///\r
219 /// All bit fields as a 64-bit value\r
220 ///\r
221 UINT64 Uint64;\r
222} MSR_SILVERMONT_SMI_COUNT_REGISTER;\r
223\r
224\r
225/**\r
226 Core. Last Branch Record n From IP (R/W) One of eight pairs of last branch\r
227 record registers on the last branch record stack. This part of the stack\r
228 contains pointers to the source instruction for one of the last eight\r
229 branches, exceptions, or interrupts taken by the processor. See also: -\r
230 Last Branch Record Stack TOS at 1C9H - Section 17.12, "Last Branch,\r
231 Interrupt, and Exception Recording (Pentium M Processors).".\r
232\r
233 @param ECX MSR_SILVERMONT_LASTBRANCH_n_FROM_IP\r
234 @param EAX Lower 32-bits of MSR value.\r
235 @param EDX Upper 32-bits of MSR value.\r
236\r
237 <b>Example usage</b>\r
238 @code\r
239 UINT64 Msr;\r
240\r
241 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_0_FROM_IP);\r
242 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_0_FROM_IP, Msr);\r
243 @endcode\r
94fe1b5f
JF
244 @note MSR_SILVERMONT_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.\r
245 MSR_SILVERMONT_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.\r
246 MSR_SILVERMONT_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.\r
247 MSR_SILVERMONT_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.\r
248 MSR_SILVERMONT_LASTBRANCH_4_FROM_IP is defined as MSR_LASTBRANCH_4_FROM_IP in SDM.\r
249 MSR_SILVERMONT_LASTBRANCH_5_FROM_IP is defined as MSR_LASTBRANCH_5_FROM_IP in SDM.\r
250 MSR_SILVERMONT_LASTBRANCH_6_FROM_IP is defined as MSR_LASTBRANCH_6_FROM_IP in SDM.\r
251 MSR_SILVERMONT_LASTBRANCH_7_FROM_IP is defined as MSR_LASTBRANCH_7_FROM_IP in SDM.\r
053a6ae9
MK
252 @{\r
253**/\r
254#define MSR_SILVERMONT_LASTBRANCH_0_FROM_IP 0x00000040\r
255#define MSR_SILVERMONT_LASTBRANCH_1_FROM_IP 0x00000041\r
256#define MSR_SILVERMONT_LASTBRANCH_2_FROM_IP 0x00000042\r
257#define MSR_SILVERMONT_LASTBRANCH_3_FROM_IP 0x00000043\r
258#define MSR_SILVERMONT_LASTBRANCH_4_FROM_IP 0x00000044\r
259#define MSR_SILVERMONT_LASTBRANCH_5_FROM_IP 0x00000045\r
260#define MSR_SILVERMONT_LASTBRANCH_6_FROM_IP 0x00000046\r
261#define MSR_SILVERMONT_LASTBRANCH_7_FROM_IP 0x00000047\r
262/// @}\r
263\r
264\r
265/**\r
266 Core. Last Branch Record n To IP (R/W) One of eight pairs of last branch\r
267 record registers on the last branch record stack. This part of the stack\r
268 contains pointers to the destination instruction for one of the last eight\r
269 branches, exceptions, or interrupts taken by the processor.\r
270\r
271 @param ECX MSR_SILVERMONT_LASTBRANCH_n_TO_IP\r
272 @param EAX Lower 32-bits of MSR value.\r
273 @param EDX Upper 32-bits of MSR value.\r
274\r
275 <b>Example usage</b>\r
276 @code\r
277 UINT64 Msr;\r
278\r
279 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_0_TO_IP);\r
280 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_0_TO_IP, Msr);\r
281 @endcode\r
94fe1b5f
JF
282 @note MSR_SILVERMONT_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.\r
283 MSR_SILVERMONT_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.\r
284 MSR_SILVERMONT_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.\r
285 MSR_SILVERMONT_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.\r
286 MSR_SILVERMONT_LASTBRANCH_4_TO_IP is defined as MSR_LASTBRANCH_4_TO_IP in SDM.\r
287 MSR_SILVERMONT_LASTBRANCH_5_TO_IP is defined as MSR_LASTBRANCH_5_TO_IP in SDM.\r
288 MSR_SILVERMONT_LASTBRANCH_6_TO_IP is defined as MSR_LASTBRANCH_6_TO_IP in SDM.\r
289 MSR_SILVERMONT_LASTBRANCH_7_TO_IP is defined as MSR_LASTBRANCH_7_TO_IP in SDM.\r
053a6ae9
MK
290 @{\r
291**/\r
292#define MSR_SILVERMONT_LASTBRANCH_0_TO_IP 0x00000060\r
293#define MSR_SILVERMONT_LASTBRANCH_1_TO_IP 0x00000061\r
294#define MSR_SILVERMONT_LASTBRANCH_2_TO_IP 0x00000062\r
295#define MSR_SILVERMONT_LASTBRANCH_3_TO_IP 0x00000063\r
296#define MSR_SILVERMONT_LASTBRANCH_4_TO_IP 0x00000064\r
297#define MSR_SILVERMONT_LASTBRANCH_5_TO_IP 0x00000065\r
298#define MSR_SILVERMONT_LASTBRANCH_6_TO_IP 0x00000066\r
299#define MSR_SILVERMONT_LASTBRANCH_7_TO_IP 0x00000067\r
300/// @}\r
301\r
302\r
303/**\r
304 Shared. Scalable Bus Speed(RO) This field indicates the intended scalable\r
305 bus clock speed for processors based on Silvermont microarchitecture:.\r
306\r
307 @param ECX MSR_SILVERMONT_FSB_FREQ (0x000000CD)\r
308 @param EAX Lower 32-bits of MSR value.\r
309 Described by the type MSR_SILVERMONT_FSB_FREQ_REGISTER.\r
310 @param EDX Upper 32-bits of MSR value.\r
311 Described by the type MSR_SILVERMONT_FSB_FREQ_REGISTER.\r
312\r
313 <b>Example usage</b>\r
314 @code\r
315 MSR_SILVERMONT_FSB_FREQ_REGISTER Msr;\r
316\r
317 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_FSB_FREQ);\r
318 @endcode\r
94fe1b5f 319 @note MSR_SILVERMONT_FSB_FREQ is defined as MSR_FSB_FREQ in SDM.\r
053a6ae9
MK
320**/\r
321#define MSR_SILVERMONT_FSB_FREQ 0x000000CD\r
322\r
323/**\r
324 MSR information returned for MSR index #MSR_SILVERMONT_FSB_FREQ\r
325**/\r
326typedef union {\r
327 ///\r
328 /// Individual bit fields\r
329 ///\r
330 struct {\r
331 ///\r
332 /// [Bits 3:0] Scalable Bus Speed\r
333 ///\r
334 /// Silvermont Processor Family\r
335 /// ---------------------------\r
336 /// 100B: 080.0 MHz\r
337 /// 000B: 083.3 MHz\r
338 /// 001B: 100.0 MHz\r
339 /// 010B: 133.3 MHz\r
340 /// 011B: 116.7 MHz\r
341 ///\r
342 /// Airmont Processor Family\r
343 /// ---------------------------\r
344 /// 0000B: 083.3 MHz\r
345 /// 0001B: 100.0 MHz\r
346 /// 0010B: 133.3 MHz\r
347 /// 0011B: 116.7 MHz\r
348 /// 0100B: 080.0 MHz\r
349 /// 0101B: 093.3 MHz\r
350 /// 0110B: 090.0 MHz\r
351 /// 0111B: 088.9 MHz\r
352 /// 1000B: 087.5 MHz\r
353 ///\r
354 UINT32 ScalableBusSpeed:4;\r
355 UINT32 Reserved1:28;\r
356 UINT32 Reserved2:32;\r
357 } Bits;\r
358 ///\r
359 /// All bit fields as a 32-bit value\r
360 ///\r
361 UINT32 Uint32;\r
362 ///\r
363 /// All bit fields as a 64-bit value\r
364 ///\r
365 UINT64 Uint64;\r
366} MSR_SILVERMONT_FSB_FREQ_REGISTER;\r
367\r
368\r
369/**\r
370 Shared. C-State Configuration Control (R/W) Note: C-state values are\r
371 processor specific C-state code names, unrelated to MWAIT extension C-state\r
372 parameters or ACPI CStates. See http://biosbits.org.\r
373\r
374 @param ECX MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL (0x000000E2)\r
375 @param EAX Lower 32-bits of MSR value.\r
376 Described by the type MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER.\r
377 @param EDX Upper 32-bits of MSR value.\r
378 Described by the type MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER.\r
379\r
380 <b>Example usage</b>\r
381 @code\r
382 MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER Msr;\r
383\r
384 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL);\r
385 AsmWriteMsr64 (MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL, Msr.Uint64);\r
386 @endcode\r
94fe1b5f 387 @note MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL is defined as MSR_PKG_CST_CONFIG_CONTROL in SDM.\r
053a6ae9
MK
388**/\r
389#define MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL 0x000000E2\r
390\r
391/**\r
392 MSR information returned for MSR index #MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL\r
393**/\r
394typedef union {\r
395 ///\r
396 /// Individual bit fields\r
397 ///\r
398 struct {\r
399 ///\r
400 /// [Bits 2:0] Package C-State Limit (R/W) Specifies the lowest\r
401 /// processor-specific C-state code name (consuming the least power). for\r
402 /// the package. The default is set as factory-configured package C-state\r
403 /// limit. The following C-state code name encodings are supported: 000b:\r
404 /// C0 (no package C-sate support) 001b: C1 (Behavior is the same as 000b)\r
405 /// 100b: C4 110b: C6 111b: C7 (Silvermont only).\r
406 ///\r
407 UINT32 Limit:3;\r
408 UINT32 Reserved1:7;\r
409 ///\r
410 /// [Bit 10] I/O MWAIT Redirection Enable (R/W) When set, will map\r
411 /// IO_read instructions sent to IO register specified by\r
412 /// MSR_PMG_IO_CAPTURE_BASE to MWAIT instructions.\r
413 ///\r
414 UINT32 IO_MWAIT:1;\r
415 UINT32 Reserved2:4;\r
416 ///\r
417 /// [Bit 15] CFG Lock (R/WO) When set, lock bits 15:0 of this register\r
418 /// until next reset.\r
419 ///\r
420 UINT32 CFGLock:1;\r
421 UINT32 Reserved3:16;\r
422 UINT32 Reserved4:32;\r
423 } Bits;\r
424 ///\r
425 /// All bit fields as a 32-bit value\r
426 ///\r
427 UINT32 Uint32;\r
428 ///\r
429 /// All bit fields as a 64-bit value\r
430 ///\r
431 UINT64 Uint64;\r
432} MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER;\r
433\r
434\r
435/**\r
436 Shared. Power Management IO Redirection in C-state (R/W) See\r
437 http://biosbits.org.\r
438\r
439 @param ECX MSR_SILVERMONT_PMG_IO_CAPTURE_BASE (0x000000E4)\r
440 @param EAX Lower 32-bits of MSR value.\r
441 Described by the type MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER.\r
442 @param EDX Upper 32-bits of MSR value.\r
443 Described by the type MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER.\r
444\r
445 <b>Example usage</b>\r
446 @code\r
447 MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER Msr;\r
448\r
449 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PMG_IO_CAPTURE_BASE);\r
450 AsmWriteMsr64 (MSR_SILVERMONT_PMG_IO_CAPTURE_BASE, Msr.Uint64);\r
451 @endcode\r
94fe1b5f 452 @note MSR_SILVERMONT_PMG_IO_CAPTURE_BASE is defined as MSR_PMG_IO_CAPTURE_BASE in SDM.\r
053a6ae9
MK
453**/\r
454#define MSR_SILVERMONT_PMG_IO_CAPTURE_BASE 0x000000E4\r
455\r
456/**\r
457 MSR information returned for MSR index #MSR_SILVERMONT_PMG_IO_CAPTURE_BASE\r
458**/\r
459typedef union {\r
460 ///\r
461 /// Individual bit fields\r
462 ///\r
463 struct {\r
464 ///\r
465 /// [Bits 15:0] LVL_2 Base Address (R/W) Specifies the base address\r
466 /// visible to software for IO redirection. If IO MWAIT Redirection is\r
467 /// enabled, reads to this address will be consumed by the power\r
468 /// management logic and decoded to MWAIT instructions. When IO port\r
469 /// address redirection is enabled, this is the IO port address reported\r
470 /// to the OS/software.\r
471 ///\r
472 UINT32 Lvl2Base:16;\r
473 ///\r
474 /// [Bits 18:16] C-state Range (R/W) Specifies the encoding value of the\r
475 /// maximum C-State code name to be included when IO read to MWAIT\r
476 /// redirection is enabled by MSR_PKG_CST_CONFIG_CONTROL[bit10]: 100b - C4\r
477 /// is the max C-State to include 110b - C6 is the max C-State to include\r
478 /// 111b - C7 is the max C-State to include.\r
479 ///\r
480 UINT32 CStateRange:3;\r
481 UINT32 Reserved1:13;\r
482 UINT32 Reserved2:32;\r
483 } Bits;\r
484 ///\r
485 /// All bit fields as a 32-bit value\r
486 ///\r
487 UINT32 Uint32;\r
488 ///\r
489 /// All bit fields as a 64-bit value\r
490 ///\r
491 UINT64 Uint64;\r
492} MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER;\r
493\r
494\r
495/**\r
496 Shared.\r
497\r
498 @param ECX MSR_SILVERMONT_BBL_CR_CTL3 (0x0000011E)\r
499 @param EAX Lower 32-bits of MSR value.\r
500 Described by the type MSR_SILVERMONT_BBL_CR_CTL3_REGISTER.\r
501 @param EDX Upper 32-bits of MSR value.\r
502 Described by the type MSR_SILVERMONT_BBL_CR_CTL3_REGISTER.\r
503\r
504 <b>Example usage</b>\r
505 @code\r
506 MSR_SILVERMONT_BBL_CR_CTL3_REGISTER Msr;\r
507\r
508 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_BBL_CR_CTL3);\r
509 AsmWriteMsr64 (MSR_SILVERMONT_BBL_CR_CTL3, Msr.Uint64);\r
510 @endcode\r
94fe1b5f 511 @note MSR_SILVERMONT_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.\r
053a6ae9
MK
512**/\r
513#define MSR_SILVERMONT_BBL_CR_CTL3 0x0000011E\r
514\r
515/**\r
516 MSR information returned for MSR index #MSR_SILVERMONT_BBL_CR_CTL3\r
517**/\r
518typedef union {\r
519 ///\r
520 /// Individual bit fields\r
521 ///\r
522 struct {\r
523 ///\r
524 /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =\r
525 /// Indicates if the L2 is hardware-disabled.\r
526 ///\r
527 UINT32 L2HardwareEnabled:1;\r
528 UINT32 Reserved1:7;\r
529 ///\r
530 /// [Bit 8] L2 Enabled. (R/W) 1 = L2 cache has been initialized 0 =\r
531 /// Disabled (default) Until this bit is set the processor will not\r
532 /// respond to the WBINVD instruction or the assertion of the FLUSH# input.\r
533 ///\r
534 UINT32 L2Enabled:1;\r
535 UINT32 Reserved2:14;\r
536 ///\r
537 /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.\r
538 ///\r
539 UINT32 L2NotPresent:1;\r
540 UINT32 Reserved3:8;\r
541 UINT32 Reserved4:32;\r
542 } Bits;\r
543 ///\r
544 /// All bit fields as a 32-bit value\r
545 ///\r
546 UINT32 Uint32;\r
547 ///\r
548 /// All bit fields as a 64-bit value\r
549 ///\r
550 UINT64 Uint64;\r
551} MSR_SILVERMONT_BBL_CR_CTL3_REGISTER;\r
552\r
553\r
554/**\r
555 Core. AES Configuration (RW-L) Privileged post-BIOS agent must provide a #GP\r
556 handler to handle unsuccessful read of this MSR.\r
557\r
558 @param ECX MSR_SILVERMONT_FEATURE_CONFIG (0x0000013C)\r
559 @param EAX Lower 32-bits of MSR value.\r
560 Described by the type MSR_SILVERMONT_FEATURE_CONFIG_REGISTER.\r
561 @param EDX Upper 32-bits of MSR value.\r
562 Described by the type MSR_SILVERMONT_FEATURE_CONFIG_REGISTER.\r
563\r
564 <b>Example usage</b>\r
565 @code\r
566 MSR_SILVERMONT_FEATURE_CONFIG_REGISTER Msr;\r
567\r
568 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_FEATURE_CONFIG);\r
569 AsmWriteMsr64 (MSR_SILVERMONT_FEATURE_CONFIG, Msr.Uint64);\r
570 @endcode\r
94fe1b5f 571 @note MSR_SILVERMONT_FEATURE_CONFIG is defined as MSR_FEATURE_CONFIG in SDM.\r
053a6ae9
MK
572**/\r
573#define MSR_SILVERMONT_FEATURE_CONFIG 0x0000013C\r
574\r
575/**\r
576 MSR information returned for MSR index #MSR_SILVERMONT_FEATURE_CONFIG\r
577**/\r
578typedef union {\r
579 ///\r
580 /// Individual bit fields\r
581 ///\r
582 struct {\r
583 ///\r
584 /// [Bits 1:0] AES Configuration (RW-L) Upon a successful read of this\r
585 /// MSR, the configuration of AES instruction set availability is as\r
586 /// follows: 11b: AES instructions are not available until next RESET.\r
587 /// otherwise, AES instructions are available. Note, AES instruction set\r
588 /// is not available if read is unsuccessful. If the configuration is not\r
589 /// 01b, AES instruction can be mis-configured if a privileged agent\r
590 /// unintentionally writes 11b.\r
591 ///\r
592 UINT32 AESConfiguration:2;\r
593 UINT32 Reserved1:30;\r
594 UINT32 Reserved2:32;\r
595 } Bits;\r
596 ///\r
597 /// All bit fields as a 32-bit value\r
598 ///\r
599 UINT32 Uint32;\r
600 ///\r
601 /// All bit fields as a 64-bit value\r
602 ///\r
603 UINT64 Uint64;\r
604} MSR_SILVERMONT_FEATURE_CONFIG_REGISTER;\r
605\r
606\r
607/**\r
608 Enable Misc. Processor Features (R/W) Allows a variety of processor\r
609 functions to be enabled and disabled.\r
610\r
611 @param ECX MSR_SILVERMONT_IA32_MISC_ENABLE (0x000001A0)\r
612 @param EAX Lower 32-bits of MSR value.\r
613 Described by the type MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER.\r
614 @param EDX Upper 32-bits of MSR value.\r
615 Described by the type MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER.\r
616\r
617 <b>Example usage</b>\r
618 @code\r
619 MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER Msr;\r
620\r
621 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_IA32_MISC_ENABLE);\r
622 AsmWriteMsr64 (MSR_SILVERMONT_IA32_MISC_ENABLE, Msr.Uint64);\r
623 @endcode\r
94fe1b5f 624 @note MSR_SILVERMONT_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.\r
053a6ae9
MK
625**/\r
626#define MSR_SILVERMONT_IA32_MISC_ENABLE 0x000001A0\r
627\r
628/**\r
629 MSR information returned for MSR index #MSR_SILVERMONT_IA32_MISC_ENABLE\r
630**/\r
631typedef union {\r
632 ///\r
633 /// Individual bit fields\r
634 ///\r
635 struct {\r
636 ///\r
637 /// [Bit 0] Core. Fast-Strings Enable See Table 35-2.\r
638 ///\r
639 UINT32 FastStrings:1;\r
640 UINT32 Reserved1:2;\r
641 ///\r
642 /// [Bit 3] Shared. Automatic Thermal Control Circuit Enable (R/W) See\r
643 /// Table 35-2.\r
644 ///\r
645 UINT32 AutomaticThermalControlCircuit:1;\r
646 UINT32 Reserved2:3;\r
647 ///\r
648 /// [Bit 7] Core. Performance Monitoring Available (R) See Table 35-2.\r
649 ///\r
650 UINT32 PerformanceMonitoring:1;\r
651 UINT32 Reserved3:3;\r
652 ///\r
653 /// [Bit 11] Core. Branch Trace Storage Unavailable (RO) See Table 35-2.\r
654 ///\r
655 UINT32 BTS:1;\r
656 ///\r
657 /// [Bit 12] Core. Precise Event Based Sampling Unavailable (RO) See Table\r
658 /// 35-2.\r
659 ///\r
660 UINT32 PEBS:1;\r
661 UINT32 Reserved4:3;\r
662 ///\r
663 /// [Bit 16] Shared. Enhanced Intel SpeedStep Technology Enable (R/W) See\r
664 /// Table 35-2.\r
665 ///\r
666 UINT32 EIST:1;\r
667 UINT32 Reserved5:1;\r
668 ///\r
669 /// [Bit 18] Core. ENABLE MONITOR FSM (R/W) See Table 35-2.\r
670 ///\r
671 UINT32 MONITOR:1;\r
672 UINT32 Reserved6:3;\r
673 ///\r
674 /// [Bit 22] Core. Limit CPUID Maxval (R/W) See Table 35-2.\r
675 ///\r
676 UINT32 LimitCpuidMaxval:1;\r
677 ///\r
678 /// [Bit 23] Shared. xTPR Message Disable (R/W) See Table 35-2.\r
679 ///\r
680 UINT32 xTPR_Message_Disable:1;\r
681 UINT32 Reserved7:8;\r
682 UINT32 Reserved8:2;\r
683 ///\r
684 /// [Bit 34] Core. XD Bit Disable (R/W) See Table 35-2.\r
685 ///\r
686 UINT32 XD:1;\r
687 UINT32 Reserved9:3;\r
688 ///\r
689 /// [Bit 38] Shared. Turbo Mode Disable (R/W) When set to 1 on processors\r
690 /// that support Intel Turbo Boost Technology, the turbo mode feature is\r
691 /// disabled and the IDA_Enable feature flag will be clear (CPUID.06H:\r
692 /// EAX[1]=0). When set to a 0 on processors that support IDA, CPUID.06H:\r
693 /// EAX[1] reports the processor's support of turbo mode is enabled. Note:\r
694 /// the power-on default value is used by BIOS to detect hardware support\r
695 /// of turbo mode. If power-on default value is 1, turbo mode is available\r
696 /// in the processor. If power-on default value is 0, turbo mode is not\r
697 /// available.\r
698 ///\r
699 UINT32 TurboModeDisable:1;\r
700 UINT32 Reserved10:25;\r
701 } Bits;\r
702 ///\r
703 /// All bit fields as a 64-bit value\r
704 ///\r
705 UINT64 Uint64;\r
706} MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER;\r
707\r
708\r
709/**\r
710 Package.\r
711\r
712 @param ECX MSR_SILVERMONT_TEMPERATURE_TARGET (0x000001A2)\r
713 @param EAX Lower 32-bits of MSR value.\r
714 Described by the type MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER.\r
715 @param EDX Upper 32-bits of MSR value.\r
716 Described by the type MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER.\r
717\r
718 <b>Example usage</b>\r
719 @code\r
720 MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER Msr;\r
721\r
722 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_TEMPERATURE_TARGET);\r
723 AsmWriteMsr64 (MSR_SILVERMONT_TEMPERATURE_TARGET, Msr.Uint64);\r
724 @endcode\r
94fe1b5f 725 @note MSR_SILVERMONT_TEMPERATURE_TARGET is defined as MSR_TEMPERATURE_TARGET in SDM.\r
053a6ae9
MK
726**/\r
727#define MSR_SILVERMONT_TEMPERATURE_TARGET 0x000001A2\r
728\r
729/**\r
730 MSR information returned for MSR index #MSR_SILVERMONT_TEMPERATURE_TARGET\r
731**/\r
732typedef union {\r
733 ///\r
734 /// Individual bit fields\r
735 ///\r
736 struct {\r
737 UINT32 Reserved1:16;\r
738 ///\r
739 /// [Bits 23:16] Temperature Target (R) The default thermal throttling or\r
740 /// PROCHOT# activation temperature in degree C, The effective temperature\r
741 /// for thermal throttling or PROCHOT# activation is "Temperature Target"\r
742 /// + "Target Offset".\r
743 ///\r
744 UINT32 TemperatureTarget:8;\r
745 ///\r
746 /// [Bits 29:24] Target Offset (R/W) Specifies an offset in degrees C to\r
747 /// adjust the throttling and PROCHOT# activation temperature from the\r
748 /// default target specified in TEMPERATURE_TARGET (bits 23:16).\r
749 ///\r
750 UINT32 TargetOffset:6;\r
751 UINT32 Reserved2:2;\r
752 UINT32 Reserved3:32;\r
753 } Bits;\r
754 ///\r
755 /// All bit fields as a 32-bit value\r
756 ///\r
757 UINT32 Uint32;\r
758 ///\r
759 /// All bit fields as a 64-bit value\r
760 ///\r
761 UINT64 Uint64;\r
762} MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER;\r
763\r
764\r
765/**\r
766 Shared. Offcore Response Event Select Register (R/W).\r
767\r
768 @param ECX MSR_SILVERMONT_OFFCORE_RSP_0 (0x000001A6)\r
769 @param EAX Lower 32-bits of MSR value.\r
770 @param EDX Upper 32-bits of MSR value.\r
771\r
772 <b>Example usage</b>\r
773 @code\r
774 UINT64 Msr;\r
775\r
776 Msr = AsmReadMsr64 (MSR_SILVERMONT_OFFCORE_RSP_0);\r
777 AsmWriteMsr64 (MSR_SILVERMONT_OFFCORE_RSP_0, Msr);\r
778 @endcode\r
94fe1b5f 779 @note MSR_SILVERMONT_OFFCORE_RSP_0 is defined as MSR_OFFCORE_RSP_0 in SDM.\r
053a6ae9
MK
780**/\r
781#define MSR_SILVERMONT_OFFCORE_RSP_0 0x000001A6\r
782\r
783\r
784/**\r
785 Shared. Offcore Response Event Select Register (R/W).\r
786\r
787 @param ECX MSR_SILVERMONT_OFFCORE_RSP_1 (0x000001A7)\r
788 @param EAX Lower 32-bits of MSR value.\r
789 @param EDX Upper 32-bits of MSR value.\r
790\r
791 <b>Example usage</b>\r
792 @code\r
793 UINT64 Msr;\r
794\r
795 Msr = AsmReadMsr64 (MSR_SILVERMONT_OFFCORE_RSP_1);\r
796 AsmWriteMsr64 (MSR_SILVERMONT_OFFCORE_RSP_1, Msr);\r
797 @endcode\r
94fe1b5f 798 @note MSR_SILVERMONT_OFFCORE_RSP_1 is defined as MSR_OFFCORE_RSP_1 in SDM.\r
053a6ae9
MK
799**/\r
800#define MSR_SILVERMONT_OFFCORE_RSP_1 0x000001A7\r
801\r
802\r
803/**\r
804 Package. Maximum Ratio Limit of Turbo Mode (RW).\r
805\r
806 @param ECX MSR_SILVERMONT_TURBO_RATIO_LIMIT (0x000001AD)\r
807 @param EAX Lower 32-bits of MSR value.\r
808 Described by the type MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER.\r
809 @param EDX Upper 32-bits of MSR value.\r
810 Described by the type MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER.\r
811\r
812 <b>Example usage</b>\r
813 @code\r
814 MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER Msr;\r
815\r
816 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_TURBO_RATIO_LIMIT);\r
817 AsmWriteMsr64 (MSR_SILVERMONT_TURBO_RATIO_LIMIT, Msr.Uint64);\r
818 @endcode\r
94fe1b5f 819 @note MSR_SILVERMONT_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.\r
053a6ae9
MK
820**/\r
821#define MSR_SILVERMONT_TURBO_RATIO_LIMIT 0x000001AD\r
822\r
823/**\r
824 MSR information returned for MSR index #MSR_SILVERMONT_TURBO_RATIO_LIMIT\r
825**/\r
826typedef union {\r
827 ///\r
828 /// Individual bit fields\r
829 ///\r
830 struct {\r
831 ///\r
832 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio\r
833 /// limit of 1 core active.\r
834 ///\r
835 UINT32 Maximum1C:8;\r
836 ///\r
837 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio\r
838 /// limit of 2 core active.\r
839 ///\r
840 UINT32 Maximum2C:8;\r
841 ///\r
842 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio\r
843 /// limit of 3 core active.\r
844 ///\r
845 UINT32 Maximum3C:8;\r
846 ///\r
847 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio\r
848 /// limit of 4 core active.\r
849 ///\r
850 UINT32 Maximum4C:8;\r
851 ///\r
852 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C Maximum turbo ratio\r
853 /// limit of 5 core active.\r
854 ///\r
855 UINT32 Maximum5C:8;\r
856 ///\r
857 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C Maximum turbo ratio\r
858 /// limit of 6 core active.\r
859 ///\r
860 UINT32 Maximum6C:8;\r
861 ///\r
862 /// [Bits 55:48] Package. Maximum Ratio Limit for 7C Maximum turbo ratio\r
863 /// limit of 7 core active.\r
864 ///\r
865 UINT32 Maximum7C:8;\r
866 ///\r
867 /// [Bits 63:56] Package. Maximum Ratio Limit for 8C Maximum turbo ratio\r
868 /// limit of 8 core active.\r
869 ///\r
870 UINT32 Maximum8C:8;\r
871 } Bits;\r
872 ///\r
873 /// All bit fields as a 64-bit value\r
874 ///\r
875 UINT64 Uint64;\r
876} MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER;\r
877\r
878\r
879/**\r
880 Core. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-2) that\r
881 points to the MSR containing the most recent branch record. See\r
882 MSR_LASTBRANCH_0_FROM_IP (at 40H).\r
883\r
884 @param ECX MSR_SILVERMONT_LASTBRANCH_TOS (0x000001C9)\r
885 @param EAX Lower 32-bits of MSR value.\r
886 @param EDX Upper 32-bits of MSR value.\r
887\r
888 <b>Example usage</b>\r
889 @code\r
890 UINT64 Msr;\r
891\r
892 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_TOS);\r
893 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_TOS, Msr);\r
894 @endcode\r
94fe1b5f 895 @note MSR_SILVERMONT_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.\r
053a6ae9
MK
896**/\r
897#define MSR_SILVERMONT_LASTBRANCH_TOS 0x000001C9\r
898\r
899\r
900/**\r
901 Core. Last Exception Record From Linear IP (R) Contains a pointer to the\r
902 last branch instruction that the processor executed prior to the last\r
903 exception that was generated or the last interrupt that was handled.\r
904\r
905 @param ECX MSR_SILVERMONT_LER_FROM_LIP (0x000001DD)\r
906 @param EAX Lower 32-bits of MSR value.\r
907 @param EDX Upper 32-bits of MSR value.\r
908\r
909 <b>Example usage</b>\r
910 @code\r
911 UINT64 Msr;\r
912\r
913 Msr = AsmReadMsr64 (MSR_SILVERMONT_LER_FROM_LIP);\r
914 @endcode\r
94fe1b5f 915 @note MSR_SILVERMONT_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.\r
053a6ae9
MK
916**/\r
917#define MSR_SILVERMONT_LER_FROM_LIP 0x000001DD\r
918\r
919\r
920/**\r
921 Core. Last Exception Record To Linear IP (R) This area contains a pointer\r
922 to the target of the last branch instruction that the processor executed\r
923 prior to the last exception that was generated or the last interrupt that\r
924 was handled.\r
925\r
926 @param ECX MSR_SILVERMONT_LER_TO_LIP (0x000001DE)\r
927 @param EAX Lower 32-bits of MSR value.\r
928 @param EDX Upper 32-bits of MSR value.\r
929\r
930 <b>Example usage</b>\r
931 @code\r
932 UINT64 Msr;\r
933\r
934 Msr = AsmReadMsr64 (MSR_SILVERMONT_LER_TO_LIP);\r
935 @endcode\r
94fe1b5f 936 @note MSR_SILVERMONT_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.\r
053a6ae9
MK
937**/\r
938#define MSR_SILVERMONT_LER_TO_LIP 0x000001DE\r
939\r
940\r
941/**\r
942 Core. See Table 35-2. See Section 18.4.2, "Global Counter Control\r
943 Facilities.".\r
944\r
945 @param ECX MSR_SILVERMONT_IA32_PERF_GLOBAL_STAUS (0x0000038E)\r
946 @param EAX Lower 32-bits of MSR value.\r
947 @param EDX Upper 32-bits of MSR value.\r
948\r
949 <b>Example usage</b>\r
950 @code\r
951 UINT64 Msr;\r
952\r
953 Msr = AsmReadMsr64 (MSR_SILVERMONT_IA32_PERF_GLOBAL_STAUS);\r
954 AsmWriteMsr64 (MSR_SILVERMONT_IA32_PERF_GLOBAL_STAUS, Msr);\r
955 @endcode\r
94fe1b5f 956 @note MSR_SILVERMONT_IA32_PERF_GLOBAL_STAUS is defined as IA32_PERF_GLOBAL_STAUS in SDM.\r
053a6ae9
MK
957**/\r
958#define MSR_SILVERMONT_IA32_PERF_GLOBAL_STAUS 0x0000038E\r
959\r
960\r
961/**\r
962 Core. See Table 35-2. See Section 18.4.4, "Precise Event Based Sampling\r
963 (PEBS).".\r
964\r
965 @param ECX MSR_SILVERMONT_PEBS_ENABLE (0x000003F1)\r
966 @param EAX Lower 32-bits of MSR value.\r
967 Described by the type MSR_SILVERMONT_PEBS_ENABLE_REGISTER.\r
968 @param EDX Upper 32-bits of MSR value.\r
969 Described by the type MSR_SILVERMONT_PEBS_ENABLE_REGISTER.\r
970\r
971 <b>Example usage</b>\r
972 @code\r
973 MSR_SILVERMONT_PEBS_ENABLE_REGISTER Msr;\r
974\r
975 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PEBS_ENABLE);\r
976 AsmWriteMsr64 (MSR_SILVERMONT_PEBS_ENABLE, Msr.Uint64);\r
977 @endcode\r
94fe1b5f 978 @note MSR_SILVERMONT_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.\r
053a6ae9
MK
979**/\r
980#define MSR_SILVERMONT_PEBS_ENABLE 0x000003F1\r
981\r
982/**\r
983 MSR information returned for MSR index #MSR_SILVERMONT_PEBS_ENABLE\r
984**/\r
985typedef union {\r
986 ///\r
987 /// Individual bit fields\r
988 ///\r
989 struct {\r
990 ///\r
991 /// [Bit 0] Enable PEBS on IA32_PMC0. (R/W).\r
992 ///\r
993 UINT32 PEBS:1;\r
994 UINT32 Reserved1:31;\r
995 UINT32 Reserved2:32;\r
996 } Bits;\r
997 ///\r
998 /// All bit fields as a 32-bit value\r
999 ///\r
1000 UINT32 Uint32;\r
1001 ///\r
1002 /// All bit fields as a 64-bit value\r
1003 ///\r
1004 UINT64 Uint64;\r
1005} MSR_SILVERMONT_PEBS_ENABLE_REGISTER;\r
1006\r
1007\r
1008/**\r
1009 Package. Note: C-state values are processor specific C-state code names,\r
1010 unrelated to MWAIT extension C-state parameters or ACPI CStates. Package C6\r
1011 Residency Counter. (R/O) Value since last reset that this package is in\r
1012 processor-specific C6 states. Counts at the TSC Frequency.\r
1013\r
1014 @param ECX MSR_SILVERMONT_PKG_C6_RESIDENCY (0x000003FA)\r
1015 @param EAX Lower 32-bits of MSR value.\r
1016 @param EDX Upper 32-bits of MSR value.\r
1017\r
1018 <b>Example usage</b>\r
1019 @code\r
1020 UINT64 Msr;\r
1021\r
1022 Msr = AsmReadMsr64 (MSR_SILVERMONT_PKG_C6_RESIDENCY);\r
1023 AsmWriteMsr64 (MSR_SILVERMONT_PKG_C6_RESIDENCY, Msr);\r
1024 @endcode\r
94fe1b5f 1025 @note MSR_SILVERMONT_PKG_C6_RESIDENCY is defined as MSR_PKG_C6_RESIDENCY in SDM.\r
053a6ae9
MK
1026**/\r
1027#define MSR_SILVERMONT_PKG_C6_RESIDENCY 0x000003FA\r
1028\r
1029\r
1030/**\r
1031 Core. Note: C-state values are processor specific C-state code names,\r
1032 unrelated to MWAIT extension C-state parameters or ACPI CStates. CORE C6\r
1033 Residency Counter. (R/O) Value since last reset that this core is in\r
1034 processor-specific C6 states. Counts at the TSC Frequency.\r
1035\r
1036 @param ECX MSR_SILVERMONT_CORE_C6_RESIDENCY (0x000003FD)\r
1037 @param EAX Lower 32-bits of MSR value.\r
1038 @param EDX Upper 32-bits of MSR value.\r
1039\r
1040 <b>Example usage</b>\r
1041 @code\r
1042 UINT64 Msr;\r
1043\r
1044 Msr = AsmReadMsr64 (MSR_SILVERMONT_CORE_C6_RESIDENCY);\r
1045 AsmWriteMsr64 (MSR_SILVERMONT_CORE_C6_RESIDENCY, Msr);\r
1046 @endcode\r
94fe1b5f 1047 @note MSR_SILVERMONT_CORE_C6_RESIDENCY is defined as MSR_CORE_C6_RESIDENCY in SDM.\r
053a6ae9
MK
1048**/\r
1049#define MSR_SILVERMONT_CORE_C6_RESIDENCY 0x000003FD\r
1050\r
1051\r
1052/**\r
1053 Core. See Section 15.3.2.1, "IA32_MCi_CTL MSRs.".\r
1054\r
1055 @param ECX MSR_SILVERMONT_MCi_CTL\r
1056 @param EAX Lower 32-bits of MSR value.\r
1057 @param EDX Upper 32-bits of MSR value.\r
1058\r
1059 <b>Example usage</b>\r
1060 @code\r
1061 UINT64 Msr;\r
1062\r
1063 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC3_CTL);\r
1064 AsmWriteMsr64 (MSR_SILVERMONT_MC3_CTL, Msr);\r
1065 @endcode\r
94fe1b5f
JF
1066 @note MSR_SILVERMONT_MC3_CTL is defined as MSR_MC3_CTL in SDM.\r
1067 MSR_SILVERMONT_MC4_CTL is defined as MSR_MC4_CTL in SDM.\r
1068 MSR_SILVERMONT_MC5_CTL is defined as MSR_MC5_CTL in SDM.\r
053a6ae9
MK
1069 @{\r
1070**/\r
1071#define MSR_SILVERMONT_MC3_CTL 0x0000040C\r
1072#define MSR_SILVERMONT_MC4_CTL 0x00000410\r
1073#define MSR_SILVERMONT_MC5_CTL 0x00000414\r
1074/// @}\r
1075\r
1076\r
1077/**\r
1078 Core. See Section 15.3.2.2, "IA32_MCi_STATUS MSRS.".\r
1079\r
1080 @param ECX MSR_SILVERMONT_MCi_STATUS\r
1081 @param EAX Lower 32-bits of MSR value.\r
1082 @param EDX Upper 32-bits of MSR value.\r
1083\r
1084 <b>Example usage</b>\r
1085 @code\r
1086 UINT64 Msr;\r
1087\r
1088 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC3_STATUS);\r
1089 AsmWriteMsr64 (MSR_SILVERMONT_MC3_STATUS, Msr);\r
1090 @endcode\r
94fe1b5f
JF
1091 @note MSR_SILVERMONT_MC3_STATUS is defined as MSR_MC3_STATUS in SDM.\r
1092 MSR_SILVERMONT_MC4_STATUS is defined as MSR_MC4_STATUS in SDM.\r
1093 MSR_SILVERMONT_MC5_STATUS is defined as MSR_MC5_STATUS in SDM.\r
053a6ae9
MK
1094 @{\r
1095**/\r
1096#define MSR_SILVERMONT_MC3_STATUS 0x0000040D\r
1097#define MSR_SILVERMONT_MC4_STATUS 0x00000411\r
1098#define MSR_SILVERMONT_MC5_STATUS 0x00000415\r
1099/// @}\r
1100\r
1101\r
1102/**\r
1103 Core. See Section 15.3.2.3, "IA32_MCi_ADDR MSRs." The MSR_MCi_ADDR register\r
1104 is either not implemented or contains no address if the ADDRV flag in the\r
1105 MSR_MCi_STATUS register is clear. When not implemented in the processor, all\r
1106 reads and writes to this MSR will cause a general-protection exception.\r
1107\r
1108 @param ECX MSR_SILVERMONT_MCi_ADDR\r
1109 @param EAX Lower 32-bits of MSR value.\r
1110 @param EDX Upper 32-bits of MSR value.\r
1111\r
1112 <b>Example usage</b>\r
1113 @code\r
1114 UINT64 Msr;\r
1115\r
1116 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC3_ADDR);\r
1117 AsmWriteMsr64 (MSR_SILVERMONT_MC3_ADDR, Msr);\r
1118 @endcode\r
94fe1b5f
JF
1119 @note MSR_SILVERMONT_MC3_ADDR is defined as MSR_MC3_ADDR in SDM.\r
1120 MSR_SILVERMONT_MC4_ADDR is defined as MSR_MC4_ADDR in SDM.\r
1121 MSR_SILVERMONT_MC5_ADDR is defined as MSR_MC5_ADDR in SDM.\r
053a6ae9
MK
1122 @{\r
1123**/\r
1124#define MSR_SILVERMONT_MC3_ADDR 0x0000040E\r
1125#define MSR_SILVERMONT_MC4_ADDR 0x00000412\r
1126#define MSR_SILVERMONT_MC5_ADDR 0x00000416\r
1127/// @}\r
1128\r
1129\r
1130/**\r
1131 Core. Capability Reporting Register of EPT and VPID (R/O) See Table 35-2.\r
1132\r
1133 @param ECX MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM (0x0000048C)\r
1134 @param EAX Lower 32-bits of MSR value.\r
1135 @param EDX Upper 32-bits of MSR value.\r
1136\r
1137 <b>Example usage</b>\r
1138 @code\r
1139 UINT64 Msr;\r
1140\r
1141 Msr = AsmReadMsr64 (MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM);\r
1142 @endcode\r
94fe1b5f 1143 @note MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM is defined as IA32_VMX_EPT_VPID_ENUM in SDM.\r
053a6ae9
MK
1144**/\r
1145#define MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM 0x0000048C\r
1146\r
1147\r
1148/**\r
1149 Core. Capability Reporting Register of VM-function Controls (R/O) See Table\r
1150 35-2.\r
1151\r
1152 @param ECX MSR_SILVERMONT_IA32_VMX_FMFUNC (0x00000491)\r
1153 @param EAX Lower 32-bits of MSR value.\r
1154 @param EDX Upper 32-bits of MSR value.\r
1155\r
1156 <b>Example usage</b>\r
1157 @code\r
1158 UINT64 Msr;\r
1159\r
1160 Msr = AsmReadMsr64 (MSR_SILVERMONT_IA32_VMX_FMFUNC);\r
1161 @endcode\r
94fe1b5f 1162 @note MSR_SILVERMONT_IA32_VMX_FMFUNC is defined as IA32_VMX_FMFUNC in SDM.\r
053a6ae9
MK
1163**/\r
1164#define MSR_SILVERMONT_IA32_VMX_FMFUNC 0x00000491\r
1165\r
1166\r
1167/**\r
1168 Core. Note: C-state values are processor specific C-state code names,\r
1169 unrelated to MWAIT extension C-state parameters or ACPI CStates. CORE C1\r
1170 Residency Counter. (R/O) Value since last reset that this core is in\r
1171 processor-specific C1 states. Counts at the TSC frequency.\r
1172\r
1173 @param ECX MSR_SILVERMONT_CORE_C1_RESIDENCY (0x00000660)\r
1174 @param EAX Lower 32-bits of MSR value.\r
1175 @param EDX Upper 32-bits of MSR value.\r
1176\r
1177 <b>Example usage</b>\r
1178 @code\r
1179 UINT64 Msr;\r
1180\r
1181 Msr = AsmReadMsr64 (MSR_SILVERMONT_CORE_C1_RESIDENCY);\r
1182 AsmWriteMsr64 (MSR_SILVERMONT_CORE_C1_RESIDENCY, Msr);\r
1183 @endcode\r
94fe1b5f 1184 @note MSR_SILVERMONT_CORE_C1_RESIDENCY is defined as MSR_CORE_C1_RESIDENCY in SDM.\r
053a6ae9
MK
1185**/\r
1186#define MSR_SILVERMONT_CORE_C1_RESIDENCY 0x00000660\r
1187\r
1188\r
1189/**\r
1190 Package. Unit Multipliers used in RAPL Interfaces (R/O) See Section 14.9.1,\r
1191 "RAPL Interfaces.".\r
1192\r
1193 @param ECX MSR_SILVERMONT_RAPL_POWER_UNIT (0x00000606)\r
1194 @param EAX Lower 32-bits of MSR value.\r
1195 Described by the type MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER.\r
1196 @param EDX Upper 32-bits of MSR value.\r
1197 Described by the type MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER.\r
1198\r
1199 <b>Example usage</b>\r
1200 @code\r
1201 MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER Msr;\r
1202\r
1203 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_RAPL_POWER_UNIT);\r
1204 @endcode\r
94fe1b5f 1205 @note MSR_SILVERMONT_RAPL_POWER_UNIT is defined as MSR_RAPL_POWER_UNIT in SDM.\r
053a6ae9
MK
1206**/\r
1207#define MSR_SILVERMONT_RAPL_POWER_UNIT 0x00000606\r
1208\r
1209/**\r
1210 MSR information returned for MSR index #MSR_SILVERMONT_RAPL_POWER_UNIT\r
1211**/\r
1212typedef union {\r
1213 ///\r
1214 /// Individual bit fields\r
1215 ///\r
1216 struct {\r
1217 ///\r
1218 /// [Bits 3:0] Power Units. Power related information (in milliWatts) is\r
1219 /// based on the multiplier, 2^PU; where PU is an unsigned integer\r
1220 /// represented by bits 3:0. Default value is 0101b, indicating power unit\r
1221 /// is in 32 milliWatts increment.\r
1222 ///\r
1223 UINT32 PowerUnits:4;\r
1224 UINT32 Reserved1:4;\r
1225 ///\r
1226 /// [Bits 12:8] Energy Status Units. Energy related information (in\r
1227 /// microJoules) is based on the multiplier, 2^ESU; where ESU is an\r
1228 /// unsigned integer represented by bits 12:8. Default value is 00101b,\r
1229 /// indicating energy unit is in 32 microJoules increment.\r
1230 ///\r
1231 UINT32 EnergyStatusUnits:5;\r
1232 UINT32 Reserved2:3;\r
1233 ///\r
1234 /// [Bits 19:16] Time Unit. The value is 0000b, indicating time unit is in\r
1235 /// one second.\r
1236 ///\r
1237 UINT32 TimeUnits:4;\r
1238 UINT32 Reserved3:12;\r
1239 UINT32 Reserved4:32;\r
1240 } Bits;\r
1241 ///\r
1242 /// All bit fields as a 32-bit value\r
1243 ///\r
1244 UINT32 Uint32;\r
1245 ///\r
1246 /// All bit fields as a 64-bit value\r
1247 ///\r
1248 UINT64 Uint64;\r
1249} MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER;\r
1250\r
1251\r
1252/**\r
1253 Package. PKG RAPL Power Limit Control (R/W).\r
1254\r
1255 @param ECX MSR_SILVERMONT_PKG_POWER_LIMIT (0x00000610)\r
1256 @param EAX Lower 32-bits of MSR value.\r
1257 Described by the type MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER.\r
1258 @param EDX Upper 32-bits of MSR value.\r
1259 Described by the type MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER.\r
1260\r
1261 <b>Example usage</b>\r
1262 @code\r
1263 MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER Msr;\r
1264\r
1265 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_POWER_LIMIT);\r
1266 AsmWriteMsr64 (MSR_SILVERMONT_PKG_POWER_LIMIT, Msr.Uint64);\r
1267 @endcode\r
94fe1b5f 1268 @note MSR_SILVERMONT_PKG_POWER_LIMIT is defined as MSR_PKG_POWER_LIMIT in SDM.\r
053a6ae9
MK
1269**/\r
1270#define MSR_SILVERMONT_PKG_POWER_LIMIT 0x00000610\r
1271\r
1272/**\r
1273 MSR information returned for MSR index #MSR_SILVERMONT_PKG_POWER_LIMIT\r
1274**/\r
1275typedef union {\r
1276 ///\r
1277 /// Individual bit fields\r
1278 ///\r
1279 struct {\r
1280 ///\r
1281 /// [Bits 14:0] Package Power Limit #1. (R/W) See Section 14.9.3, "Package\r
1282 /// RAPL Domain." and MSR_RAPL_POWER_UNIT in Table 35-7.\r
1283 ///\r
1284 UINT32 Limit:15;\r
1285 ///\r
1286 /// [Bit 15] Enable Power Limit #1. (R/W) See Section 14.9.3, "Package\r
1287 /// RAPL Domain.".\r
1288 ///\r
1289 UINT32 Enable:1;\r
1290 ///\r
1291 /// [Bit 16] Package Clamping Limitation #1. (R/W) See Section 14.9.3,\r
1292 /// "Package RAPL Domain.".\r
1293 ///\r
1294 UINT32 ClampingLimit:1;\r
1295 ///\r
1296 /// [Bits 23:17] Time Window for Power Limit #1. (R/W) in unit of second.\r
1297 /// If 0 is specified in bits [23:17], defaults to 1 second window.\r
1298 ///\r
1299 UINT32 Time:7;\r
1300 UINT32 Reserved1:8;\r
1301 UINT32 Reserved2:32;\r
1302 } Bits;\r
1303 ///\r
1304 /// All bit fields as a 32-bit value\r
1305 ///\r
1306 UINT32 Uint32;\r
1307 ///\r
1308 /// All bit fields as a 64-bit value\r
1309 ///\r
1310 UINT64 Uint64;\r
1311} MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER;\r
1312\r
1313\r
1314/**\r
1315 Package. PKG Energy Status (R/O) See Section 14.9.3, "Package RAPL Domain."\r
1316 and MSR_RAPL_POWER_UNIT in Table 35-7.\r
1317\r
1318 @param ECX MSR_SILVERMONT_PKG_ENERGY_STATUS (0x00000611)\r
1319 @param EAX Lower 32-bits of MSR value.\r
1320 @param EDX Upper 32-bits of MSR value.\r
1321\r
1322 <b>Example usage</b>\r
1323 @code\r
1324 UINT64 Msr;\r
1325\r
1326 Msr = AsmReadMsr64 (MSR_SILVERMONT_PKG_ENERGY_STATUS);\r
1327 @endcode\r
94fe1b5f 1328 @note MSR_SILVERMONT_PKG_ENERGY_STATUS is defined as MSR_PKG_ENERGY_STATUS in SDM.\r
053a6ae9
MK
1329**/\r
1330#define MSR_SILVERMONT_PKG_ENERGY_STATUS 0x00000611\r
1331\r
1332\r
1333/**\r
1334 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL\r
1335 Domains." and MSR_RAPL_POWER_UNIT in Table 35-7.\r
1336\r
1337 @param ECX MSR_SILVERMONT_PP0_ENERGY_STATUS (0x00000639)\r
1338 @param EAX Lower 32-bits of MSR value.\r
1339 @param EDX Upper 32-bits of MSR value.\r
1340\r
1341 <b>Example usage</b>\r
1342 @code\r
1343 UINT64 Msr;\r
1344\r
1345 Msr = AsmReadMsr64 (MSR_SILVERMONT_PP0_ENERGY_STATUS);\r
1346 @endcode\r
94fe1b5f 1347 @note MSR_SILVERMONT_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.\r
053a6ae9
MK
1348**/\r
1349#define MSR_SILVERMONT_PP0_ENERGY_STATUS 0x00000639\r
1350\r
1351\r
1352/**\r
1353 Package. Core C6 demotion policy config MSR. Controls per-core C6 demotion\r
1354 policy. Writing a value of 0 disables core level HW demotion policy.\r
1355\r
1356 @param ECX MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG (0x00000668)\r
1357 @param EAX Lower 32-bits of MSR value.\r
1358 @param EDX Upper 32-bits of MSR value.\r
1359\r
1360 <b>Example usage</b>\r
1361 @code\r
1362 UINT64 Msr;\r
1363\r
1364 Msr = AsmReadMsr64 (MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG);\r
1365 AsmWriteMsr64 (MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG, Msr);\r
1366 @endcode\r
94fe1b5f 1367 @note MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG is defined as MSR_CC6_DEMOTION_POLICY_CONFIG in SDM.\r
053a6ae9
MK
1368**/\r
1369#define MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG 0x00000668\r
1370\r
1371\r
1372/**\r
1373 Package. Module C6 demotion policy config MSR. Controls module (i.e. two\r
1374 cores sharing the second-level cache) C6 demotion policy. Writing a value of\r
1375 0 disables module level HW demotion policy.\r
1376\r
1377 @param ECX MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG (0x00000669)\r
1378 @param EAX Lower 32-bits of MSR value.\r
1379 @param EDX Upper 32-bits of MSR value.\r
1380\r
1381 <b>Example usage</b>\r
1382 @code\r
1383 UINT64 Msr;\r
1384\r
1385 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG);\r
1386 AsmWriteMsr64 (MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG, Msr);\r
1387 @endcode\r
94fe1b5f 1388 @note MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG is defined as MSR_MC6_DEMOTION_POLICY_CONFIG in SDM.\r
053a6ae9
MK
1389**/\r
1390#define MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG 0x00000669\r
1391\r
1392\r
1393/**\r
1394 Module. Module C6 Residency Counter (R/0) Note: C-state values are processor\r
1395 specific C-state code names, unrelated to MWAIT extension C-state parameters\r
1396 or ACPI CStates. Time that this module is in module-specific C6 states since\r
1397 last reset. Counts at 1 Mhz frequency.\r
1398\r
1399 @param ECX MSR_SILVERMONT_MC6_RESIDENCY_COUNTER (0x00000664)\r
1400 @param EAX Lower 32-bits of MSR value.\r
1401 @param EDX Upper 32-bits of MSR value.\r
1402\r
1403 <b>Example usage</b>\r
1404 @code\r
1405 UINT64 Msr;\r
1406\r
1407 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC6_RESIDENCY_COUNTER);\r
1408 @endcode\r
94fe1b5f 1409 @note MSR_SILVERMONT_MC6_RESIDENCY_COUNTER is defined as MSR_MC6_RESIDENCY_COUNTER in SDM.\r
053a6ae9
MK
1410**/\r
1411#define MSR_SILVERMONT_MC6_RESIDENCY_COUNTER 0x00000664\r
1412\r
1413\r
1414/**\r
1415 Package. PKG RAPL Parameter (R/0).\r
1416\r
1417 @param ECX MSR_SILVERMONT_PKG_POWER_INFO (0x0000066E)\r
1418 @param EAX Lower 32-bits of MSR value.\r
1419 Described by the type MSR_SILVERMONT_PKG_POWER_INFO_REGISTER.\r
1420 @param EDX Upper 32-bits of MSR value.\r
1421 Described by the type MSR_SILVERMONT_PKG_POWER_INFO_REGISTER.\r
1422\r
1423 <b>Example usage</b>\r
1424 @code\r
1425 MSR_SILVERMONT_PKG_POWER_INFO_REGISTER Msr;\r
1426\r
1427 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_POWER_INFO);\r
1428 @endcode\r
94fe1b5f 1429 @note MSR_SILVERMONT_PKG_POWER_INFO is defined as MSR_PKG_POWER_INFO in SDM.\r
053a6ae9
MK
1430**/\r
1431#define MSR_SILVERMONT_PKG_POWER_INFO 0x0000066E\r
1432\r
1433/**\r
1434 MSR information returned for MSR index #MSR_SILVERMONT_PKG_POWER_INFO\r
1435**/\r
1436typedef union {\r
1437 ///\r
1438 /// Individual bit fields\r
1439 ///\r
1440 struct {\r
1441 ///\r
1442 /// [Bits 14:0] Thermal Spec Power. (R/0) The unsigned integer value is\r
1443 /// the equivalent of thermal specification power of the package domain.\r
1444 /// The unit of this field is specified by the "Power Units" field of\r
1445 /// MSR_RAPL_POWER_UNIT.\r
1446 ///\r
1447 UINT32 ThermalSpecPower:15;\r
1448 UINT32 Reserved1:17;\r
1449 UINT32 Reserved2:32;\r
1450 } Bits;\r
1451 ///\r
1452 /// All bit fields as a 32-bit value\r
1453 ///\r
1454 UINT32 Uint32;\r
1455 ///\r
1456 /// All bit fields as a 64-bit value\r
1457 ///\r
1458 UINT64 Uint64;\r
1459} MSR_SILVERMONT_PKG_POWER_INFO_REGISTER;\r
1460\r
1461\r
1462/**\r
1463 Package. PP0 RAPL Power Limit Control (R/W).\r
1464\r
1465 @param ECX MSR_SILVERMONT_PP0_POWER_LIMIT (0x00000638)\r
1466 @param EAX Lower 32-bits of MSR value.\r
1467 Described by the type MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER.\r
1468 @param EDX Upper 32-bits of MSR value.\r
1469 Described by the type MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER.\r
1470\r
1471 <b>Example usage</b>\r
1472 @code\r
1473 MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER Msr;\r
1474\r
1475 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PP0_POWER_LIMIT);\r
1476 AsmWriteMsr64 (MSR_SILVERMONT_PP0_POWER_LIMIT, Msr.Uint64);\r
1477 @endcode\r
94fe1b5f 1478 @note MSR_SILVERMONT_PP0_POWER_LIMIT is defined as MSR_PP0_POWER_LIMIT in SDM.\r
053a6ae9
MK
1479**/\r
1480#define MSR_SILVERMONT_PP0_POWER_LIMIT 0x00000638\r
1481\r
1482/**\r
1483 MSR information returned for MSR index #MSR_SILVERMONT_PP0_POWER_LIMIT\r
1484**/\r
1485typedef union {\r
1486 ///\r
1487 /// Individual bit fields\r
1488 ///\r
1489 struct {\r
1490 ///\r
1491 /// [Bits 14:0] PP0 Power Limit #1. (R/W) See Section 14.9.4, "PP0/PP1\r
1492 /// RAPL Domains." and MSR_RAPL_POWER_UNIT in Table 35-7.\r
1493 ///\r
1494 UINT32 Limit:15;\r
1495 ///\r
1496 /// [Bit 15] Enable Power Limit #1. (R/W) See Section 14.9.4, "PP0/PP1\r
1497 /// RAPL Domains.".\r
1498 ///\r
1499 UINT32 Enable:1;\r
1500 UINT32 Reserved1:1;\r
1501 ///\r
1502 /// [Bits 23:17] Time Window for Power Limit #1. (R/W) Specifies the time\r
1503 /// duration over which the average power must remain below\r
1504 /// PP0_POWER_LIMIT #1(14:0). Supported Encodings: 0x0: 1 second time\r
1505 /// duration. 0x1: 5 second time duration (Default). 0x2: 10 second time\r
1506 /// duration. 0x3: 15 second time duration. 0x4: 20 second time duration.\r
1507 /// 0x5: 25 second time duration. 0x6: 30 second time duration. 0x7: 35\r
1508 /// second time duration. 0x8: 40 second time duration. 0x9: 45 second\r
1509 /// time duration. 0xA: 50 second time duration. 0xB-0x7F - reserved.\r
1510 ///\r
1511 UINT32 Time:7;\r
1512 UINT32 Reserved2:8;\r
1513 UINT32 Reserved3:32;\r
1514 } Bits;\r
1515 ///\r
1516 /// All bit fields as a 32-bit value\r
1517 ///\r
1518 UINT32 Uint32;\r
1519 ///\r
1520 /// All bit fields as a 64-bit value\r
1521 ///\r
1522 UINT64 Uint64;\r
1523} MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER;\r
1524\r
1525#endif\r