UefiCpuPkg: Add GUID gEdkiiCpuFeaturesSetDoneGuid
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dec
CommitLineData
7798fb83 1## @file UefiCpuPkg.dec\r
7798fb83
HT
2# This Package provides UEFI compatible CPU modules and libraries.\r
3#\r
7eee4e1e 4# Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
7798fb83
HT
5#\r
6# This program and the accompanying materials are licensed and made available under\r
7# the terms and conditions of the BSD License which accompanies this distribution.\r
8# The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14##\r
15\r
16[Defines]\r
17 DEC_SPECIFICATION = 0x00010005\r
18 PACKAGE_NAME = UefiCpuPkg\r
abae030a 19 PACKAGE_UNI_FILE = UefiCpuPkg.uni\r
7798fb83
HT
20 PACKAGE_GUID = 2171df9b-0d39-45aa-ac37-2de190010d23\r
21 PACKAGE_VERSION = 0.3\r
22\r
23[Includes]\r
24 Include\r
25\r
26[LibraryClasses]\r
27 ## @libraryclass Defines some routines that are generic for IA32 family CPU\r
28 ## to be UEFI specification compliant.\r
29 ##\r
30 UefiCpuLib|Include/Library/UefiCpuLib.h\r
31\r
32[LibraryClasses.IA32, LibraryClasses.X64]\r
33 ## @libraryclass Provides functions to manage MTRR settings on IA32 and X64 CPUs.\r
34 ##\r
35 MtrrLib|Include/Library/MtrrLib.h\r
36\r
37 ## @libraryclass Provides functions to manage the Local APIC on IA32 and X64 CPUs.\r
38 ##\r
39 LocalApicLib|Include/Library/LocalApicLib.h\r
d947a4cc
MK
40\r
41 ## @libraryclass Provides platform specific initialization functions in the SEC phase.\r
42 ##\r
43 PlatformSecLib|Include/Library/PlatformSecLib.h\r
529a5a86 44\r
406c7200
MK
45 ## @libraryclass Public include file for the SMM CPU Platform Hook Library.\r
46 ##\r
47 SmmCpuPlatformHookLib|Include/Library/SmmCpuPlatformHookLib.h\r
529a5a86 48\r
406c7200
MK
49 ## @libraryclass Provides the CPU specific programming for PiSmmCpuDxeSmm module.\r
50 ##\r
51 SmmCpuFeaturesLib|Include/Library/SmmCpuFeaturesLib.h\r
52\r
87896d03
JF
53 ## @libraryclass Provides functions to support MP services on CpuMpPei and CpuDxe module.\r
54 ##\r
55 MpInitLib|Include/Library/MpInitLib.h\r
56\r
90c45da4
JY
57 ## @libraryclass Provides services to access Microcode region on flash device.\r
58 #\r
59 MicrocodeFlashAccessLib|Include/Library/MicrocodeFlashAccessLib.h\r
60\r
7798fb83
HT
61[Guids]\r
62 gUefiCpuPkgTokenSpaceGuid = { 0xac05bf33, 0x995a, 0x4ed4, { 0xaa, 0xb8, 0xef, 0x7a, 0xe8, 0xf, 0x5c, 0xb0 }}\r
f7c11c53 63 gMsegSmramGuid = { 0x5802bce4, 0xeeee, 0x4e33, { 0xa1, 0x30, 0xeb, 0xad, 0x27, 0xf0, 0xe4, 0x39 }}\r
7798fb83 64\r
90c45da4
JY
65 ## Include/Guid/MicrocodeFmp.h\r
66 gMicrocodeFmpImageTypeIdGuid = { 0x96d4fdcd, 0x1502, 0x424d, { 0x9d, 0x4c, 0x9b, 0x12, 0xd2, 0xdc, 0xae, 0x5c } }\r
67\r
98f4a565
JF
68 ## Include/Guid/CpuFeaturesSetDone.h\r
69 gEdkiiCpuFeaturesSetDoneGuid = { 0xa82485ce, 0xad6b, 0x4101, { 0x99, 0xd3, 0xe1, 0x35, 0x8c, 0x9e, 0x7e, 0x37 }}\r
70\r
406c7200
MK
71[Protocols]\r
72 ## Include/Protocol/SmmCpuService.h\r
73 gEfiSmmCpuServiceProtocolGuid = { 0x1d202cab, 0xc8ab, 0x4d5c, { 0x94, 0xf7, 0x3c, 0xfc, 0xc0, 0xd3, 0xd3, 0x35 }}\r
529a5a86 74\r
f7c11c53
MK
75 ## Include/Protocol/SmMonitorInit.h\r
76 gEfiSmMonitorInitProtocolGuid = { 0x228f344d, 0xb3de, 0x43bb, { 0xa4, 0xd7, 0xea, 0x20, 0xb, 0x1b, 0x14, 0x82 }}\r
77\r
abae030a
LG
78#\r
79# [Error.gUefiCpuPkgTokenSpaceGuid]\r
80# 0x80000001 | Invalid value provided.\r
81#\r
82\r
529a5a86
MK
83[PcdsFeatureFlag]\r
84 ## Indicates if SMM Profile will be enabled.\r
85 # If enabled, instruction executions in and data accesses to memory outside of SMRAM will be logged.\r
86 # This PCD is only for validation purpose. It should be set to false in production.<BR><BR>\r
87 # TRUE - SMM Profile will be enabled.<BR>\r
88 # FALSE - SMM Profile will be disabled.<BR>\r
89 # @Prompt Enable SMM Profile.\r
90 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileEnable|FALSE|BOOLEAN|0x32132109\r
91\r
92 ## Indicates if the SMM profile log buffer is a ring buffer.\r
93 # If disabled, no additional log can be done when the buffer is full.<BR><BR>\r
94 # TRUE - the SMM profile log buffer is a ring buffer.<BR>\r
95 # FALSE - the SMM profile log buffer is a normal buffer.<BR>\r
96 # @Prompt The SMM profile log buffer is a ring buffer.\r
97 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileRingBuffer|FALSE|BOOLEAN|0x3213210a\r
98\r
99 ## Indicates if SMM Startup AP in a blocking fashion.\r
100 # TRUE - SMM Startup AP in a blocking fashion.<BR>\r
101 # FALSE - SMM Startup AP in a non-blocking fashion.<BR>\r
102 # @Prompt SMM Startup AP in a blocking fashion.\r
103 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmBlockStartupThisAp|FALSE|BOOLEAN|0x32132108\r
104\r
105 ## Indicates if SMM Stack Guard will be enabled.\r
509f8425 106 # If enabled, stack overflow in SMM can be caught, preventing chaotic consequences.<BR><BR>\r
529a5a86
MK
107 # TRUE - SMM Stack Guard will be enabled.<BR>\r
108 # FALSE - SMM Stack Guard will be disabled.<BR>\r
109 # @Prompt Enable SMM Stack Guard.\r
509f8425 110 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackGuard|TRUE|BOOLEAN|0x1000001C\r
529a5a86
MK
111\r
112 ## Indicates if BSP election in SMM will be enabled.\r
113 # If enabled, a BSP will be dynamically elected among all processors in each SMI.\r
114 # Otherwise, processor 0 is always as BSP in each SMI.<BR><BR>\r
115 # TRUE - BSP election in SMM will be enabled.<BR>\r
116 # FALSE - BSP election in SMM will be disabled.<BR>\r
117 # @Prompt Enable BSP election in SMM.\r
118 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|TRUE|BOOLEAN|0x32132106\r
119\r
120 ## Indicates if CPU SMM hot-plug will be enabled.<BR><BR>\r
121 # TRUE - SMM CPU hot-plug will be enabled.<BR>\r
122 # FALSE - SMM CPU hot-plug will be disabled.<BR>\r
123 # @Prompt SMM CPU hot-plug.\r
124 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|FALSE|BOOLEAN|0x3213210C\r
125\r
126 ## Indicates if SMM Debug will be enabled.\r
127 # If enabled, hardware breakpoints in SMRAM can be set outside of SMM mode and take effect in SMM.<BR><BR>\r
128 # TRUE - SMM Debug will be enabled.<BR>\r
129 # FALSE - SMM Debug will be disabled.<BR>\r
130 # @Prompt Enable SMM Debug.\r
131 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmDebug|FALSE|BOOLEAN|0x1000001B\r
132\r
133 ## Indicates if lock SMM Feature Control MSR.<BR><BR>\r
134 # TRUE - SMM Feature Control MSR will be locked.<BR>\r
135 # FALSE - SMM Feature Control MSR will not be locked.<BR>\r
136 # @Prompt Lock SMM Feature Control MSR.\r
137 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock|TRUE|BOOLEAN|0x3213210B\r
138\r
7798fb83 139[PcdsFixedAtBuild, PcdsPatchableInModule]\r
529a5a86
MK
140 ## This value is the CPU Local APIC base address, which aligns the address on a 4-KByte boundary.\r
141 # @Prompt Configure base address of CPU Local APIC\r
abae030a 142 # @Expression 0x80000001 | (gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress & 0xfff) == 0\r
7798fb83 143 gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress|0xfee00000|UINT32|0x00000001\r
529a5a86 144\r
abae030a
LG
145 ## Specifies delay value in microseconds after sending out an INIT IPI.\r
146 # @Prompt Configure delay value after send an INIT IPI\r
cf1eb6e6 147 gUefiCpuPkgTokenSpaceGuid.PcdCpuInitIpiDelayInMicroSeconds|10000|UINT32|0x30000002\r
529a5a86 148\r
6a26a597
CF
149 ## This value specifies the Application Processor (AP) stack size, used for Mp Service, which must\r
150 ## aligns the address on a 4-KByte boundary.\r
151 # @Prompt Configure stack size for Application Processor (AP)\r
152 gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize|0x8000|UINT32|0x00000003\r
7798fb83 153\r
d947a4cc
MK
154 ## Specifies stack size in the temporary RAM. 0 means half of TemporaryRamSize.\r
155 # @Prompt Stack size in the temporary RAM.\r
156 gUefiCpuPkgTokenSpaceGuid.PcdPeiTemporaryRamStackSize|0|UINT32|0x10001003\r
157\r
529a5a86
MK
158 ## Specifies buffer size in bytes to save SMM profile data. The value should be a multiple of 4KB.\r
159 # @Prompt SMM profile data buffer size.\r
160 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileSize|0x200000|UINT32|0x32132107\r
161\r
162 ## Specifies stack size in bytes for each processor in SMM.\r
163 # @Prompt Processor stack size in SMM.\r
164 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x2000|UINT32|0x32132105\r
165\r
529a5a86
MK
166 ## Indicates if SMM Code Access Check is enabled.\r
167 # If enabled, the SMM handler cannot execute the code outside SMM regions.\r
168 # This PCD is suggested to TRUE in production image.<BR><BR>\r
169 # TRUE - SMM Code Access Check will be enabled.<BR>\r
170 # FALSE - SMM Code Access Check will be disabled.<BR>\r
171 # @Prompt SMM Code Access Check.\r
172 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmCodeAccessCheckEnable|TRUE|BOOLEAN|0x60000013\r
173\r
46309b11
JF
174 ## Specifies the number of variable MTRRs reserved for OS use. The default number of\r
175 # MTRRs reserved for OS use is 2.\r
176 # @Prompt Number of reserved variable MTRRs.\r
177 gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0x2|UINT32|0x00000015\r
178\r
f7c11c53
MK
179 ## Specifies buffer size in bytes for STM exception stack. The value should be a multiple of 4KB.\r
180 # @Prompt STM exception stack size.\r
181 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStmExceptionStackSize|0x1000|UINT32|0x32132111\r
182\r
183 ## Specifies buffer size in bytes of MSEG. The value should be a multiple of 4KB.\r
184 # @Prompt MSEG size.\r
185 gUefiCpuPkgTokenSpaceGuid.PcdCpuMsegSize|0x200000|UINT32|0x32132112\r
186\r
7eee4e1e
JF
187 ## Specifies the supported CPU features bit in array\r
188 # @Prompt Supported CPU features\r
189 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSupport|{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}|VOID*|0x00000016\r
190\r
f79fcf45 191[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
b1e01bd4
JF
192 ## Specifies max supported number of Logical Processors.\r
193 # @Prompt Configure max supported number of Logical Processors\r
194 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64|UINT32|0x00000002\r
f79fcf45
JF
195 ## Specifies timeout value in microseconds for the BSP to detect all APs for the first time.\r
196 # @Prompt Timeout for the BSP to detect all APs for the first time.\r
197 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000|UINT32|0x00000004\r
30314463
JF
198 ## Specifies the base address of the first microcode Patch in the microcode Region.\r
199 # @Prompt Microcode Region base address.\r
200 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress|0x0|UINT64|0x00000005\r
201 ## Specifies the size of the microcode Region.\r
202 # @Prompt Microcode Region size.\r
203 gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize|0x0|UINT64|0x00000006\r
54a3e8c9
JF
204 ## Specifies the AP wait loop state during POST phase.\r
205 # The value is defined as below.<BR><BR>\r
206 # 1: Place AP in the Hlt-Loop state.<BR>\r
207 # 2: Place AP in the Mwait-Loop state.<BR>\r
208 # 3: Place AP in the Run-Loop state.<BR>\r
209 # @Prompt The AP wait loop state.\r
210 # @ValidRange 0x80000001 | 1 - 3\r
211 gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode|1|UINT8|0x60008006\r
9d39ed93
JF
212 ## Specifies the AP target C-state for Mwait during POST phase.\r
213 # The default value 0 means C1 state.\r
214 # The value is defined as below.<BR><BR>\r
215 # @Prompt The specified AP target C-state for Mwait.\r
216 gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate|0|UINT8|0x00000007\r
f79fcf45 217\r
28b020b5
JY
218 ## Indicates if SMM uses static page table.\r
219 # If enabled, SMM will not use on-demand paging. SMM will build static page table for all memory.<BR><BR>\r
220 # This flag only impacts X64 build, because SMM alway builds static page table for IA32.\r
221 # TRUE - SMM uses static page table for all memory.<BR>\r
222 # FALSE - SMM uses static page table for below 4G memory and use on-demand paging for above 4G memory.<BR>\r
223 # @Prompt Use static page table for all memory in SMM.\r
224 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStaticPageTable|TRUE|BOOLEAN|0x3213210D\r
225\r
b43dd229
LE
226 ## Specifies timeout value in microseconds for the BSP in SMM to wait for all APs to come into SMM.\r
227 # @Prompt AP synchronization timeout value in SMM.\r
228 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|1000000|UINT64|0x32132104\r
229\r
230 ## Indicates the CPU synchronization method used when processing an SMI.\r
231 # 0x00 - Traditional CPU synchronization method.<BR>\r
232 # 0x01 - Relaxed CPU synchronization method.<BR>\r
233 # @Prompt SMM CPU Synchronization Method.\r
234 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x00|UINT8|0x60000014\r
235\r
7eee4e1e
JF
236 ## Specifies user's desired settings for enabling/disabling processor features.\r
237 # @Prompt User settings for enabling/disabling processor features.\r
238 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesUserConfiguration|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000017\r
239\r
529a5a86
MK
240[PcdsDynamic, PcdsDynamicEx]\r
241 ## Contains the pointer to a CPU S3 data buffer of structure ACPI_CPU_DATA.\r
242 # @Prompt The pointer to a CPU S3 data buffer.\r
243 # @ValidList 0x80000001 | 0\r
244 gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress|0x0|UINT64|0x60000010\r
245\r
246 ## Contains the pointer to a CPU Hot Plug Data structure if CPU hot-plug is supported.\r
247 # @Prompt The pointer to CPU Hot Plug Data.\r
248 # @ValidList 0x80000001 | 0\r
249 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugDataAddress|0x0|UINT64|0x60000011\r
250\r
7eee4e1e
JF
251 ## Indicates processor feature capabilities, each bit corresponding to a specific feature.\r
252 # @Prompt Processor feature capabilities.\r
253 # @ValidList 0x80000001 | 0\r
254 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesCapability|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000018\r
255\r
256 ## Specifies actual settings for processor features, each bit corresponding to a specific feature.\r
257 # @Prompt Actual processor feature settings.\r
258 # @ValidList 0x80000001 | 0\r
259 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019\r
260\r
abae030a
LG
261[UserExtensions.TianoCore."ExtraFiles"]\r
262 UefiCpuPkgExtra.uni\r