]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
IntelSiliconPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableStandaloneMm.inf
1 ## @file
2 # Provides SMM variable service.
3 #
4 # This module installs SMM variable protocol into SMM protocol database,
5 # which can be used by SMM driver, and installs SMM variable protocol
6 # into BS protocol database, which can be used to notify the SMM Runtime
7 # Dxe driver that the SMM variable service is ready.
8 # This module should be used with SMM Runtime DXE module together. The
9 # SMM Runtime DXE module would install variable arch protocol and variable
10 # write arch protocol based on SMM variable module.
11 #
12 # Caution: This module requires additional review when modified.
13 # This driver will have external input - variable data and communicate buffer in SMM mode.
14 # This external input must be validated carefully to avoid security issues such as
15 # buffer overflow or integer overflow.
16 # The whole SMM authentication variable design relies on the integrity of flash part and SMM.
17 # which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory
18 # may not be modified without authorization. If platform fails to protect these resources,
19 # the authentication service provided in this driver will be broken, and the behavior is undefined.
20 #
21 # Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
22 # Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
23 # This program and the accompanying materials
24 # are licensed and made available under the terms and conditions of the BSD License
25 # which accompanies this distribution. The full text of the license may be found at
26 # http://opensource.org/licenses/bsd-license.php
27 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
28 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
29 #
30 ##
31
32 [Defines]
33 INF_VERSION = 0x0001001B
34 BASE_NAME = VariableStandaloneMm
35 FILE_GUID = 7ee2c0c1-c21a-4113-a53a-66824a95696f
36 MODULE_TYPE = MM_STANDALONE
37 VERSION_STRING = 1.0
38 PI_SPECIFICATION_VERSION = 0x00010032
39 ENTRY_POINT = VariableServiceInitialize
40
41 #
42 # The following information is for reference only and not required by the build tools.
43 #
44 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
45 #
46
47
48 [Sources]
49 Reclaim.c
50 Variable.c
51 VariableSmm.c
52 VariableStandaloneMm.c
53 VarCheck.c
54 Variable.h
55 PrivilegePolymorphic.h
56 VariableExLib.c
57 TcgMorLockSmm.c
58 SpeculationBarrierSmm.c
59
60 [Packages]
61 MdePkg/MdePkg.dec
62 MdeModulePkg/MdeModulePkg.dec
63 StandaloneMmPkg/StandaloneMmPkg.dec
64
65 [LibraryClasses]
66 AuthVariableLib
67 BaseLib
68 BaseMemoryLib
69 DebugLib
70 HobLib
71 MemoryAllocationLib
72 MmServicesTableLib
73 StandaloneMmDriverEntryPoint
74 SynchronizationLib
75 VarCheckLib
76
77 [Protocols]
78 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
79 ## CONSUMES
80 ## NOTIFY
81 gEfiSmmFaultTolerantWriteProtocolGuid
82 ## PRODUCES
83 ## UNDEFINED # SmiHandlerRegister
84 gEfiSmmVariableProtocolGuid
85 gEfiMmEndOfDxeProtocolGuid ## NOTIFY
86 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
87
88 [Guids]
89 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
90 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
91 ## SOMETIMES_CONSUMES ## HOB
92 ## SOMETIMES_PRODUCES ## SystemTable
93 gEfiAuthenticatedVariableGuid
94
95 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
96 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
97 ## SOMETIMES_CONSUMES ## HOB
98 ## SOMETIMES_PRODUCES ## SystemTable
99 gEfiVariableGuid
100
101 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
102 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
103 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
104 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
105 gEfiGlobalVariableGuid
106
107 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
108 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
109
110 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
111 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
112
113 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
114 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
115 gEdkiiVarErrorFlagGuid
116
117 [FixedPcd]
118 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
119 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
120 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
121 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
122 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
123 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
124 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
125 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
126 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
127 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
128 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
129 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
130 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES
131 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES
132
133 [FeaturePcd]
134 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
135 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang
136
137 [Depex]
138 TRUE