]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.h
Initialize a local work space header to be used by IsValidWorkSpace() and InitWorkSpa...
[mirror_edk2.git] / MdeModulePkg / Universal / FaultTolerantWriteDxe / FaultTolerantWrite.h
index 39bc743e240bb9c6727a96669545af64ce2ad9fd..8deae8851a519dbb2d9b4ea1c694394f0a80833c 100644 (file)
@@ -3,7 +3,7 @@
   The internal header file includes the common header files, defines\r
   internal structure and functions used by FtwLite module.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -20,6 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <PiDxe.h>\r
 \r
 #include <Guid/SystemNvDataGuid.h>\r
+#include <Guid/ZeroGuid.h>\r
 #include <Protocol/FaultTolerantWrite.h>\r
 #include <Protocol/FirmwareVolumeBlock.h>\r
 #include <Protocol/SwapAddressRange.h>\r
@@ -736,5 +737,16 @@ EFI_STATUS
 InitFtwProtocol (\r
   IN OUT EFI_FTW_DEVICE               *FtwDevice\r
   );\r
+\r
+/**\r
+  Initialize a local work space header.\r
+\r
+  Since Signature and WriteQueueSize have been known, Crc can be calculated out,\r
+  then the work space header will be fixed.\r
+**/\r
+VOID\r
+InitializeLocalWorkSpaceHeader (\r
+  VOID\r
+  );\r
  \r
 #endif\r