]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / FaultTolerantWriteDxe / FaultTolerantWrite.c
index 49e747b9016bd41fe2894d875ca4edc98d0cf6ea..65fdc070897a466b86361364125c44c6693044e2 100644 (file)
@@ -1,16 +1,16 @@
 /** @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
@@ -23,7 +23,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   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
@@ -59,7 +59,7 @@ FtwGetMaxBlockSize (
 \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
@@ -174,7 +174,7 @@ FtwAllocate (
   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
@@ -289,7 +289,7 @@ FtwWriteRecord (
   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
@@ -299,11 +299,11 @@ FtwWriteRecord (
                          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
@@ -348,7 +348,7 @@ FtwWrite (
 \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
@@ -631,7 +631,7 @@ FtwWrite (
   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
@@ -727,7 +727,7 @@ FtwRestart (
 /**\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
@@ -785,7 +785,7 @@ FtwAbort (
   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