]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/MemoryAllocationLib.h
• BaseMemoryLib:
[mirror_edk2.git] / MdePkg / Include / Library / MemoryAllocationLib.h
index 4e76684f7730338e55d37edb8533f80aa6fcf93a..bb2c7243799179c472422007c362f9bf5cac9101 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-       Memory Allocation Library Services\r
+  Memory Allocation Library Services\r
 \r
-       Copyright (c) 2006, Intel Corporation                                                         \r
-       All rights reserved. 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
+  Copyright (c) 2006, Intel Corporation                                                         \r
+  All rights reserved. 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
+  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
-       Module Name:    MemoryAllocationLib.h\r
+  Module Name:  MemoryAllocationLib.h\r
 \r
 **/\r
 \r
 #define __MEMORY_ALLOCATION_LIB_H__\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
+  Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -36,14 +36,14 @@ AllocatePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
+  Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -54,14 +54,14 @@ AllocateRuntimePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
+  Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
-       If Pages is 0, then NULL is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  The buffer returned is aligned on a 4KB boundary.\r
+  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -72,13 +72,13 @@ AllocateReservedPages (
 ;\r
 \r
 /**\r
-       Frees one or more 4KB pages that were previously allocated with \r
-       one of the page allocation functions in the Memory Allocation Library.\r
+  Frees one or more 4KB pages that were previously allocated with \r
+  one of the page allocation functions in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer of pages to free.\r
-       @param  Pages The number of 4 KB pages to free.\r
+  @param  Buffer Pointer to the buffer of pages to free.\r
+  @param  Pages The number of 4 KB pages to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -90,15 +90,15 @@ FreePages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment.   \r
+  Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment.   \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -110,15 +110,15 @@ AllocateAlignedPages (
 ;\r
 \r
 /**\r
-       Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment.   \r
+  Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment.   \r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -130,15 +130,15 @@ AllocateAlignedRuntimePages (
 ;\r
 \r
 /**\r
-       Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  Pages The number of 4 KB pages to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  Pages The number of 4 KB pages to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
-       If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  The allocated buffer is returned.  If Pages is 0, then NULL is returned.\r
+  If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -150,13 +150,13 @@ AllocateAlignedReservedPages (
 ;\r
 \r
 /**\r
-       Frees one or more 4KB pages that were previously allocated with \r
-       one of the aligned page allocation functions in the Memory Allocation Library.\r
+  Frees one or more 4KB pages that were previously allocated with \r
+  one of the aligned page allocation functions in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer of pages to free.\r
-       @param  Pages The number of 4 KB pages to free.\r
+  @param  Buffer Pointer to the buffer of pages to free.\r
+  @param  Pages The number of 4 KB pages to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -168,13 +168,13 @@ FreeAlignedPages (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiBootServicesData.\r
+  Allocates a buffer of type EfiBootServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -185,13 +185,13 @@ AllocatePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiRuntimeServicesData.\r
+  Allocates a buffer of type EfiRuntimeServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -202,13 +202,13 @@ AllocateRuntimePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiReservedMemoryType.\r
+  Allocates a buffer of type EfiReservedMemoryType.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
+  @param  AllocationSize The number of bytes to allocate.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -219,13 +219,13 @@ AllocateReservedPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiBootServicesData.\r
+  Allocates and zeros a buffer of type EfiBootServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -236,13 +236,13 @@ AllocateZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
+  Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -253,13 +253,13 @@ AllocateRuntimeZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiReservedMemoryType.\r
+  Allocates and zeros a buffer of type EfiReservedMemoryType.\r
 \r
-       @param  AllocationSize The number of bytes to allocate and zero.\r
+  @param  AllocationSize The number of bytes to allocate and zero.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -270,14 +270,14 @@ AllocateReservedZeroPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
+  Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -289,14 +289,14 @@ AllocateCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
+  Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -308,14 +308,14 @@ AllocateRuntimeCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
+  Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -327,12 +327,12 @@ AllocateReservedCopyPool (
 ;\r
 \r
 /**\r
-       Frees a buffer that was previously allocated with one of the pool allocation functions \r
-       in the Memory Allocation Library.\r
+  Frees a buffer that was previously allocated with one of the pool allocation functions \r
+  in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer to free.\r
+  @param  Buffer Pointer to the buffer to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r
@@ -343,15 +343,15 @@ FreePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
+  Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-               If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+    If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -363,15 +363,15 @@ AllocateAlignedPool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -383,15 +383,15 @@ AllocateAlignedRuntimePool (
 ;\r
 \r
 /**\r
-       Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -403,15 +403,15 @@ AllocateAlignedReservedPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -423,15 +423,15 @@ AllocateAlignedZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -443,15 +443,15 @@ AllocateAlignedRuntimeZeroPool (
 ;\r
 \r
 /**\r
-       Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -463,16 +463,16 @@ AllocateAlignedReservedZeroPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -485,16 +485,16 @@ AllocateAlignedCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -507,16 +507,16 @@ AllocateAlignedRuntimeCopyPool (
 ;\r
 \r
 /**\r
-       Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
+  Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
 \r
-       @param  AllocationSize The number of bytes to allocate.\r
-       @param  Buffer The buffer to copy to the allocated buffer.\r
-       @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
-       If Alignment is zero, then byte alignment is used.\r
+  @param  AllocationSize The number of bytes to allocate.\r
+  @param  Buffer The buffer to copy to the allocated buffer.\r
+  @param  Alignment The requested alignment of the allocation.  Must be a power of two.\r
+  If Alignment is zero, then byte alignment is used.\r
 \r
-       @return\r
-       A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
-       If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+  @return\r
+  A pointer to the allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+  If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
 **/\r
 VOID *\r
@@ -529,12 +529,12 @@ AllocateAlignedReservedCopyPool (
 ;\r
 \r
 /**\r
-       Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
-       in the Memory Allocation Library.\r
+  Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
+  in the Memory Allocation Library.\r
 \r
-       @param  Buffer Pointer to the buffer to free.\r
+  @param  Buffer Pointer to the buffer to free.\r
 \r
-       None.\r
+  None.\r
 \r
 **/\r
 VOID\r