]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / CapsulePei / Common / CapsuleCoalesce.c
index 3e7054cd38a9516bbeb89f7221494b98351d81ae..3575a94d0fb2f68c094165e29a65ab05a77a30d9 100644 (file)
@@ -10,7 +10,7 @@
   into memory.\r
 \r
 (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 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
@@ -45,7 +45,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param MemSize     The size of the block of memory pointed to by MemBase\r
   @param DataSize    How big a free block we want to find\r
 \r
-  @return A pointer to a memory block of at least DataSize that lies somewhere \r
+  @return A pointer to a memory block of at least DataSize that lies somewhere\r
           between MemBase and (MemBase + MemSize). The memory pointed to does not\r
           contain any of the capsule block descriptors or capsule blocks pointed to\r
           by the BlockList.\r
@@ -75,7 +75,7 @@ FindFreeMem (
   @param MemSize        size of the system memory pointed to by MemBase\r
 \r
   @retval NULL    could not relocate the descriptors\r
-  @retval Pointer to the base of the successfully-relocated block descriptors. \r
+  @retval Pointer to the base of the successfully-relocated block descriptors.\r
 \r
 **/\r
 EFI_CAPSULE_BLOCK_DESCRIPTOR *\r
@@ -93,7 +93,7 @@ RelocateBlockDescriptors (
   @param CapsuleHeader   The pointer to EFI_CAPSULE_HEADER\r
 \r
   @retval FALSE  Capsule is OK\r
-  @retval TRUE   Capsule is corrupted \r
+  @retval TRUE   Capsule is corrupted\r
 \r
 **/\r
 BOOLEAN\r
@@ -153,7 +153,7 @@ GetCapsuleInfo (
   @param MemSize     The size of the block of memory pointed to by MemBase\r
   @param DataSize    How big a free block we want to find\r
 \r
-  @return A pointer to a memory block of at least DataSize that lies somewhere \r
+  @return A pointer to a memory block of at least DataSize that lies somewhere\r
           between MemBase and (MemBase + MemSize). The memory pointed to does not\r
           contain any of the capsule block descriptors or capsule blocks pointed to\r
           by the BlockList.\r
@@ -321,7 +321,7 @@ ValidateCapsuleIntegrity (
   //   * The first capsule header flag\r
   //   * The first capsule header HeaderSize\r
   //   * Below check will be done in ValidateCapsuleByMemoryResource()\r
-  //     Length > MAX_ADDRESS \r
+  //     Length > MAX_ADDRESS\r
   //     Ptr + sizeof (EFI_CAPSULE_BLOCK_DESCRIPTOR) > MAX_ADDRESS\r
   //     DataBlock + Length > MAX_ADDRESS\r
   //\r
@@ -450,7 +450,7 @@ ValidateCapsuleIntegrity (
   @param MemSize        size of the system memory pointed to by MemBase\r
 \r
   @retval NULL    could not relocate the descriptors\r
-  @retval Pointer to the base of the successfully-relocated block descriptors. \r
+  @retval Pointer to the base of the successfully-relocated block descriptors.\r
 \r
 **/\r
 EFI_CAPSULE_BLOCK_DESCRIPTOR  *\r
@@ -737,7 +737,7 @@ GetCapsuleInfo (
   @param CapsuleHeader   The pointer to EFI_CAPSULE_HEADER\r
 \r
   @retval FALSE  Capsule is OK\r
-  @retval TRUE   Capsule is corrupted \r
+  @retval TRUE   Capsule is corrupted\r
 \r
 **/\r
 BOOLEAN\r
@@ -769,7 +769,7 @@ IsCapsuleCorrupted (
   capsule gets coalesced. This can be useful in narrowing down\r
   where capsule data corruption occurs.\r
 \r
-  The test pattern mode fills in memory with a counting UINT32 value. \r
+  The test pattern mode fills in memory with a counting UINT32 value.\r
   If the capsule is not divided up in a multiple of 4-byte blocks, then\r
   things get messy doing the check. Therefore there are some cases\r
   here where we just give up and skip the pre-coalesce check.\r
@@ -865,7 +865,7 @@ EFI_STATUS
 BuildCapsuleDescriptors (\r
   IN  EFI_PHYSICAL_ADDRESS            *BlockListBuffer,\r
   IN  MEMORY_RESOURCE_DESCRIPTOR      *MemoryResource,\r
-  OUT EFI_CAPSULE_BLOCK_DESCRIPTOR    **BlockDescriptorList \r
+  OUT EFI_CAPSULE_BLOCK_DESCRIPTOR    **BlockDescriptorList\r
   )\r
 {\r
   UINTN                            Index;\r
@@ -908,7 +908,7 @@ BuildCapsuleDescriptors (
     }\r
     Index ++;\r
   }\r
-  \r
+\r
   if (HeadBlock != NULL) {\r
     *BlockDescriptorList = HeadBlock;\r
     return EFI_SUCCESS;\r
@@ -930,7 +930,7 @@ BuildCapsuleDescriptors (
                    | ------------------------- |            |\r
                    | |  Capsule [0]          | |            |\r
                    | ------------------------- |            |\r
-                   |    Capsule Image          |            |   \r
+                   |    Capsule Image          |            |\r
 CapsuleImageBase-->+---------------------------+\r
                    | ------------------------- |            |\r
                    | |  CapsuleOffset[Num-1] | |            |\r
@@ -1004,9 +1004,9 @@ CapsuleDataCoalesce (
   UINT8                          *DestPtr;\r
   UINTN                          DestLength;\r
   UINT8                          *RelocPtr;\r
-  UINTN                          CapsuleTimes; \r
-  UINT64                         SizeLeft; \r
-  UINT64                         CapsuleImageSize; \r
+  UINTN                          CapsuleTimes;\r
+  UINT64                         SizeLeft;\r
+  UINT64                         CapsuleImageSize;\r
   UINTN                          CapsuleSize;\r
   UINTN                          CapsuleNumber;\r
   UINTN                          DescriptorsSize;\r
@@ -1265,7 +1265,7 @@ CapsuleDataCoalesce (
         //\r
         //Here is the end of the current capsule image.\r
         //\r
-        CapsuleBeginFlag = TRUE; \r
+        CapsuleBeginFlag = TRUE;\r
       }\r
     } else {\r
       //\r