69966f0d37ee3f400d8760fd289bf232e7f61476
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmm.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 - 2016, Intel Corporation. All rights reserved.<BR>
22 # This program and the accompanying materials
23 # are licensed and made available under the terms and conditions of the BSD License
24 # which accompanies this distribution. The full text of the license may be found at
25 # http://opensource.org/licenses/bsd-license.php
26 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
27 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
28 #
29 ##
30
31 [Defines]
32 INF_VERSION = 0x00010005
33 BASE_NAME = VariableSmm
34 MODULE_UNI_FILE = VariableSmm.uni
35 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343
36 MODULE_TYPE = DXE_SMM_DRIVER
37 VERSION_STRING = 1.0
38 PI_SPECIFICATION_VERSION = 0x0001000A
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
45 #
46
47
48 [Sources]
49 Reclaim.c
50 Variable.c
51 VariableSmm.c
52 VarCheck.c
53 Variable.h
54 PrivilegePolymorphic.h
55 VariableExLib.c
56 TcgMorLockSmm.c
57
58 [Packages]
59 MdePkg/MdePkg.dec
60 MdeModulePkg/MdeModulePkg.dec
61
62 [LibraryClasses]
63 UefiDriverEntryPoint
64 MemoryAllocationLib
65 BaseLib
66 SynchronizationLib
67 UefiLib
68 SmmServicesTableLib
69 BaseMemoryLib
70 DebugLib
71 DxeServicesTableLib
72 HobLib
73 PcdLib
74 SmmMemLib
75 AuthVariableLib
76 VarCheckLib
77 UefiBootServicesTableLib
78
79 [Protocols]
80 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
81 ## CONSUMES
82 ## NOTIFY
83 gEfiSmmFaultTolerantWriteProtocolGuid
84 ## PRODUCES
85 ## UNDEFINED # SmiHandlerRegister
86 gEfiSmmVariableProtocolGuid
87 gEfiSmmEndOfDxeProtocolGuid ## NOTIFY
88 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
89 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES
90 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES
91
92 [Guids]
93 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
94 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
95 ## SOMETIMES_CONSUMES ## HOB
96 ## SOMETIMES_PRODUCES ## SystemTable
97 gEfiAuthenticatedVariableGuid
98
99 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
100 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
101 ## SOMETIMES_CONSUMES ## HOB
102 ## SOMETIMES_PRODUCES ## SystemTable
103 gEfiVariableGuid
104
105 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
106 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
107 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
108 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
109 gEfiGlobalVariableGuid
110
111 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
112 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
113
114 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol
115 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
116 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
117
118 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
119 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
120 gEdkiiVarErrorFlagGuid
121
122 [Pcd]
123 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
124 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
125 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
127 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
128 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
129 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
130 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
131 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
132 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
133 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
134
135 [FeaturePcd]
136 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
137 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang
138
139 [Depex]
140 TRUE
141
142 [UserExtensions.TianoCore."ExtraFiles"]
143 VariableSmmExtra.uni