]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmm.inf
CommitLineData
4b738c76 1## @file\r
fa0737a8
SZ
2# Provides SMM variable service.\r
3#\r
4b738c76 4# This module installs SMM variable protocol into SMM protocol database,\r
fa0737a8 5# which can be used by SMM driver, and installs SMM variable protocol\r
4b738c76
HT
6# into BS protocol database, which can be used to notify the SMM Runtime\r
7# Dxe driver that the SMM variable service is ready.\r
fa0737a8
SZ
8# This module should be used with SMM Runtime DXE module together. The\r
9# SMM Runtime DXE module would install variable arch protocol and variable\r
4b738c76
HT
10# write arch protocol based on SMM variable module.\r
11#\r
12# Caution: This module requires additional review when modified.\r
13# This driver will have external input - variable data and communicate buffer in SMM mode.\r
fa0737a8
SZ
14# This external input must be validated carefully to avoid security issues such as\r
15# buffer overflow or integer overflow.\r
16# The whole SMM authentication variable design relies on the integrity of flash part and SMM.\r
17# which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory\r
18# may not be modified without authorization. If platform fails to protect these resources,\r
19# the authentication service provided in this driver will be broken, and the behavior is undefined.\r
4b738c76 20#\r
7cd69959 21# Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
9d510e61 22# SPDX-License-Identifier: BSD-2-Clause-Patent\r
4b738c76 23#\r
4b738c76
HT
24##\r
25\r
26[Defines]\r
27 INF_VERSION = 0x00010005\r
28 BASE_NAME = VariableSmm\r
6036e94d 29 MODULE_UNI_FILE = VariableSmm.uni\r
4b738c76
HT
30 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343\r
31 MODULE_TYPE = DXE_SMM_DRIVER\r
32 VERSION_STRING = 1.0\r
33 PI_SPECIFICATION_VERSION = 0x0001000A\r
34 ENTRY_POINT = VariableServiceInitialize\r
35\r
36#\r
37# The following information is for reference only and not required by the build tools.\r
38#\r
39# VALID_ARCHITECTURES = IA32 X64\r
40#\r
41\r
42\r
43[Sources]\r
44 Reclaim.c\r
45 Variable.c\r
a855f63e 46 VariableTraditionalMm.c\r
4b738c76 47 VariableSmm.c\r
efb01a10 48 VarCheck.c\r
4b738c76 49 Variable.h\r
00663d04 50 PrivilegePolymorphic.h\r
fa0737a8 51 VariableExLib.c\r
2f6aa774 52 TcgMorLockSmm.c\r
49395ea0 53 SpeculationBarrierSmm.c\r
4b738c76
HT
54\r
55[Packages]\r
56 MdePkg/MdePkg.dec\r
57 MdeModulePkg/MdeModulePkg.dec\r
58\r
59[LibraryClasses]\r
60 UefiDriverEntryPoint\r
61 MemoryAllocationLib\r
62 BaseLib\r
63 SynchronizationLib\r
64 UefiLib\r
a855f63e 65 MmServicesTableLib\r
4b738c76
HT
66 BaseMemoryLib\r
67 DebugLib\r
68 DxeServicesTableLib\r
69 HobLib\r
70 PcdLib\r
842b1242 71 SmmMemLib\r
fa0737a8 72 AuthVariableLib\r
8021f4c7 73 VarCheckLib\r
fda8f631 74 UefiBootServicesTableLib\r
4b738c76
HT
75\r
76[Protocols]\r
6036e94d
SZ
77 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
78 ## CONSUMES\r
79 ## NOTIFY\r
80 gEfiSmmFaultTolerantWriteProtocolGuid\r
81 ## PRODUCES\r
82 ## UNDEFINED # SmiHandlerRegister\r
83 gEfiSmmVariableProtocolGuid\r
a855f63e 84 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
efb01a10 85 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
fda8f631
LE
86 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES\r
87 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES\r
4b738c76
HT
88\r
89[Guids]\r
8d878f84
LG
90 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
91 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
6036e94d 92 ## SOMETIMES_CONSUMES ## HOB\r
fa0737a8
SZ
93 ## SOMETIMES_PRODUCES ## SystemTable\r
94 gEfiAuthenticatedVariableGuid\r
95\r
8d878f84
LG
96 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
97 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
fa0737a8
SZ
98 ## SOMETIMES_CONSUMES ## HOB\r
99 ## SOMETIMES_PRODUCES ## SystemTable\r
6036e94d 100 gEfiVariableGuid\r
fa0737a8 101\r
6036e94d
SZ
102 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r
103 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r
104 ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r
105 ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r
6036e94d 106 gEfiGlobalVariableGuid\r
fa0737a8 107\r
8d878f84
LG
108 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
109 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
2f6aa774 110\r
fa0737a8 111 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol\r
6036e94d 112 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
fa0737a8 113 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
8d878f84
LG
114\r
115 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
116 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
117 gEdkiiVarErrorFlagGuid\r
4b738c76
HT
118\r
119[Pcd]\r
fa0737a8
SZ
120 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
121 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
122 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
123 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
124 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
9b4a2032 125 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
fa0737a8
SZ
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
127 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
128 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
4edb1866
SZ
129 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
130 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
fa0737a8 131 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
7cd69959
SZ
132 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
0fb5e515 134\r
4b738c76 135[FeaturePcd]\r
fa0737a8
SZ
136 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
137 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
4b738c76
HT
138\r
139[Depex]\r
140 TRUE\r
141\r
6036e94d
SZ
142[UserExtensions.TianoCore."ExtraFiles"]\r
143 VariableSmmExtra.uni\r