]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
36436b6db8d059a78c294e908f32c03542c565aa
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmm.inf
1 ## @file
2 # Component description file for SMM Variable module.
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 issue like
15 # buffer overflow, integer overflow.
16 #
17 # Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
18 # This program and the accompanying materials
19 # are licensed and made available under the terms and conditions of the BSD License
20 # which accompanies this distribution. The full text of the license may be found at
21 # http://opensource.org/licenses/bsd-license.php
22 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
23 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
24 #
25 #
26 ##
27
28 [Defines]
29 INF_VERSION = 0x00010005
30 BASE_NAME = VariableSmm
31 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343
32 MODULE_TYPE = DXE_SMM_DRIVER
33 VERSION_STRING = 1.0
34 PI_SPECIFICATION_VERSION = 0x0001000A
35 ENTRY_POINT = VariableServiceInitialize
36
37 #
38 # The following information is for reference only and not required by the build tools.
39 #
40 # VALID_ARCHITECTURES = IA32 X64
41 #
42
43
44 [Sources]
45 Reclaim.c
46 Variable.c
47 VariableSmm.c
48 Variable.h
49
50 [Packages]
51 MdePkg/MdePkg.dec
52 MdeModulePkg/MdeModulePkg.dec
53
54 [LibraryClasses]
55 UefiDriverEntryPoint
56 MemoryAllocationLib
57 BaseLib
58 SynchronizationLib
59 UefiLib
60 SmmServicesTableLib
61 BaseMemoryLib
62 DebugLib
63 DxeServicesTableLib
64 HobLib
65 PcdLib
66
67 [Protocols]
68 gEfiSmmFirmwareVolumeBlockProtocolGuid ## SOMETIMES_CONSUMES
69 gEfiSmmVariableProtocolGuid ## ALWAYS_PRODUCES
70 gEfiSmmFaultTolerantWriteProtocolGuid ## SOMETIMES_CONSUMES
71 gEfiSmmAccess2ProtocolGuid ## ALWAYS_CONSUMES
72 gEfiSmmEndOfDxeProtocolGuid ## ALWAYS_CONSUMES
73
74 [Guids]
75 gEfiVariableGuid ## PRODUCES ## Configuration Table Guid
76 gEfiGlobalVariableGuid ## PRODUCES ## Variable Guid
77 gSmmVariableWriteGuid ## PRODUCES ## SMM Variable Write Guid
78 gEfiSystemNvDataFvGuid ## CONSUMES
79 gEfiHardwareErrorVariableGuid ## SOMETIMES_CONSUMES
80 gEdkiiFaultTolerantWriteGuid ## CONSUMES
81
82 [Pcd]
83 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
84 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase
85 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64
86 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
87 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize
88 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize
89 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize
90
91 [FeaturePcd]
92 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## SOMETIME_CONSUMES (statistic the information of variable.)
93
94 [Depex]
95 TRUE
96
97