]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.h
Enhance FtwReclaimWorkSpace() so that it can be called when the working space header...
[mirror_edk2.git] / MdeModulePkg / Universal / FirmwareVolume / FaultTolerantWriteDxe / FtwLite.h
index 6199952e94d8ec331aa4330a1875bb4d875386f7..90a9fd85d2e20f10b44e06e98849b90dde49bb64 100644 (file)
@@ -568,34 +568,12 @@ IsValidWorkSpace (
   )\r
 ;\r
 \r
-/**\r
-  Reclaim the work space. Get rid of all the completed write records\r
-  and write records in the Fault Tolerant work space.\r
-\r
-\r
-  @param FtwLiteDevice   Point to private data of FTW driver\r
-                         FtwSpaceBuffer  - Buffer to contain the reclaimed clean data\r
-  @param BlockBuffer     The data buffer for the block.\r
-  @param BufferSize      Size of the FtwSpaceBuffer\r
-\r
-  @retval  EFI_SUCCESS            The function completed successfully\r
-  @retval  EFI_BUFFER_TOO_SMALL   The FtwSpaceBuffer is too small\r
-  @retval  EFI_ABORTED            The function could not complete successfully.\r
-\r
-**/\r
-EFI_STATUS\r
-CleanupWorkSpace (\r
-  IN EFI_FTW_LITE_DEVICE  *FtwLiteDevice,\r
-  IN OUT UINT8            *BlockBuffer,\r
-  IN UINTN                BufferSize\r
-  )\r
-;\r
-\r
 /**\r
   Reclaim the work space on the working block.\r
 \r
 \r
   @param FtwLiteDevice   Point to private data of FTW driver\r
+  @param PreserveRecord  Whether to preserve the working record is needed\r
 \r
   @retval  EFI_SUCCESS            The function completed successfully\r
   @retval  EFI_OUT_OF_RESOURCES   Allocate memory error\r
@@ -604,7 +582,8 @@ CleanupWorkSpace (
 **/\r
 EFI_STATUS\r
 FtwReclaimWorkSpace (\r
-  IN EFI_FTW_LITE_DEVICE  *FtwLiteDevice\r
+  IN EFI_FTW_LITE_DEVICE  *FtwLiteDevice,\r
+  IN BOOLEAN              PreserveRecord\r
   )\r
 ;\r
 \r