]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
MdeModulePkg/FaultTolerantWriteDxe: factor out boot service accesses
[mirror_edk2.git] / MdeModulePkg / Universal / FaultTolerantWriteDxe / FaultTolerantWriteDxe.inf
... / ...
CommitLineData
1## @file\r
2# Fault Tolerant Write Dxe Driver.\r
3#\r
4# This driver installs Fault Tolerant Write (FTW) protocol,\r
5# which provides fault tolerant write capability for block devices.\r
6# Its implementation depends on the full functionality FVB protocol that support read, write/erase flash access.\r
7#\r
8# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9#\r
10# This program and the accompanying materials\r
11# are licensed and made available under the terms and conditions of the BSD License\r
12# which accompanies this distribution. The full text of the license may be found at\r
13# http://opensource.org/licenses/bsd-license.php\r
14# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
15# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16#\r
17##\r
18\r
19[Defines]\r
20 INF_VERSION = 0x00010005\r
21 BASE_NAME = FaultTolerantWriteDxe\r
22 MODULE_UNI_FILE = FaultTolerantWriteDxe.uni\r
23 FILE_GUID = FE5CEA76-4F72-49e8-986F-2CD899DFFE5D\r
24 MODULE_TYPE = DXE_DRIVER\r
25 VERSION_STRING = 1.0\r
26 ENTRY_POINT = FaultTolerantWriteInitialize\r
27\r
28#\r
29# The following information is for reference only and not required by the build tools.\r
30#\r
31# VALID_ARCHITECTURES = IA32 X64 EBC\r
32#\r
33\r
34[Sources]\r
35 FtwMisc.c\r
36 UpdateWorkingBlock.c\r
37 FaultTolerantWrite.c\r
38 FaultTolerantWriteDxe.c\r
39 FaultTolerantWrite.h\r
40\r
41[Packages]\r
42 MdePkg/MdePkg.dec\r
43 MdeModulePkg/MdeModulePkg.dec\r
44\r
45[LibraryClasses]\r
46 UefiBootServicesTableLib\r
47 MemoryAllocationLib\r
48 BaseMemoryLib\r
49 UefiDriverEntryPoint\r
50 DebugLib\r
51 UefiLib\r
52 PcdLib\r
53 ReportStatusCodeLib\r
54\r
55[Guids]\r
56 #\r
57 # Signature in EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER\r
58 #\r
59 ## CONSUMES ## GUID\r
60 ## PRODUCES ## GUID\r
61 gEdkiiWorkingBlockSignatureGuid\r
62\r
63[Protocols]\r
64 gEfiSwapAddressRangeProtocolGuid | gEfiMdeModulePkgTokenSpaceGuid.PcdFullFtwServiceEnable ## SOMETIMES_CONSUMES\r
65 ## NOTIFY\r
66 ## CONSUMES\r
67 gEfiFirmwareVolumeBlockProtocolGuid\r
68 gEfiFaultTolerantWriteProtocolGuid ## PRODUCES\r
69\r
70[FeaturePcd]\r
71 gEfiMdeModulePkgTokenSpaceGuid.PcdFullFtwServiceEnable ## CONSUMES\r
72\r
73[Pcd]\r
74 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase ## SOMETIMES_CONSUMES\r
75 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64 ## CONSUMES\r
76 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize ## CONSUMES\r
77 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase ## SOMETIMES_CONSUMES\r
78 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64 ## CONSUMES\r
79 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize ## CONSUMES\r
80\r
81#\r
82# gBS->CalculateCrc32() is consumed in EntryPoint.\r
83# PI spec said: When the DXE Foundation is notified that the EFI_RUNTIME_ARCH_PROTOCOL\r
84# has been installed, then the Boot Service CalculateCrc32() is available.\r
85# So add gEfiRuntimeArchProtocolGuid Depex here.\r
86#\r
87[Depex]\r
88 gEfiFirmwareVolumeBlockProtocolGuid AND gEfiRuntimeArchProtocolGuid\r
89\r
90[UserExtensions.TianoCore."ExtraFiles"]\r
91 FaultTolerantWriteDxeExtra.uni\r