MdePkg UefiSpec.h: Update comments for OEM reserved memory type.

UEFI 2.5 Spec:
MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17459 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Star Zeng
2015-05-18 01:27:25 +00:00
committed by lzeng14
parent b057be47f7
commit ff9331e6bd

View File

@@ -1,8 +1,8 @@
/** @file /** @file
Include file that supports UEFI. Include file that supports UEFI.
This include file must contain things defined in the UEFI 2.4 specification. This include file must contain things defined in the UEFI 2.5 specification.
If a code construct is defined in the UEFI 2.4 specification it must be included If a code construct is defined in the UEFI 2.5 specification it must be included
by this include file. by this include file.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
@@ -133,6 +133,11 @@ typedef struct {
@param[in] Type The type of allocation to perform. @param[in] Type The type of allocation to perform.
@param[in] MemoryType The type of memory to allocate. @param[in] MemoryType The type of memory to allocate.
MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use. MemoryType values in the range
0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders
that are provided by operating system vendors. The only illegal
memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.
@param[in] Pages The number of contiguous 4 KB pages to allocate. @param[in] Pages The number of contiguous 4 KB pages to allocate.
@param[in, out] Memory The pointer to a physical address. On input, the way in which the address is @param[in, out] Memory The pointer to a physical address. On input, the way in which the address is
used depends on the value of Type. used depends on the value of Type.
@@ -141,9 +146,9 @@ typedef struct {
@retval EFI_INVALID_PARAMETER 1) Type is not AllocateAnyPages or @retval EFI_INVALID_PARAMETER 1) Type is not AllocateAnyPages or
AllocateMaxAddress or AllocateAddress. AllocateMaxAddress or AllocateAddress.
2) MemoryType is in the range 2) MemoryType is in the range
EfiMaxMemoryType..0x6FFFFFFF.
3) Memory is NULL. 3) Memory is NULL.
4) MemoryType was EfiPersistentMemory. 4) MemoryType was EfiPersistentMemory.
EfiMaxMemoryType..0x7FFFFFFF.
@retval EFI_OUT_OF_RESOURCES The pages could not be allocated. @retval EFI_OUT_OF_RESOURCES The pages could not be allocated.
@retval EFI_NOT_FOUND The requested pages could not be found. @retval EFI_NOT_FOUND The requested pages could not be found.
@@ -215,6 +220,11 @@ EFI_STATUS
Allocates pool memory. Allocates pool memory.
@param[in] PoolType The type of pool to allocate. @param[in] PoolType The type of pool to allocate.
MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use. MemoryType values in the range
0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders
that are provided by operating system vendors. The only illegal
memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.
@param[in] Size The number of bytes to allocate from the pool. @param[in] Size The number of bytes to allocate from the pool.
@param[out] Buffer A pointer to a pointer to the allocated buffer if the call succeeds; @param[out] Buffer A pointer to a pointer to the allocated buffer if the call succeeds;
undefined otherwise. undefined otherwise.