/** @file\r
\r
- These are the common Fault Tolerant Write (FTW) functions that are shared \r
+ These are the common Fault Tolerant Write (FTW) functions that are shared\r
by DXE FTW driver and SMM FTW driver.\r
\r
-Copyright (c) 2006 - 2017, 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
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2018, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
Query the largest block that may be updated in a fault tolerant manner.\r
\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param BlockSize A pointer to a caller allocated UINTN that is updated to\r
indicate the size of the largest block that can be updated.\r
\r
\r
All writes must be completed or aborted before another fault tolerant write can occur.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param CallerId The GUID identifying the write.\r
@param PrivateDataSize The size of the caller's private data\r
that must be recorded for each write.\r
Since the content has already backuped in spare block, the write is\r
guaranteed to be completed with fault tolerant manner.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param Fvb The FVB protocol that provides services for\r
reading, writing, and erasing the target block.\r
@param BlockSize The size of the block.\r
manner, ensuring at all times that either the original contents or\r
the modified contents are available.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param Lba The logical block address of the target block.\r
@param Offset The offset within the target block to place the data.\r
@param Length The number of bytes to write to the target block.\r
reading, writing, and erasing the target block.\r
@param Buffer The data to write.\r
\r
- @retval EFI_SUCCESS The function completed successfully \r
- @retval EFI_ABORTED The function could not complete successfully. \r
- @retval EFI_BAD_BUFFER_SIZE The input data can't fit within the spare block. \r
+ @retval EFI_SUCCESS The function completed successfully\r
+ @retval EFI_ABORTED The function could not complete successfully.\r
+ @retval EFI_BAD_BUFFER_SIZE The input data can't fit within the spare block.\r
Offset + *NumBytes > SpareAreaLength.\r
- @retval EFI_ACCESS_DENIED No writes have been allocated. \r
+ @retval EFI_ACCESS_DENIED No writes have been allocated.\r
@retval EFI_OUT_OF_RESOURCES Cannot allocate enough memory resource.\r
@retval EFI_NOT_FOUND Cannot find FVB protocol by handle.\r
\r
\r
Header = FtwDevice->FtwLastWriteHeader;\r
Record = FtwDevice->FtwLastWriteRecord;\r
- \r
+\r
if (IsErasedFlashBuffer ((UINT8 *) Header, sizeof (EFI_FAULT_TOLERANT_WRITE_HEADER))) {\r
if (PrivateData == NULL) {\r
//\r
Restarts a previously interrupted write. The caller must provide the\r
block protocol needed to complete the interrupted write.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param FvBlockHandle The handle of FVB protocol that provides services for\r
reading, writing, and erasing the target block.\r
\r
/**\r
Aborts all previous allocated writes.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
\r
@retval EFI_SUCCESS The function completed successfully\r
@retval EFI_ABORTED The function could not complete successfully.\r
manner, ensuring at all times that either the original contents or\r
the modified contents are available.\r
\r
- @param This The pointer to this protocol instance. \r
+ @param This The pointer to this protocol instance.\r
@param CallerId The GUID identifying the last write.\r
@param Lba The logical block address of the last write.\r
@param Offset The offset within the block of the last write.\r