]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
DynamicTablesPkg: Add support to specify FADT minor revision
[mirror_edk2.git] / IntelFsp2WrapperPkg / IntelFsp2WrapperPkg.dec
CommitLineData
cf1d4549
JY
1## @file\r
2# Provides drivers and definitions to support fsp in EDKII bios.\r
3#\r
fe5da092 4# Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
512e23a3 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
6#\r
7##\r
8\r
9[Defines]\r
10 DEC_SPECIFICATION = 0x00010005\r
11 PACKAGE_NAME = IntelFsp2WrapperPkg\r
12 PACKAGE_GUID = FAFE06D4-7245-42D7-9FD2-E5D5E36AB0A0\r
13 PACKAGE_VERSION = 0.1\r
14\r
15[Includes]\r
16 Include\r
17\r
18[LibraryClasses]\r
19 ## @libraryclass Provide FSP API related function.\r
20 FspWrapperApiLib|Include/Library/FspWrapperApiLib.h\r
21 FspWrapperApiTestLib|Include/Library/FspWrapperApiTestLib.h\r
22\r
23 ## @libraryclass Provide FSP hob process related function.\r
24 FspWrapperHobProcessLib|Include/Library/FspWrapperHobProcessLib.h\r
25\r
26 ## @libraryclass Provide FSP platform related function.\r
27 FspWrapperPlatformLib|Include/Library/FspWrapperPlatformLib.h\r
28\r
0c5c45a1
QZ
29 ## @libraryclass Provide FSP TPM measurement related function.\r
30 FspMeasurementLib|Include/Library/FspMeasurementLib.h\r
cf1d4549
JY
31[Guids]\r
32 #\r
33 # GUID defined in package\r
34 #\r
6f6bf5c7 35 gIntelFsp2WrapperTokenSpaceGuid = { 0xa34cf082, 0xf50, 0x4f0d, { 0x89, 0x8a, 0x3d, 0x39, 0x30, 0x2b, 0xc5, 0x1e } }\r
cf1d4549
JY
36 gFspApiPerformanceGuid = { 0xc9122295, 0x56ed, 0x4d4e, { 0x06, 0xa6, 0x50, 0x8d, 0x89, 0x4d, 0x3e, 0x40 } }\r
37 gFspHobGuid = { 0x6d86fb36, 0xba90, 0x472c, { 0xb5, 0x83, 0x3f, 0xbe, 0xd3, 0xfb, 0x20, 0x9a } }\r
38\r
39[Ppis]\r
40 gFspSiliconInitDonePpiGuid = { 0x4eb6e09c, 0xd256, 0x4e1e, { 0xb5, 0x0a, 0x87, 0x4b, 0xd2, 0x84, 0xb3, 0xde } }\r
41 gTopOfTemporaryRamPpiGuid = { 0x2f3962b2, 0x57c5, 0x44ec, { 0x9e, 0xfc, 0xa6, 0x9f, 0xd3, 0x02, 0x03, 0x2b } }\r
42\r
43[Protocols]\r
44 gAddPerfRecordProtocolGuid = { 0xc4a58d6d, 0x3677, 0x49cb, { 0xa0, 0x0a, 0x94, 0x70, 0x76, 0x5f, 0xb5, 0x5e } }\r
45\r
46################################################################################\r
47#\r
48# PCD Declarations section - list of all PCDs Declared by this Package\r
49# Only this package should be providing the\r
50# declaration, other packages should not.\r
51#\r
52################################################################################\r
53[PcdsFixedAtBuild, PcdsPatchableInModule]\r
54 ## Provides the memory mapped base address of the BIOS CodeCache Flash Device.\r
6f6bf5c7 55 gIntelFsp2WrapperTokenSpaceGuid.PcdFlashCodeCacheAddress|0xFFE00000|UINT32|0x10000001\r
cf1d4549 56 ## Provides the size of the BIOS Flash Device.\r
6f6bf5c7 57 gIntelFsp2WrapperTokenSpaceGuid.PcdFlashCodeCacheSize|0x00200000|UINT32|0x10000002\r
cf1d4549 58\r
cf1d4549 59 ## Indicate the PEI memory size platform want to report\r
6f6bf5c7 60 gIntelFsp2WrapperTokenSpaceGuid.PcdPeiMinMemSize|0x1800000|UINT32|0x40000004\r
cf1d4549 61 ## Indicate the PEI memory size platform want to report\r
6f6bf5c7 62 gIntelFsp2WrapperTokenSpaceGuid.PcdPeiRecoveryMinMemSize|0x3000000|UINT32|0x40000005\r
cf1d4549 63\r
2098de62 64 ## This is the base address of FSP-T\r
6f6bf5c7 65 gIntelFsp2WrapperTokenSpaceGuid.PcdFsptBaseAddress|0x00000000|UINT32|0x00000300\r
6d40ea81 66\r
4d4b8169
DG
67 ## This PCD indicates if FSP APIs are skipped from FSP wrapper.<BR><BR>\r
68 # If a bit is set, that means this FSP API is skipped.<BR>\r
69 # If a bit is clear, that means this FSP API is NOT skipped.<BR>\r
70 # NOTE: Only NotifyPhase Post PCI enumeration (BIT16) is implemented.<BR>\r
71 # BIT[15:0] is for function:<BR>\r
72 # BIT0 - Skip TempRamInit<BR>\r
73 # BIT1 - Skip MemoryInit<BR>\r
74 # BIT2 - Skip TempRamExit<BR>\r
75 # BIT3 - Skip SiliconInit<BR>\r
76 # BIT4 - Skip NotifyPhase<BR>\r
77 # BIT[32:16] is for sub-function:<BR>\r
78 # BIT16 - Skip NotifyPhase (AfterPciEnumeration)<BR>\r
79 # BIT17 - Skip NotifyPhase (ReadyToBoot)<BR>\r
80 # BIT18 - Skip NotifyPhase (EndOfFirmware)<BR>\r
81 # Any undefined BITs are reserved for future use.<BR>\r
82 # @Prompt Skip FSP API from FSP wrapper.\r
83 gIntelFsp2WrapperTokenSpaceGuid.PcdSkipFspApi|0x00000000|UINT32|0x40000009\r
84\r
c1a42bb0
JY
85 ## This PCD decides how FSP is measured\r
86 # 1) The BootGuard ACM may already measured the FSP component, such as FSPT/FSPM.\r
87 # We need a flag (PCD) to indicate if there is need to do such FSP measurement or NOT.\r
88 # 2) The FSP binary includes FSP code and FSP UPD region. The UPD region is considered\r
89 # as configuration block, and it may be updated by OEM by design.\r
90 # This flag (PCD) is to indicate if we need isolate the the UPD region from the FSP code region.\r
91 # BIT0: Need measure FSP. (for FSP1.x) - reserved in FSP2.\r
92 # BIT1: Need measure FSPT. (for FSP 2.x)\r
93 # BIT2: Need measure FSPM. (for FSP 2.x)\r
94 # BIT3: Need measure FSPS. (for FSP 2.x)\r
95 # BIT4~30: reserved.\r
96 # BIT31: Need isolate UPD region measurement.\r
97 #0: measure FSP[T|M|S] as one binary in one record (PCR0).\r
98 #1: measure FSP UPD region in one record (PCR1), the FSP code without UPD in another record (PCR0).\r
99 #\r
100 gIntelFsp2WrapperTokenSpaceGuid.PcdFspMeasurementConfig|0x00000000|UINT32|0x4000000B\r
101\r
6d40ea81 102[PcdsFixedAtBuild, PcdsPatchableInModule,PcdsDynamic,PcdsDynamicEx]\r
f334c5a4
ZX
103 ## This PCD decides how Wrapper code utilizes FSP\r
104 # 0: DISPATCH mode (FSP Wrapper will load PeiCore from FSP without calling FSP API)\r
105 # 1: API mode (FSP Wrapper will call FSP API)\r
106 #\r
107 gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection|0x00000001|UINT8|0x4000000A\r
108\r
2098de62
CC
109 #\r
110 ## These are the base address of FSP-M/S\r
111 #\r
112 gIntelFsp2WrapperTokenSpaceGuid.PcdFspmBaseAddress|0x00000000|UINT32|0x00001000\r
6d40ea81 113 gIntelFsp2WrapperTokenSpaceGuid.PcdFspsBaseAddress|0x00000000|UINT32|0x00001001\r
e69dcef5
CC
114 #\r
115 # To provide flexibility for platform to pre-allocate FSP UPD buffer\r
116 #\r
117 # The PCDs define the pre-allocated FSPM and FSPS UPD Data Buffer Address.\r
118 # 0x00000000 - Platform will not pre-allocate UPD buffer before FspWrapper module\r
119 # non-zero - Platform will pre-allocate UPD buffer and patch this value to\r
120 # buffer address before FspWrapper module executing.\r
121 #\r
122 gIntelFsp2WrapperTokenSpaceGuid.PcdFspmUpdDataAddress|0x00000000|UINT32|0x50000000\r
cae524cd 123 gIntelFsp2WrapperTokenSpaceGuid.PcdFspsUpdDataAddress|0x00000000|UINT32|0x50000001\r
de9e5b7d
AA
124 #\r
125 # Non-0 means PcdFspmUpdDataAddress will be ignored, otherwise PcdFspmUpdDataAddress will be used.\r
126 #\r
127 gIntelFsp2WrapperTokenSpaceGuid.PcdFspmUpdDataAddress64|0x00000000|UINT64|0x50000002\r
128 #\r
129 # Non-0 means PcdFspsUpdDataAddress will be ignored, otherwise PcdFspsUpdDataAddress will be used.\r
130 #\r
131 gIntelFsp2WrapperTokenSpaceGuid.PcdFspsUpdDataAddress64|0x00000000|UINT64|0x50000003\r