]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Uefi/UefiSpec.h
MdePkg: Minor comments update to AllocatePages() and AllocatePool()
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiSpec.h
index c864084e7066413844670cb73d140feb4f058274..e8feed120ded92565c511feeb7b8b3b03468c610 100644 (file)
@@ -136,8 +136,7 @@ typedef struct {
                                 MemoryType values in the range 0x70000000..0x7FFFFFFF\r
                                 are reserved for OEM use. MemoryType values in the range\r
                                 0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders\r
-                                that are provided by operating system vendors. The only illegal\r
-                                memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.\r
+                                that are provided by operating system vendors.\r
   @param[in]       Pages        The number of contiguous 4 KB pages to allocate.\r
   @param[in, out]  Memory       The pointer to a physical address. On input, the way in which the address is\r
                                 used depends on the value of Type.\r
@@ -148,7 +147,7 @@ typedef struct {
                                 2) MemoryType is in the range\r
                                 EfiMaxMemoryType..0x6FFFFFFF.\r
                                 3) Memory is NULL.\r
-                                4) MemoryType was EfiPersistentMemory.\r
+                                4) MemoryType is EfiPersistentMemory.\r
   @retval EFI_OUT_OF_RESOURCES  The pages could not be allocated.\r
   @retval EFI_NOT_FOUND         The requested pages could not be found.\r
 \r
@@ -223,16 +222,16 @@ EFI_STATUS
                                 MemoryType values in the range 0x70000000..0x7FFFFFFF\r
                                 are reserved for OEM use. MemoryType values in the range\r
                                 0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders\r
-                                that are provided by operating system vendors. The only illegal\r
-                                memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.\r
+                                that are provided by operating system vendors.\r
   @param[in]   Size             The number of bytes to allocate from the pool.\r
   @param[out]  Buffer           A pointer to a pointer to the allocated buffer if the call succeeds;\r
                                 undefined otherwise.\r
 \r
   @retval EFI_SUCCESS           The requested number of bytes was allocated.\r
   @retval EFI_OUT_OF_RESOURCES  The pool requested could not be allocated.\r
-  @retval EFI_INVALID_PARAMETER PoolType was invalid or Buffer is NULL.\r
-                                PoolType was EfiPersistentMemory.\r
+  @retval EFI_INVALID_PARAMETER Buffer is NULL.\r
+                                PoolType is in the range EfiMaxMemoryType..0x6FFFFFFF.\r
+                                PoolType is EfiPersistentMemory.\r
 \r
 **/\r
 typedef\r