]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Ufs / UfsBlockIoPei / UfsHcMem.c
index b9e3859b353e8de42c2226338e120477d10d5c33..d69e6e72272a608f9ca42086c3a20bfbba09dbd8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>\r
-  \r
+Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
+\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The\r
@@ -44,17 +44,17 @@ UfsPeimAllocMemBlock (
   }\r
 \r
   ZeroMem ((VOID*)(UINTN)TempPtr, sizeof(UFS_PEIM_MEM_BLOCK));\r
-  \r
+\r
   //\r
   // each bit in the bit array represents UFS_PEIM_MEM_UNIT\r
   // bytes of memory in the memory block.\r
   //\r
   ASSERT (UFS_PEIM_MEM_UNIT * 8 <= EFI_PAGE_SIZE);\r
-  \r
+\r
   Block = (UFS_PEIM_MEM_BLOCK*)(UINTN)TempPtr;\r
   Block->BufLen   = EFI_PAGES_TO_SIZE (Pages);\r
   Block->BitsLen  = Block->BufLen / (UFS_PEIM_MEM_UNIT * 8);\r
-  \r
+\r
   Status = PeiServicesAllocatePool (Block->BitsLen, &TempPtr);\r
   if (EFI_ERROR (Status)) {\r
     return NULL;\r
@@ -158,7 +158,7 @@ UfsPeimAllocMemFromBlock (
   if (Available < Units) {\r
     return NULL;\r
   }\r
-  \r
+\r
   //\r
   // Mark the memory as allocated\r
   //\r
@@ -209,7 +209,7 @@ UfsPeimIsMemBlockEmpty (
 {\r
   UINTN                   Index;\r
 \r
-  \r
+\r
   for (Index = 0; Index < Block->BitsLen; Index++) {\r
     if (Block->Bits[Index] != 0) {\r
       return FALSE;\r
@@ -247,7 +247,7 @@ UfsPeimUnlinkMemBlock (
 \r
 /**\r
   Initialize the memory management pool for the host controller.\r
-  \r
+\r
   @param  Private               The Ufs Peim driver private data.\r
 \r
   @retval EFI_SUCCESS           The memory pool is initialized.\r
@@ -265,7 +265,7 @@ UfsPeimInitMemPool (
 \r
   TempPtr = NULL;\r
   Pool    = NULL;\r
-  \r
+\r
   Status = PeiServicesAllocatePool (sizeof (UFS_PEIM_MEM_POOL), &TempPtr);\r
   if (EFI_ERROR (Status)) {\r
     return EFI_OUT_OF_RESOURCES;\r
@@ -287,7 +287,7 @@ UfsPeimInitMemPool (
 \r
 /**\r
   Release the memory management pool.\r
-  \r
+\r
   @param  Pool                  The memory pool to free.\r
 \r
   @retval EFI_DEVICE_ERROR      Fail to free the memory pool.\r
@@ -320,7 +320,7 @@ UfsPeimFreeMemPool (
 /**\r
   Allocate some memory from the host controller's memory pool\r
   which can be used to communicate with host controller.\r
-  \r
+\r
   @param  Pool      The host controller's memory pool.\r
   @param  Size      Size of the memory to allocate.\r
 \r
@@ -377,7 +377,7 @@ UfsPeimAllocateMem (
   if (NewBlock == NULL) {\r
     return NULL;\r
   }\r
-  \r
+\r
   //\r
   // Add the new memory block to the pool, then allocate memory from it\r
   //\r