]> 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 00ac5c9c987221c79db4264956423b0cba31e0f0..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
@@ -726,7 +727,7 @@ InitFtwDevice (
 /**\r
   Initialization for Fault Tolerant Write is done in this handler.\r
 \r
-  @param[in,out] FtwData        Pointer to the FTW device structure\r
+  @param[in, out] FtwDevice     Pointer to the FTW device structure\r
 \r
   @retval EFI_SUCCESS           Initialize the FTW protocol successfully.\r
   @retval EFI_NOT_FOUND         No proper FVB protocol was found.\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