Minor grammatical work--mostly adding periods. Items with ONLY period added did not have the heading date changed, but Items with content changes had heading copyright dates updated. Sending separately a list of files missing Doxygen @param and @return information. (PENDING)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10615 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
myronporter
2010-06-30 00:13:25 +00:00
parent 3b33c6d65d
commit 58380e9c61
62 changed files with 1190 additions and 979 deletions

View File

@ -34,7 +34,7 @@ typedef struct {
the registered guid and Handler list. When it is initialized, it will be directly returned. the registered guid and Handler list. When it is initialized, it will be directly returned.
Or, HandlerInfo table will be initialized in this function. Or, HandlerInfo table will be initialized in this function.
@param[in, out] InfoPointer The pointer to the handler info structure. @param[in, out] InfoPointer The pointer to the handler information structure.
@retval RETURN_SUCCESS HandlerInfo table can be used to store guid and function tables. @retval RETURN_SUCCESS HandlerInfo table can be used to store guid and function tables.
@retval RETURN_OUT_OF_RESOURCES HandlerInfo table address is not writable. @retval RETURN_OUT_OF_RESOURCES HandlerInfo table address is not writable.
@ -52,23 +52,23 @@ GetExtractGuidedSectionHandlerInfo (
HandlerInfo = (EXTRACT_GUIDED_SECTION_HANDLER_INFO*)(VOID*)(UINTN) PcdGet64 (PcdGuidedExtractHandlerTableAddress); HandlerInfo = (EXTRACT_GUIDED_SECTION_HANDLER_INFO*)(VOID*)(UINTN) PcdGet64 (PcdGuidedExtractHandlerTableAddress);
// //
// First check whether the handler info structure is initialized. // First check whether the handler information structure is initialized.
// //
if (HandlerInfo->Signature == EXTRACT_HANDLER_INFO_SIGNATURE) { if (HandlerInfo->Signature == EXTRACT_HANDLER_INFO_SIGNATURE) {
// //
// The handler info has been initialized and is returned. // The handler information has been initialized and is returned.
// //
*InfoPointer = HandlerInfo; *InfoPointer = HandlerInfo;
return RETURN_SUCCESS; return RETURN_SUCCESS;
} }
// //
// Try to initialize the handler info structure // Try to initialize the handler information structure
// //
HandlerInfo->Signature = EXTRACT_HANDLER_INFO_SIGNATURE; HandlerInfo->Signature = EXTRACT_HANDLER_INFO_SIGNATURE;
if (HandlerInfo->Signature != EXTRACT_HANDLER_INFO_SIGNATURE) { if (HandlerInfo->Signature != EXTRACT_HANDLER_INFO_SIGNATURE) {
// //
// The handler info structure was not writeable because the memory is not ready. // The handler information structure was not writeable because the memory is not ready.
// //
*InfoPointer = NULL; *InfoPointer = NULL;
return RETURN_OUT_OF_RESOURCES; return RETURN_OUT_OF_RESOURCES;
@ -284,7 +284,7 @@ ExtractGuidedSectionGetInfo (
for (Index = 0; Index < HandlerInfo->NumberOfExtractHandler; Index ++) { for (Index = 0; Index < HandlerInfo->NumberOfExtractHandler; Index ++) {
if (CompareGuid (HandlerInfo->ExtractHandlerGuidTable + Index, &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) { if (CompareGuid (HandlerInfo->ExtractHandlerGuidTable + Index, &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {
// //
// Call the match handler to get info for the input section data. // Call the match handler to get information for the input section data.
// //
return HandlerInfo->ExtractGetInfoHandlerTable [Index] ( return HandlerInfo->ExtractGetInfoHandlerTable [Index] (
InputSection, InputSection,

View File

@ -404,7 +404,7 @@ LibPcdGetExSize (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -430,7 +430,7 @@ LibPcdSet8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -456,7 +456,7 @@ LibPcdSet16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -482,7 +482,7 @@ LibPcdSet32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -545,7 +545,7 @@ LibPcdSetPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The boolean value to set. @param[in] Value The boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN
@ -575,7 +575,7 @@ LibPcdSetBool (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -606,7 +606,7 @@ LibPcdSetEx8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -637,7 +637,7 @@ LibPcdSetEx16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -667,7 +667,7 @@ LibPcdSetEx32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -736,7 +736,7 @@ LibPcdSetExPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The Boolean value to set. @param[in] Value The Boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN

View File

@ -270,7 +270,7 @@ PeCoffLoaderGetImageInfo (
// Obviously having base relocations with RELOCS_STRIPPED==1 is invalid. // Obviously having base relocations with RELOCS_STRIPPED==1 is invalid.
// //
// Look at the file header to determine if relocations have been stripped, and // Look at the file header to determine if relocations have been stripped, and
// save this info in the image context for later use. // save this information in the image context for later use.
// //
if ((!(ImageContext->IsTeImage)) && ((Hdr.Pe32->FileHeader.Characteristics & EFI_IMAGE_FILE_RELOCS_STRIPPED) != 0)) { if ((!(ImageContext->IsTeImage)) && ((Hdr.Pe32->FileHeader.Characteristics & EFI_IMAGE_FILE_RELOCS_STRIPPED) != 0)) {
ImageContext->RelocationsStripped = TRUE; ImageContext->RelocationsStripped = TRUE;
@ -831,7 +831,7 @@ PeCoffLoaderLoadImage (
ImageContext->ImageError = IMAGE_ERROR_SUCCESS; ImageContext->ImageError = IMAGE_ERROR_SUCCESS;
// //
// Copy the provided context info into our local version, get what we // Copy the provided context information into our local version, get what we
// can from the original image, and then use that to make sure everything // can from the original image, and then use that to make sure everything
// is legit. // is legit.
// //
@ -1079,7 +1079,7 @@ PeCoffLoaderLoadImage (
ImageContext->FixupData = NULL; ImageContext->FixupData = NULL;
// //
// Load the Codeview info if present // Load the Codeview information if present
// //
if (ImageContext->DebugDirectoryEntryRva != 0) { if (ImageContext->DebugDirectoryEntryRva != 0) {
if (!(ImageContext->IsTeImage)) { if (!(ImageContext->IsTeImage)) {

View File

@ -27,7 +27,7 @@
Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source. Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.
@param Sd The global scratch data @param Sd The global scratch data.
@param NumOfBits The number of bits to shift and read. @param NumOfBits The number of bits to shift and read.
**/ **/
@ -119,10 +119,10 @@ GetBits (
and Position Set according to code length array. and Position Set according to code length array.
If TableBits > 16, then ASSERT (). If TableBits > 16, then ASSERT ().
@param Sd The global scratch data @param Sd The global scratch data.
@param NumOfChar The number of symbols in the symbol set @param NumOfChar The number of symbols in the symbol set.
@param BitLen Code length array @param BitLen Code length array.
@param TableBits The width of the mapping table @param TableBits The width of the mapping table.
@param Table The table to be created. @param Table The table to be created.
@retval 0 OK. @retval 0 OK.
@ -262,7 +262,7 @@ MakeTable (
Get a position value according to Position Huffman Table. Get a position value according to Position Huffman Table.
@param Sd the global scratch data @param Sd The global scratch data.
@return The position value decoded. @return The position value decoded.
@ -401,7 +401,7 @@ ReadPTLen (
Read in and decode the Char&Len Set Code Length Array, then Read in and decode the Char&Len Set Code Length Array, then
generate the Huffman Code mapping table for the Char&Len Set. generate the Huffman Code mapping table for the Char&Len Set.
@param Sd the global scratch data @param Sd The global scratch data.
**/ **/
VOID VOID
@ -561,7 +561,7 @@ DecodeC (
/** /**
Decode the source data and put the resulting data into the destination buffer. Decode the source data and put the resulting data into the destination buffer.
@param Sd The global scratch data @param Sd The global scratch data.
**/ **/
VOID VOID
@ -659,13 +659,13 @@ Done:
@param SourceSize The size, in bytes, of the source buffer. @param SourceSize The size, in bytes, of the source buffer.
@param DestinationSize A pointer to the size, in bytes, of the uncompressed buffer @param DestinationSize A pointer to the size, in bytes, of the uncompressed buffer
that will be generated when the compressed buffer specified that will be generated when the compressed buffer specified
by Source and SourceSize is decompressed.. by Source and SourceSize is decompressed.
@param ScratchSize A pointer to the size, in bytes, of the scratch buffer that @param ScratchSize A pointer to the size, in bytes, of the scratch buffer that
is required to decompress the compressed buffer specified is required to decompress the compressed buffer specified
by Source and SourceSize. by Source and SourceSize.
@retval RETURN_SUCCESS The size of the uncompressed data was returned @retval RETURN_SUCCESS The size of the uncompressed data was returned
in DestinationSize and the size of the scratch in DestinationSize, and the size of the scratch
buffer was returned in ScratchSize. buffer was returned in ScratchSize.
@retval RETURN_INVALID_PARAMETER @retval RETURN_INVALID_PARAMETER
The size of the uncompressed data or the size of The size of the uncompressed data or the size of
@ -721,7 +721,7 @@ UefiDecompressGetInfo (
If the required scratch buffer size > 0 and Scratch is NULL, then ASSERT(). If the required scratch buffer size > 0 and Scratch is NULL, then ASSERT().
@param Source The source buffer containing the compressed data. @param Source The source buffer containing the compressed data.
@param Destination The destination buffer to store the decompressed data @param Destination The destination buffer to store the decompressed data.
@param Scratch A temporary scratch buffer that is used to perform the decompression. @param Scratch A temporary scratch buffer that is used to perform the decompression.
This is an optional parameter that may be NULL if the This is an optional parameter that may be NULL if the
required scratch buffer size is 0. required scratch buffer size is 0.

View File

@ -63,7 +63,7 @@ typedef struct {
/// ///
/// The length of the field 'Position Set Code Length Array Size' in Block Header. /// The length of the field 'Position Set Code Length Array Size' in Block Header.
/// For UEFI 2.0 de/compression algorithm, mPBit = 4 /// For UEFI 2.0 de/compression algorithm, mPBit = 4.
/// ///
UINT8 mPBit; UINT8 mPBit;
} SCRATCH_DATA; } SCRATCH_DATA;
@ -73,7 +73,7 @@ typedef struct {
Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source. Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.
@param Sd The global scratch data @param Sd The global scratch data.
@param NumOfBits The number of bits to shift and read. @param NumOfBits The number of bits to shift and read.
**/ **/
@ -109,10 +109,10 @@ GetBits (
and Position Set according to code length array. and Position Set according to code length array.
If TableBits > 16, then ASSERT (). If TableBits > 16, then ASSERT ().
@param Sd The global scratch data @param Sd The global scratch data.
@param NumOfChar The number of symbols in the symbol set @param NumOfChar The number of symbols in the symbol set.
@param BitLen Code length array @param BitLen Code length array.
@param TableBits The width of the mapping table @param TableBits The width of the mapping table.
@param Table The table to be created. @param Table The table to be created.
@retval 0 OK. @retval 0 OK.
@ -133,7 +133,7 @@ MakeTable (
Get a position value according to Position Huffman Table. Get a position value according to Position Huffman Table.
@param Sd the global scratch data @param Sd The global scratch data.
@return The position value decoded. @return The position value decoded.
@ -172,7 +172,7 @@ ReadPTLen (
Read in and decode the Char&Len Set Code Length Array, then Read in and decode the Char&Len Set Code Length Array, then
generate the Huffman Code mapping table for the Char&Len Set. generate the Huffman Code mapping table for the Char&Len Set.
@param Sd the global scratch data @param Sd The global scratch data.
**/ **/
VOID VOID
@ -200,7 +200,7 @@ DecodeC (
/** /**
Decode the source data and put the resulting data into the destination buffer. Decode the source data and put the resulting data into the destination buffer.
@param Sd The global scratch data @param Sd The global scratch data.
**/ **/
VOID VOID

View File

@ -5,7 +5,7 @@ Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

View File

@ -5,7 +5,7 @@ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -116,10 +116,10 @@ GetFirstHob (
This function searches the first instance of a HOB from the starting HOB pointer. This function searches the first instance of a HOB from the starting HOB pointer.
Such HOB should satisfy two conditions: Such HOB should satisfy two conditions:
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION, and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If such a HOB from the starting HOB pointer does not exist, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer
unconditionally: it returns HobStart back if HobStart itself meets the requirement; unconditionally: it returns HobStart back if HobStart itself meets the requirement;
caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart. caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
@ -158,9 +158,9 @@ GetNextGuidHob (
This function searches the first instance of a HOB among the whole HOB list. This function searches the first instance of a HOB among the whole HOB list.
Such HOB should satisfy two conditions: Such HOB should satisfy two conditions:
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If such a HOB from the starting HOB pointer does not exist, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
If the pointer to the HOB list is NULL, then ASSERT(). If the pointer to the HOB list is NULL, then ASSERT().
If Guid is NULL, then ASSERT(). If Guid is NULL, then ASSERT().
@ -213,7 +213,7 @@ GetBootModeHob (
This function builds a HOB for a loaded PE32 module. This function builds a HOB for a loaded PE32 module.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If ModuleName is NULL, then ASSERT(). If ModuleName is NULL, then ASSERT().
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -244,7 +244,7 @@ BuildModuleHob (
This function builds a HOB that describes a chunk of system memory. This function builds a HOB that describes a chunk of system memory.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -276,8 +276,8 @@ BuildResourceDescriptorHob (
This function builds a customized HOB tagged with a GUID for identification This function builds a customized HOB tagged with a GUID for identification
and returns the start address of GUID HOB data so that caller can fill the customized data. and returns the start address of GUID HOB data so that caller can fill the customized data.
The HOB Header and Name field is already stripped. The HOB Header and Name field is already stripped.
It can only be invoked during PEI phase; It can only be invoked during PEI phase.
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. For DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If Guid is NULL, then ASSERT(). If Guid is NULL, then ASSERT().
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -309,10 +309,10 @@ BuildGuidHob (
This function builds a customized HOB tagged with a GUID for identification and copies the input This function builds a customized HOB tagged with a GUID for identification and copies the input
data to the HOB data field and returns the start address of the GUID HOB data. It can only be data to the HOB data field and returns the start address of the GUID HOB data. It can only be
invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. invoked during PEI phase; for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
The HOB Header and Name field is already stripped. The HOB Header and Name field is already stripped.
It can only be invoked during PEI phase; It can only be invoked during PEI phase.
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. For DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If Guid is NULL, then ASSERT(). If Guid is NULL, then ASSERT().
If Data is NULL and DataLength > 0, then ASSERT(). If Data is NULL and DataLength > 0, then ASSERT().
@ -346,7 +346,7 @@ BuildGuidDataHob (
This function builds a Firmware Volume HOB. This function builds a Firmware Volume HOB.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -372,7 +372,7 @@ BuildFvHob (
This function builds a EFI_HOB_TYPE_FV2 HOB. This function builds a EFI_HOB_TYPE_FV2 HOB.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -399,7 +399,7 @@ BuildFv2Hob (
This function builds a Capsule Volume HOB. This function builds a Capsule Volume HOB.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If the platform does not support Capsule Volume HOBs, then ASSERT(). If the platform does not support Capsule Volume HOBs, then ASSERT().
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -426,7 +426,7 @@ BuildCvHob (
This function builds a HOB for the CPU. This function builds a HOB for the CPU.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -452,7 +452,7 @@ BuildCpuHob (
This function builds a HOB for the stack. This function builds a HOB for the stack.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -478,7 +478,7 @@ BuildStackHob (
This function builds a HOB for BSP store. This function builds a HOB for BSP store.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().
@ -506,7 +506,7 @@ BuildBspStoreHob (
This function builds a HOB for the memory allocation. This function builds a HOB for the memory allocation.
It can only be invoked during PEI phase; It can only be invoked during PEI phase;
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. for DXE phase, it will ASSERT() because PEI HOB is read-only for DXE phase.
If there is no additional space for HOB creation, then ASSERT(). If there is no additional space for HOB creation, then ASSERT().

View File

@ -1,7 +1,7 @@
/** @file /** @file
Provide generic extract guided section functions for Dxe phase. Provide generic extract guided section functions for Dxe phase.
Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -31,8 +31,8 @@ EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *mExtractGetInfoHandlerTable = NULL;
/** /**
Reallocates more global memory to store the registered guid and Handler list. Reallocates more global memory to store the registered guid and Handler list.
@retval RETURN_SUCCESS Reallocate more global memory space to store guid and function tables. @retval RETURN_SUCCESS Reallocated more global memory space to store guid and function tables.
@retval RETURN_OUT_OF_RESOURCES No enough memory to allocated. @retval RETURN_OUT_OF_RESOURCES Not enough memory to allocate.
**/ **/
RETURN_STATUS RETURN_STATUS
EFIAPI EFIAPI
@ -103,8 +103,8 @@ Done:
@param ImageHandle The firmware allocated handle for the EFI image. @param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table. @param SystemTable A pointer to the EFI System Table.
@retval RETURN_SUCCESS Allocate the global memory space to store guid and function tables. @retval RETURN_SUCCESS Allocated the global memory space to store guid and function tables.
@retval RETURN_OUT_OF_RESOURCES No enough memory to allocated. @retval RETURN_OUT_OF_RESOURCES Not enough memory to allocate.
**/ **/
RETURN_STATUS RETURN_STATUS
EFIAPI EFIAPI
@ -127,7 +127,7 @@ DxeExtractGuidedSectionLibConstructor (
@param[out] ExtractHandlerGuidTable A pointer to the array of GUIDs that have been registered through @param[out] ExtractHandlerGuidTable A pointer to the array of GUIDs that have been registered through
ExtractGuidedSectionRegisterHandlers(). ExtractGuidedSectionRegisterHandlers().
@return the number of the supported extract guided Handler. @return The number of the supported extract guided Handler.
**/ **/
UINTN UINTN
@ -242,7 +242,7 @@ ExtractGuidedSectionRegisterHandlers (
@param[out] SectionAttribute A pointer to the attributes of the GUIDed section. See the Attributes field of @param[out] SectionAttribute A pointer to the attributes of the GUIDed section. See the Attributes field of
EFI_GUID_DEFINED_SECTION in the PI Specification. EFI_GUID_DEFINED_SECTION in the PI Specification.
@retval RETURN_SUCCESS Get the required information successfully. @retval RETURN_SUCCESS Successfully obtained the required information.
@retval RETURN_UNSUPPORTED The GUID from the section specified by InputSection does not match any of @retval RETURN_UNSUPPORTED The GUID from the section specified by InputSection does not match any of
the GUIDs registered with ExtractGuidedSectionRegisterHandlers(). the GUIDs registered with ExtractGuidedSectionRegisterHandlers().
@retval Others The return status from the handler associated with the GUID retrieved from @retval Others The return status from the handler associated with the GUID retrieved from

View File

@ -152,7 +152,7 @@ GetFirstHob (
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If there does not exist such HOB from the starting HOB pointer, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer
unconditionally: it returns HobStart back if HobStart itself meets the requirement; unconditionally: it returns HobStart back if HobStart itself meets the requirement;
caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart. caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
@ -193,7 +193,7 @@ GetNextGuidHob (
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If there does not exist such HOB from the starting HOB pointer, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
If the pointer to the HOB list is NULL, then ASSERT(). If the pointer to the HOB list is NULL, then ASSERT().
If Guid is NULL, then ASSERT(). If Guid is NULL, then ASSERT().

View File

@ -1237,7 +1237,7 @@ MmioAndThenOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1269,7 +1269,7 @@ MmioBitFieldRead8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1310,7 +1310,7 @@ MmioBitFieldWrite8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1351,7 +1351,7 @@ MmioBitFieldOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1393,7 +1393,7 @@ MmioBitFieldAnd8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1519,7 +1519,7 @@ MmioAndThenOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1551,7 +1551,7 @@ MmioBitFieldRead16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1592,7 +1592,7 @@ MmioBitFieldWrite16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1633,7 +1633,7 @@ MmioBitFieldOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1675,7 +1675,7 @@ MmioBitFieldAnd16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1801,7 +1801,7 @@ MmioAndThenOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1833,7 +1833,7 @@ MmioBitFieldRead32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1874,7 +1874,7 @@ MmioBitFieldWrite32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1915,7 +1915,7 @@ MmioBitFieldOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1957,7 +1957,7 @@ MmioBitFieldAnd32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2083,7 +2083,7 @@ MmioAndThenOr64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2115,7 +2115,7 @@ MmioBitFieldRead64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2156,7 +2156,7 @@ MmioBitFieldWrite64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2197,7 +2197,7 @@ MmioBitFieldOr64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2239,7 +2239,7 @@ MmioBitFieldAnd64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.

View File

@ -74,7 +74,7 @@ MmioReadBuffer8 (
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer receiving the data read. @param Buffer The pointer to a system memory buffer receiving the data read.
@return Buffer @return Buffer.
**/ **/
UINT16 * UINT16 *
@ -125,7 +125,7 @@ MmioReadBuffer16 (
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer receiving the data read. @param Buffer The pointer to a system memory buffer receiving the data read.
@return Buffer @return Buffer.
**/ **/
UINT32 * UINT32 *
@ -177,7 +177,7 @@ MmioReadBuffer32 (
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer receiving the data read. @param Buffer The pointer to a system memory buffer receiving the data read.
@return Buffer @return Buffer.
**/ **/
UINT64 * UINT64 *
@ -222,10 +222,10 @@ MmioReadBuffer64 (
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the data to write.
@return Buffer @return Buffer.
**/ **/
UINT8 * UINT8 *
@ -268,10 +268,10 @@ MmioWriteBuffer8 (
If Buffer is not aligned on a 16-bit boundary, then ASSERT(). If Buffer is not aligned on a 16-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the data to write.
@return Buffer @return Buffer.
**/ **/
UINT16 * UINT16 *
@ -322,10 +322,10 @@ MmioWriteBuffer16 (
If Buffer is not aligned on a 32-bit boundary, then ASSERT(). If Buffer is not aligned on a 32-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the data to write.
@return Buffer @return Buffer.
**/ **/
UINT32 * UINT32 *
@ -375,10 +375,10 @@ MmioWriteBuffer32 (
If Buffer is not aligned on a 64-bit boundary, then ASSERT(). If Buffer is not aligned on a 64-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the data to write.
@return Buffer @return Buffer.
**/ **/
UINT64 * UINT64 *

View File

@ -444,7 +444,7 @@ LibPcdGetExSize (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -475,7 +475,7 @@ LibPcdSet8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -506,7 +506,7 @@ LibPcdSet16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -537,7 +537,7 @@ LibPcdSet32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -618,7 +618,7 @@ LibPcdSetPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The boolean value to set. @param[in] Value The boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN
@ -653,7 +653,7 @@ LibPcdSetBool (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -690,7 +690,7 @@ LibPcdSetEx8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -727,7 +727,7 @@ LibPcdSetEx16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -763,7 +763,7 @@ LibPcdSetEx32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -852,7 +852,7 @@ LibPcdSetExPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The Boolean value to set. @param[in] Value The Boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN
@ -992,7 +992,7 @@ LibPcdGetNextToken (
If TokenSpaceGuid is NULL, then a pointer to the first PCD token spaces returned. If TokenSpaceGuid is NULL, then a pointer to the first PCD token spaces returned.
If TokenSpaceGuid is the last PCD token space GUID in the list, then NULL is returned. If TokenSpaceGuid is the last PCD token space GUID in the list, then NULL is returned.
@param TokenSpaceGuid The pointer to the a PCD token space GUID @param TokenSpaceGuid The pointer to the a PCD token space GUID.
@return The next valid token namespace. @return The next valid token namespace.

View File

@ -5,7 +5,7 @@
All assertions for I/O operations are handled in MMIO functions in the IoLib All assertions for I/O operations are handled in MMIO functions in the IoLib
Library. Library.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -45,22 +45,22 @@ typedef struct {
EFI_EVENT mDxeRuntimePciExpressLibVirtualNotifyEvent = NULL; EFI_EVENT mDxeRuntimePciExpressLibVirtualNotifyEvent = NULL;
/// ///
/// Module global that contains the base physical address of the PCI Express MMIO range /// Module global that contains the base physical address of the PCI Express MMIO range.
/// ///
UINTN mDxeRuntimePciExpressLibPciExpressBaseAddress = 0; UINTN mDxeRuntimePciExpressLibPciExpressBaseAddress = 0;
/// ///
/// The number of PCI devices that have been registered for runtime access /// The number of PCI devices that have been registered for runtime access.
/// ///
UINTN mDxeRuntimePciExpressLibNumberOfRuntimeRanges = 0; UINTN mDxeRuntimePciExpressLibNumberOfRuntimeRanges = 0;
/// ///
/// The table of PCI devices that have been registered for runtime access /// The table of PCI devices that have been registered for runtime access.
/// ///
PCI_EXPRESS_RUNTIME_REGISTRATION_TABLE *mDxeRuntimePciExpressLibRegistrationTable = NULL; PCI_EXPRESS_RUNTIME_REGISTRATION_TABLE *mDxeRuntimePciExpressLibRegistrationTable = NULL;
/// ///
/// The table index of the most recent virtual address lookup /// The table index of the most recent virtual address lookup.
/// ///
UINTN mDxeRuntimePciExpressLibLastRuntimeRange = 0; UINTN mDxeRuntimePciExpressLibLastRuntimeRange = 0;
@ -69,8 +69,8 @@ UINTN mDxeRuntimePciExpressLibLastRuntimeRange
Convert the physical PCI Express MMIO addresses for all registered PCI devices Convert the physical PCI Express MMIO addresses for all registered PCI devices
to virtual addresses. to virtual addresses.
@param[in] Event The Event that is being processed @param[in] Event The event that is being processed.
@param[in] Context Event Context @param[in] Context The Event Context.
**/ **/
VOID VOID
EFIAPI EFIAPI

View File

@ -40,7 +40,7 @@
@param ImageHandle The firmware allocated handle for UEFI image. @param ImageHandle The firmware allocated handle for UEFI image.
@retval EFI_HANDLE The device handle from which the Image is loaded from. @retval EFI_HANDLE The device handle from which the Image is loaded from.
**/ **/
EFI_HANDLE EFI_HANDLE
@ -88,18 +88,25 @@ InternalImageHandleToFvHandle (
If Buffer is NULL, then ASSERT(); If Buffer is NULL, then ASSERT();
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param FvHandle The device handle that contains a instance of EFI_FIRMWARE_VOLUME2_PROTOCOL instance. @param FvHandle The device handle that contains a instance of
EFI_FIRMWARE_VOLUME2_PROTOCOL instance.
@param NameGuid The GUID name of a Firmware File. @param NameGuid The GUID name of a Firmware File.
@param SectionType The Firmware Section type. @param SectionType The Firmware Section type.
@param SectionInstance The instance number of Firmware Section to read from starting from 0. @param SectionInstance The instance number of Firmware Section to
@param Buffer On output, Buffer contains the the data read from the section in the Firmware File found. read from starting from 0.
@param Buffer On output, Buffer contains the the data read
from the section in the Firmware File found.
@param Size On output, the size of Buffer. @param Size On output, the size of Buffer.
@retval EFI_SUCCESS The image is found and data and size is returned. @retval EFI_SUCCESS The image is found and data and size is returned.
@retval EFI_NOT_FOUND The image specified by NameGuid and SectionType can't be found. @retval EFI_NOT_FOUND The image specified by NameGuid and SectionType
@retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the output data buffer or complete the operations. can't be found.
@retval EFI_DEVICE_ERROR A hardware error occurs during reading from the Firmware Volume. @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the
@retval EFI_ACCESS_DENIED The firmware volume containing the searched Firmware File is configured to disallow reads. output data buffer or complete the operations.
@retval EFI_DEVICE_ERROR A hardware error occurs during reading from the
Firmware Volume.
@retval EFI_ACCESS_DENIED The firmware volume containing the searched
Firmware File is configured to disallow reads.
**/ **/
EFI_STATUS EFI_STATUS
@ -187,22 +194,31 @@ InternalGetSectionFromFv (
If Buffer is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param FileType Indicates the FV file type to search for within all available FVs. @param FileType Indicates the FV file type to search for within all
@param FileInstance Indicates which file instance within all available FVs specified by FileType. available FVs.
@param FileInstance Indicates which file instance within all available
FVs specified by FileType.
FileInstance starts from zero. FileInstance starts from zero.
@param SectionType Indicates the FFS section type to search for within the FFS file @param SectionType Indicates the FFS section type to search for
within the FFS file
specified by FileType with FileInstance. specified by FileType with FileInstance.
@param SectionInstance Indicates which section instance within the FFS file @param SectionInstance Indicates which section instance within the FFS file
specified by FileType with FileInstance to retrieve. SectionInstance starts from zero. specified by FileType with FileInstance to retrieve.
@param Buffer On output, a pointer to a callee allocated buffer containing the FFS file section that was found. SectionInstance starts from zero.
Is it the caller's responsibility to free this buffer using FreePool(). @param Buffer On output, a pointer to a callee allocated buffer
containing the FFS file section that was found.
Is it the caller's responsibility to free this
buffer using FreePool().
@param Size On output, a pointer to the size, in bytes, of Buffer. @param Size On output, a pointer to the size, in bytes, of Buffer.
@retval EFI_SUCCESS The specified FFS section was returned. @retval EFI_SUCCESS The specified FFS section was returned.
@retval EFI_NOT_FOUND The specified FFS section could not be found. @retval EFI_NOT_FOUND The specified FFS section could not be found.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section. @retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve
@retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a device error. the matching FFS section.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the firmware volume that @retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a
device error.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because
the firmware volume that
contains the matching FFS section does not allow reads. contains the matching FFS section does not allow reads.
**/ **/
EFI_STATUS EFI_STATUS
@ -323,19 +339,26 @@ Done:
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param NameGuid A pointer to to the FFS filename GUID to search for within @param NameGuid A pointer to to the FFS filename GUID to search for
any of the firmware volumes in the platform. within any of the firmware volumes in the platform.
@param SectionType Indicates the FFS section type to search for within the FFS file specified by NameGuid. @param SectionType Indicates the FFS section type to search for within
@param SectionInstance Indicates which section instance within the FFS file specified by NameGuid to retrieve. the FFS file specified by NameGuid.
@param Buffer On output, a pointer to a callee allocated buffer containing the FFS file section that was found. @param SectionInstance Indicates which section instance within the FFS file
Is it the caller's responsibility to free this buffer using FreePool(). specified by NameGuid to retrieve.
@param Buffer On output, a pointer to a callee allocated buffer
containing the FFS file section that was found.
Is it the caller's responsibility to free this buffer
using FreePool().
@param Size On output, a pointer to the size, in bytes, of Buffer. @param Size On output, a pointer to the size, in bytes, of Buffer.
@retval EFI_SUCCESS The specified FFS section was returned. @retval EFI_SUCCESS The specified FFS section was returned.
@retval EFI_NOT_FOUND The specified FFS section could not be found. @retval EFI_NOT_FOUND The specified FFS section could not be found.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section. @retval EFI_OUT_OF_RESOURCES There are not enough resources available to
@retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a device error. retrieve the matching FFS section.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the firmware volume that @retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a
device error.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the
firmware volume that
contains the matching FFS section does not allow reads. contains the matching FFS section does not allow reads.
**/ **/
EFI_STATUS EFI_STATUS
@ -440,21 +463,29 @@ Done:
If Buffer is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param NameGuid A pointer to to the FFS filename GUID to search for within @param NameGuid A pointer to to the FFS filename GUID to search for
the firmware volumes that the currently executing module was loaded from. within the firmware volumes that the currently
@param SectionType Indicates the FFS section type to search for within the FFS file specified by NameGuid. executing module was loaded from.
@param SectionInstance Indicates which section instance within the FFS file specified by NameGuid to retrieve. @param SectionType Indicates the FFS section type to search for within
@param Buffer On output, a pointer to a callee allocated buffer containing the FFS file section that was found. the FFS file specified by NameGuid.
Is it the caller's responsibility to free this buffer using FreePool(). @param SectionInstance Indicates which section instance within the FFS file
specified by NameGuid to retrieve.
@param Buffer On output, a pointer to a callee allocated buffer
containing the FFS file section that was found.
Is it the caller's responsibility to free this buffer
using FreePool().
@param Size On output, a pointer to the size, in bytes, of Buffer. @param Size On output, a pointer to the size, in bytes, of Buffer.
@retval EFI_SUCCESS The specified FFS section was returned. @retval EFI_SUCCESS The specified FFS section was returned.
@retval EFI_NOT_FOUND The specified FFS section could not be found. @retval EFI_NOT_FOUND The specified FFS section could not be found.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section. @retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve
@retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a device error. the matching FFS section.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the firmware volume that @retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a
contains the matching FFS section does not allow reads. device error.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the
firmware volume that contains the matching FFS
section does not allow reads.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -496,20 +527,27 @@ GetSectionFromFv (
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param SectionType Indicates the FFS section type to search for within the FFS file @param SectionType Indicates the FFS section type to search for within
that the currently executing module was loaded from. the FFS file that the currently executing module
@param SectionInstance Indicates which section instance to retrieve within the FFS file was loaded from.
that the currently executing module was loaded from. @param SectionInstance Indicates which section instance to retrieve within
@param Buffer On output, a pointer to a callee allocated buffer containing the FFS file section that was found. the FFS file that the currently executing module
Is it the caller's responsibility to free this buffer using FreePool(). was loaded from.
@param Buffer On output, a pointer to a callee allocated buffer
containing the FFS file section that was found.
Is it the caller's responsibility to free this buffer
using FreePool().
@param Size On output, a pointer to the size, in bytes, of Buffer. @param Size On output, a pointer to the size, in bytes, of Buffer.
@retval EFI_SUCCESS The specified FFS section was returned. @retval EFI_SUCCESS The specified FFS section was returned.
@retval EFI_NOT_FOUND The specified FFS section could not be found. @retval EFI_NOT_FOUND The specified FFS section could not be found.
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section. @retval EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve
@retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a device error. the matching FFS section.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the firmware volume that @retval EFI_DEVICE_ERROR The FFS section could not be retrieves due to a
contains the matching FFS section does not allow reads. device error.
@retval EFI_ACCESS_DENIED The FFS section could not be retrieves because the
firmware volume that contains the matching FFS
section does not allow reads.
**/ **/
EFI_STATUS EFI_STATUS
@ -544,17 +582,20 @@ GetSectionFromFfs (
If FileSize is NULL, then NULL is returned. If FileSize is NULL, then NULL is returned.
If AuthenticationStatus is NULL, then NULL is returned. If AuthenticationStatus is NULL, then NULL is returned.
@param[in] BootPolicy Policy for Open Image File.If TRUE, indicates that the request @param[in] BootPolicy Policy for Open Image File.If TRUE, indicates
originates from the boot manager, and that the boot manager is that the request originates from the boot
attempting to load FilePath as a boot selection. If FALSE, manager, and that the boot manager is
then FilePath must match an exact file to be loaded. attempting to load FilePath as a boot
@param[in] FilePath The pointer to the device path of the file that is absracted to selection. If FALSE, then FilePath must
the file buffer. match an exact file to be loaded.
@param[out] FileSize The pointer to the size of the abstracted file buffer. @param[in] FilePath The pointer to the device path of the file
@param[out] AuthenticationStatus The pointer to a caller-allocated UINT32 in which the authentication that is absracted to the file buffer.
status is returned. @param[out] FileSize The pointer to the size of the abstracted
file buffer.
@param[out] AuthenticationStatus The pointer to a caller-allocated UINT32
in which the authentication status is returned.
@retval NULL File is NULL, or FileSize is NULL. Or the file can't be found. @retval NULL File is NULL, or FileSize is NULL. Or, the file can't be found.
@retval other The abstracted file buffer. The caller is responsible to free memory. @retval other The abstracted file buffer. The caller is responsible to free memory.
**/ **/
VOID * VOID *

View File

@ -1,11 +1,11 @@
/** @file /** @file
Implementation of SmBusLib class library for DXE phase. Implementation of SmBusLib class library for DXE phase.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -57,14 +57,16 @@ SmbusLibConstructor (
as defined in the SmBus Specification. The data can either be of as defined in the SmBus Specification. The data can either be of
the Length byte, word, or a block of data. the Length byte, word, or a block of data.
@param SmbusOperation Signifies which particular SMBus hardware protocol instance that it will use to @param SmbusOperation Signifies which particular SMBus hardware protocol instance
execute the SMBus transactions. that it will use to execute the SMBus transactions.
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Length Signifies the number of bytes that this operation will do. The maximum number of @param Length Signifies the number of bytes that this operation will do.
bytes can be revision specific and operation specific. The maximum number of bytes can be revision specific
@param Buffer Contains the value of data to execute to the SMBus slave device. Not all operations and operation specific.
require this argument. The length of this buffer is identified by Length. @param Buffer Contains the value of data to execute to the SMBus slave
device. Not all operations require this argument. The
length of this buffer is identified by Length.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.

View File

@ -1,11 +1,11 @@
/** @file /** @file
Internal header file for Smbus library. Internal header file for Smbus library.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -38,14 +38,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
as defined in the SmBus Specification. The data can either be of as defined in the SmBus Specification. The data can either be of
the Length byte, word, or a block of data. the Length byte, word, or a block of data.
@param SmbusOperation Signifies which particular SMBus hardware protocol instance that it will use to @param SmbusOperation Signifies which particular SMBus hardware protocol instance
execute the SMBus transactions. that it will use toexecute the SMBus transactions.
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Length Signifies the number of bytes that this operation will do. The maximum number of @param Length Signifies the number of bytes that this operation will
bytes can be revision specific and operation specific. do. The maximum number of bytes can be revision specific
@param Buffer Contains the value of data to execute to the SMBus slave device. Not all operations and operation specific.
require this argument. The length of this buffer is identified by Length. @param Buffer Contains the value of data to execute to the SMBus slave
device. Not all operations require this argument. The
length of this buffer is identified by Length.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.

View File

@ -1,11 +1,11 @@
/** @file /** @file
Implementation of SmBusLib class library for DXE phase. Implementation of SmBusLib class library for DXE phase.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -30,13 +30,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not
of a transaction collision, illegal command field, unclaimed cycle completed because a failure reflected in the Host Status
(host initiated), or bus errors (collisions). Register bit. Device errors are a result of a transaction
RETURN_UNSUPPORTED The SMBus operation is not supported. collision, illegal command field, unclaimed cycle (host
initiated), or bus errors (collisions).
RETURN_UNSUPPORTED: The SMBus operation is not supported.
**/ **/
VOID VOID
@ -69,13 +71,15 @@ SmBusQuickRead (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_UNSUPPORTED The SMBus operation is not supported. illegal command field, unclaimed cycle (host initiated),
or bus errors (collisions).
RETURN_UNSUPPORTED: The SMBus operation is not supported.
**/ **/
VOID VOID
@ -108,14 +112,16 @@ SmBusQuickWrite (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle(host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte received from the SMBUS. @return The byte received from the SMBUS.
@ -154,14 +160,16 @@ SmBusReceiveByte (
@param Value The 8-bit value to send. @param Value The 8-bit value to send.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle(host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct (PEC is incorrect)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -196,18 +204,20 @@ SmBusSendByte (
If Length in SmBusAddress is not zero, then ASSERT(). If Length in SmBusAddress is not zero, then ASSERT().
If any reserved bits of SmBusAddress are set, then ASSERT(). If any reserved bits of SmBusAddress are set, then ASSERT().
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failurereflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle (host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct (PEC is incorrect)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte read from the SMBUS. @return The byte read from the SMBUS.
@ -245,14 +255,16 @@ SmBusReadDataByte (
@param Value The 8-bit value to write. @param Value The 8-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -290,14 +302,17 @@ SmBusWriteDataByte (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is
incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte read from the SMBUS. @return The byte read from the SMBUS.
@ -335,14 +350,17 @@ SmBusReadDataWord (
@param Value The 16-bit value to write. @param Value The 16-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the SMBUS
RETURN_DEVICE_ERROR The request was not completed because a failure command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct.
(PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -382,14 +400,17 @@ SmBusWriteDataWord (
@param Value The 16-bit value to write. @param Value The 16-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is
incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The 16-bit value returned by the process call command. @return The 16-bit value returned by the process call command.
@ -426,17 +447,21 @@ SmBusProcessCall (
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Buffer The pointer to the buffer to store the bytes read from the SMBUS. @param Buffer The pointer to the buffer to store the bytes read from
the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the SMBUS
RETURN_DEVICE_ERROR The request was not completed because a failure command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle (host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is
incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes read. @return The number of bytes read.
@ -470,16 +495,20 @@ SmBusReadBlock (
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
MBUS Command, SMBUS Data Length, and PEC. MBUS Command, SMBUS Data Length, and PEC.
@param Buffer The pointer to the buffer to store the bytes read from the SMBUS. @param Buffer The pointer to the buffer to store the bytes read from
the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle (host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is
incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes written. @return The number of bytes written.
@ -523,13 +552,16 @@ SmBusWriteBlock (
@param ReadBuffer The pointer to the buffer of bytes to read from the SMBUS. @param ReadBuffer The pointer to the buffer of bytes to read from the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle (host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is
incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes written. @return The number of bytes written.

View File

@ -1,11 +1,11 @@
/** @file /** @file
Entry point to a the PEI Core. Entry point to a the PEI Core.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -39,17 +39,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
the PEI Services Table and the file handle for the PEI Core itself have been established. the PEI Services Table and the file handle for the PEI Core itself have been established.
If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system. If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system.
@param SecCoreData Points to a data structure containing information about the PEI @param SecCoreData Points to a data structure containing information about the
core's operating environment, such as the size and location of PEI core's operating environment, such as the size and
temporary RAM, the stack location and the BFV location. location of temporary RAM, the stack location and the BFV
location.
@param PpiList Points to a list of one or more PPI descriptors to be installed
initially by the PEI core. An empty PPI list consists of a single @param PpiList Points to a list of one or more PPI descriptors to be
descriptor with the end-tag EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST. installed initially by the PEI core. An empty PPI list
As part of its initialization phase, the PEI Foundation will add consists of a single descriptor with the end-tag
these SEC-hosted PPIs to its PPI database such that both the PEI EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.
Foundation and any modules can leverage the associated service calls As part of its initialization phase, the PEI Foundation will
and/or code in these early PPIs. add these SEC-hosted PPIs to its PPI database, such that both
the PEI Foundation and any modules can leverage the associated
service calls and/or code in these early PPIs.
**/ **/
VOID VOID
@ -79,12 +81,13 @@ _ModuleEntryPoint(
the stack location and the BFV location. the stack location and the BFV location.
@param PpiList Points to a list of one or more PPI descriptors to be installed @param PpiList Points to a list of one or more PPI descriptors to be installed
initially by the PEI core. An empty PPI list consists of a single initially by the PEI core. An empty PPI list consists of
descriptor with the end-tag EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST. a single descriptor with the end-tag
As part of its initialization phase, the PEI Foundation will add these EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST.
SEC-hosted PPIs to its PPI database such that both the PEI Foundation As part of its initialization phase, the PEI Foundation will
and any modules can leverage the associated service calls and/or code add these SEC-hosted PPIs to its PPI database, such that both
in these early PPIs. the PEI Foundationand any modules can leverage the associated
service calls and/or code in these early PPIs.
**/ **/
VOID VOID

View File

@ -2,7 +2,7 @@
Post code library instace bases on report status code library Post code library instace bases on report status code library
PostCode Library for PEIMs and DXE drivers that send PostCode to ReportStatusCode PostCode Library for PEIMs and DXE drivers that send PostCode to ReportStatusCode
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at

View File

@ -34,7 +34,7 @@ typedef struct {
Build guid hob for the global memory to store the registered guid and Handler list. Build guid hob for the global memory to store the registered guid and Handler list.
If GuidHob exists, HandlerInfo will be directly got from Guid hob data. If GuidHob exists, HandlerInfo will be directly got from Guid hob data.
@param[in, out] InfoPointer The pointer to pei handler info structure. @param[in, out] InfoPointer The pointer to pei handler information structure.
@retval RETURN_SUCCESS Build Guid hob for the global memory space to store guid and function tables. @retval RETURN_SUCCESS Build Guid hob for the global memory space to store guid and function tables.
@retval RETURN_OUT_OF_RESOURCES No enough memory to allocated. @retval RETURN_OUT_OF_RESOURCES No enough memory to allocated.
@ -48,7 +48,7 @@ PeiGetExtractGuidedSectionHandlerInfo (
EFI_PEI_HOB_POINTERS Hob; EFI_PEI_HOB_POINTERS Hob;
// //
// First try to get handler info from guid hob specified by CallerId. // First try to get handler information from guid hob specified by CallerId.
// //
Hob.Raw = GetNextHob (EFI_HOB_TYPE_GUID_EXTENSION, GetHobList ()); Hob.Raw = GetNextHob (EFI_HOB_TYPE_GUID_EXTENSION, GetHobList ());
while (Hob.Raw != NULL) { while (Hob.Raw != NULL) {
@ -313,7 +313,7 @@ ExtractGuidedSectionGetInfo (
for (Index = 0; Index < HandlerInfo->NumberOfExtractHandler; Index ++) { for (Index = 0; Index < HandlerInfo->NumberOfExtractHandler; Index ++) {
if (CompareGuid (HandlerInfo->ExtractHandlerGuidTable + Index, &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) { if (CompareGuid (HandlerInfo->ExtractHandlerGuidTable + Index, &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {
// //
// Call the match handler to get info for the input section data. // Call the match handler to get information for the input section data.
// //
return HandlerInfo->ExtractGetInfoHandlerTable [Index] ( return HandlerInfo->ExtractGetInfoHandlerTable [Index] (
InputSection, InputSection,

View File

@ -1,11 +1,11 @@
/** @file /** @file
Provide Hob Library functions for Pei phase. Provide Hob Library functions for Pei phase.
Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -127,7 +127,7 @@ GetFirstHob (
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If there does not exist such HOB from the starting HOB pointer, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer
unconditionally: it returns HobStart back if HobStart itself meets the requirement; unconditionally: it returns HobStart back if HobStart itself meets the requirement;
caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart. caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
@ -168,7 +168,7 @@ GetNextGuidHob (
its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
If there does not exist such HOB from the starting HOB pointer, it will return NULL. If there does not exist such HOB from the starting HOB pointer, it will return NULL.
Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
to extract the data section and its size info respectively. to extract the data section and its size information, respectively.
If the pointer to the HOB list is NULL, then ASSERT(). If the pointer to the HOB list is NULL, then ASSERT().
If Guid is NULL, then ASSERT(). If Guid is NULL, then ASSERT().
@ -198,7 +198,7 @@ GetFirstGuidHob (
If the pointer to the HOB list is NULL, then ASSERT(). If the pointer to the HOB list is NULL, then ASSERT().
@param VOID @param VOID.
@return The Boot Mode. @return The Boot Mode.
@ -579,7 +579,7 @@ BuildStackHob (
@param BaseAddress The 64 bit physical address of the BSP. @param BaseAddress The 64 bit physical address of the BSP.
@param Length The length of the BSP store in bytes. @param Length The length of the BSP store in bytes.
@param MemoryType Type of memory allocated by this HOB. @param MemoryType The type of memory allocated by this HOB.
**/ **/
VOID VOID
@ -619,7 +619,7 @@ BuildBspStoreHob (
@param BaseAddress The 64 bit physical address of the memory. @param BaseAddress The 64 bit physical address of the memory.
@param Length The length of the memory allocation in bytes. @param Length The length of the memory allocation in bytes.
@param MemoryType Type of memory allocated by this HOB. @param MemoryType The type of memory allocated by this HOB.
**/ **/
VOID VOID

View File

@ -1265,7 +1265,7 @@ MmioAndThenOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1297,7 +1297,7 @@ MmioBitFieldRead8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1338,7 +1338,7 @@ MmioBitFieldWrite8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1379,7 +1379,7 @@ MmioBitFieldOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1421,7 +1421,7 @@ MmioBitFieldAnd8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1550,7 +1550,7 @@ MmioAndThenOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1583,7 +1583,7 @@ MmioBitFieldRead16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1625,7 +1625,7 @@ MmioBitFieldWrite16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1667,7 +1667,7 @@ MmioBitFieldOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1710,7 +1710,7 @@ MmioBitFieldAnd16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1839,7 +1839,7 @@ MmioAndThenOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1872,7 +1872,7 @@ MmioBitFieldRead32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1914,7 +1914,7 @@ MmioBitFieldWrite32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1956,7 +1956,7 @@ MmioBitFieldOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1999,7 +1999,7 @@ MmioBitFieldAnd32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2128,7 +2128,7 @@ MmioAndThenOr64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2161,7 +2161,7 @@ MmioBitFieldRead64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2288,7 +2288,7 @@ MmioBitFieldAnd64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.

View File

@ -2,7 +2,7 @@
Support routines for memory allocation routines Support routines for memory allocation routines
based on PeiService for PEI phase drivers. based on PeiService for PEI phase drivers.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -163,7 +163,8 @@ FreePages (
@param MemoryType The type of memory to allocate. @param MemoryType The type of memory to allocate.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -214,7 +215,8 @@ InternalAllocateAlignedPages (
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -241,7 +243,8 @@ AllocateAlignedPages (
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -268,7 +271,8 @@ AllocateAlignedRuntimePages (
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -654,8 +658,8 @@ AllocateReservedCopyPool (
@param PoolType The type of pool to allocate. @param PoolType The type of pool to allocate.
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -757,8 +761,8 @@ ReallocateRuntimePool (
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.

View File

@ -11,7 +11,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at

View File

@ -12,7 +12,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at

View File

@ -1,7 +1,7 @@
/** @file /** @file
Base Memory Library functions implementation bases on PeiServcie. Base Memory Library functions implementation bases on PeiServcie.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -48,7 +48,7 @@ InternalMemCopyMem (
This function wraps the gPS->SetMem (). This function wraps the gPS->SetMem ().
@param Buffer Memory to set. @param Buffer Memory to set.
@param Size The number of bytes to set. @param Size The number of bytes to set.
@param Value Value of the set operation. @param Value Value of the set operation.
@return Buffer. @return Buffer.

View File

@ -6,7 +6,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -26,7 +26,7 @@
@param Length The count of 16-bit value to fill. @param Length The count of 16-bit value to fill.
@param Value The value with which to fill Length bytes of Buffer. @param Value The value with which to fill Length bytes of Buffer.
@return Buffer @return Buffer.
**/ **/
VOID * VOID *
@ -50,7 +50,7 @@ InternalMemSetMem16 (
@param Length The count of 32-bit value to fill. @param Length The count of 32-bit value to fill.
@param Value The value with which to fill Length bytes of Buffer. @param Value The value with which to fill Length bytes of Buffer.
@return Buffer @return Buffer.
**/ **/
VOID * VOID *
@ -74,7 +74,7 @@ InternalMemSetMem32 (
@param Length The count of 64-bit value to fill. @param Length The count of 64-bit value to fill.
@param Value The value with which to fill Length bytes of Buffer. @param Value The value with which to fill Length bytes of Buffer.
@return Buffer @return Buffer.
**/ **/
VOID * VOID *
@ -94,10 +94,10 @@ InternalMemSetMem64 (
/** /**
Set Buffer to 0 for Size bytes. Set Buffer to 0 for Size bytes.
@param Buffer Memory to set. @param Buffer The memory to set.
@param Length The number of bytes to set @param Length The number of bytes to set
@return Buffer @return Buffer.
**/ **/
VOID * VOID *
@ -113,9 +113,9 @@ InternalMemZeroMem (
/** /**
Compares two memory buffers of a given length. Compares two memory buffers of a given length.
@param DestinationBuffer First memory buffer @param DestinationBuffer The first memory buffer
@param SourceBuffer Second memory buffer @param SourceBuffer The second memory buffer
@param Length Length of DestinationBuffer and SourceBuffer memory @param Length The length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero. regions to compare. Must be non-zero.
@return 0 All Length bytes of the two buffers are identical. @return 0 All Length bytes of the two buffers are identical.
@ -147,7 +147,7 @@ InternalMemCompareMem (
@param Length The count of 8-bit value to scan. Must be non-zero. @param Length The count of 8-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -177,7 +177,7 @@ InternalMemScanMem8 (
@param Length The count of 16-bit value to scan. Must be non-zero. @param Length The count of 16-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -207,7 +207,7 @@ InternalMemScanMem16 (
@param Length The count of 32-bit value to scan. Must be non-zero. @param Length The count of 32-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -237,7 +237,7 @@ InternalMemScanMem32 (
@param Length The count of 64-bit value to scan. Must be non-zero. @param Length The count of 64-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *

View File

@ -12,7 +12,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at

View File

@ -1,7 +1,7 @@
/** @file /** @file
Declaration of internal functions for Base Memory Library. Declaration of internal functions for Base Memory Library.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -47,7 +47,7 @@ InternalMemCopyMem (
This function wraps the (*PeiServices)->SetMem (). This function wraps the (*PeiServices)->SetMem ().
@param Buffer Memory to set. @param Buffer The memory to set.
@param Size The number of bytes to set. @param Size The number of bytes to set.
@param Value Value of the set operation. @param Value Value of the set operation.
@ -119,7 +119,7 @@ InternalMemSetMem64 (
/** /**
Set Buffer to 0 for Size bytes. Set Buffer to 0 for Size bytes.
@param Buffer Memory to set. @param Buffer The memory to set.
@param Length The number of bytes to set @param Length The number of bytes to set
@return Buffer @return Buffer
@ -135,9 +135,9 @@ InternalMemZeroMem (
/** /**
Compares two memory buffers of a given length. Compares two memory buffers of a given length.
@param DestinationBuffer First memory buffer @param DestinationBuffer The first memory buffer
@param SourceBuffer Second memory buffer @param SourceBuffer The second memory buffer
@param Length Length of DestinationBuffer and SourceBuffer memory @param Length The length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero. regions to compare. Must be non-zero.
@return 0 All Length bytes of the two buffers are identical. @return 0 All Length bytes of the two buffers are identical.
@ -161,7 +161,7 @@ InternalMemCompareMem (
@param Length The count of 8-bit value to scan. Must be non-zero. @param Length The count of 8-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -180,7 +180,7 @@ InternalMemScanMem8 (
@param Length The count of 16-bit value to scan. Must be non-zero. @param Length The count of 16-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -199,7 +199,7 @@ InternalMemScanMem16 (
@param Length The count of 32-bit value to scan. Must be non-zero. @param Length The count of 32-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *
@ -218,7 +218,7 @@ InternalMemScanMem32 (
@param Length The count of 64-bit value to scan. Must be non-zero. @param Length The count of 64-bit value to scan. Must be non-zero.
@param Value The value to search for in the target buffer. @param Value The value to search for in the target buffer.
@return The pointer to the first occurrence or NULL if not found. @return The pointer to the first occurrence, or NULL if not found.
**/ **/
CONST VOID * CONST VOID *

View File

@ -12,7 +12,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at

View File

@ -12,7 +12,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -32,7 +32,7 @@
If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@param Buffer Memory to set. @param Buffer The memory to set.
@param Length The number of bytes to set. @param Length The number of bytes to set.
@param Value The value with which to fill Length bytes of Buffer. @param Value The value with which to fill Length bytes of Buffer.

View File

@ -78,8 +78,8 @@ GetPiPcdPpiPointer (
Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned. Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.
If SkuId >= PCD_MAX_SKU_ID, then ASSERT(). If SkuId >= PCD_MAX_SKU_ID, then ASSERT().
@param SkuId The SKU value that will be used when the PCD service retrieves and sets values @param SkuId The SKU value that will be used when the PCD service retrieves
associated with a PCD token. and sets values associated with a PCD token.
@return Return the SKU ID that just be set. @return Return the SKU ID that just be set.
@ -446,7 +446,7 @@ LibPcdGetExSize (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -476,7 +476,7 @@ LibPcdSet8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -506,7 +506,7 @@ LibPcdSet16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -536,7 +536,7 @@ LibPcdSet32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -615,7 +615,7 @@ LibPcdSetPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The boolean value to set. @param[in] Value The boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN
@ -649,7 +649,7 @@ LibPcdSetBool (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 8-bit value to set. @param[in] Value The 8-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT8 UINT8
@ -686,7 +686,7 @@ LibPcdSetEx8 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 16-bit value to set. @param[in] Value The 16-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT16 UINT16
@ -721,7 +721,7 @@ LibPcdSetEx16 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 32-bit value to set. @param[in] Value The 32-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT32 UINT32
@ -757,7 +757,7 @@ LibPcdSetEx32 (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The 64-bit value to set. @param[in] Value The 64-bit value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
UINT64 UINT64
@ -842,7 +842,7 @@ LibPcdSetExPtr (
@param[in] TokenNumber The PCD token number to set a current value for. @param[in] TokenNumber The PCD token number to set a current value for.
@param[in] Value The Boolean value to set. @param[in] Value The Boolean value to set.
@return Return the value been set. @return Return the value that was set.
**/ **/
BOOLEAN BOOLEAN
@ -873,9 +873,9 @@ LibPcdSetExBool (
If Guid is NULL, then the default token space is used. If Guid is NULL, then the default token space is used.
If NotificationFunction is NULL, then ASSERT(). If NotificationFunction is NULL, then ASSERT().
@param[in] Guid The pointer to a 128-bit unique value that designates which @param[in] Guid The pointer to a 128-bit unique value that
namespace to set a value from. If NULL, then the default designates which namespace to set a value from.
token space is used. If NULL, then the default token space is used.
@param[in] TokenNumber The PCD token number to monitor. @param[in] TokenNumber The PCD token number to monitor.
@param[in] NotificationFunction The function to call when the token @param[in] NotificationFunction The function to call when the token
specified by Guid and TokenNumber is set. specified by Guid and TokenNumber is set.

View File

@ -1,7 +1,7 @@
/** @file /** @file
PCI Library using PCI CFG2 PPI. PCI Library using PCI CFG2 PPI.
Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are This program and the accompanying materials are
licensed and made available under the terms and conditions of licensed and made available under the terms and conditions of
the BSD License which accompanies this distribution. The full the BSD License which accompanies this distribution. The full
@ -53,7 +53,7 @@
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to read @param Width The width of data to read
@return The value read from the PCI configuration register. @return The value read from the PCI configuration register.
@ -95,7 +95,7 @@ PeiPciLibPciCfg2ReadWorker (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to write @param Width The width of data to write
@param Data The value to write. @param Data The value to write.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.

View File

@ -49,7 +49,8 @@
This internal function retrieves PCI CFG2 PPI from PPI database. This internal function retrieves PCI CFG2 PPI from PPI database.
@param Address The address that encodes the PCI Segment, Bus, Device, Function and Register. @param Address The address that encodes the PCI Segment, Bus, Device,
Function and Register.
@return The pointer to PCI CFG2 PPI. @return The pointer to PCI CFG2 PPI.
@ -94,7 +95,7 @@ InternalGetPciCfg2Ppi (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to read @param Width The width of data to read
@return The value read from the PCI configuration register. @return The value read from the PCI configuration register.
@ -132,7 +133,7 @@ PeiPciSegmentLibPciCfg2ReadWorker (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to write @param Width The width of data to write
@param Data The value to write. @param Data The value to write.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.
@ -197,7 +198,8 @@ PciSegmentRegisterForRuntimeAccess (
If any reserved bits in Address are set, then ASSERT(). If any reserved bits in Address are set, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device, Function,
and Register.
@return The 8-bit PCI configuration register specified by Address. @return The 8-bit PCI configuration register specified by Address.
@ -646,7 +648,7 @@ PciSegmentAnd16 (
If Address is not aligned on a 16-bit boundary, then ASSERT(). If Address is not aligned on a 16-bit boundary, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register.
@param AndData The value to AND with the PCI configuration register. @param AndData The value to AND with the PCI configuration register.
@param OrData The value to OR with the PCI configuration register. @param OrData The value to OR with the PCI configuration register.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.
@ -867,7 +869,8 @@ PciSegmentBitFieldAndThenOr16 (
If any reserved bits in Address are set, then ASSERT(). If any reserved bits in Address are set, then ASSERT().
If Address is not aligned on a 32-bit boundary, then ASSERT(). If Address is not aligned on a 32-bit boundary, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device, Function,
and Register.
@return The 32-bit PCI configuration register specified by Address. @return The 32-bit PCI configuration register specified by Address.
@ -892,7 +895,8 @@ PciSegmentRead32 (
If any reserved bits in Address are set, then ASSERT(). If any reserved bits in Address are set, then ASSERT().
If Address is not aligned on a 32-bit boundary, then ASSERT(). If Address is not aligned on a 32-bit boundary, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device,
Function, and Register.
@param Value The value to write. @param Value The value to write.
@return The parameter of Value. @return The parameter of Value.
@ -950,7 +954,8 @@ PciSegmentOr32 (
If any reserved bits in Address are set, then ASSERT(). If any reserved bits in Address are set, then ASSERT().
If Address is not aligned on a 32-bit boundary, then ASSERT(). If Address is not aligned on a 32-bit boundary, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device, Function,
and Register.
@param AndData The value to AND with the PCI configuration register. @param AndData The value to AND with the PCI configuration register.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.
@ -980,7 +985,8 @@ PciSegmentAnd32 (
If any reserved bits in Address are set, then ASSERT(). If any reserved bits in Address are set, then ASSERT().
If Address is not aligned on a 32-bit boundary, then ASSERT(). If Address is not aligned on a 32-bit boundary, then ASSERT().
@param Address The address that encodes the PCI Segment, Bus, Device, Function, and Register. @param Address The address that encodes the PCI Segment, Bus, Device, Function,
and Register.
@param AndData The value to AND with the PCI configuration register. @param AndData The value to AND with the PCI configuration register.
@param OrData The value to OR with the PCI configuration register. @param OrData The value to OR with the PCI configuration register.
@ -1213,8 +1219,8 @@ PciSegmentBitFieldAndThenOr32 (
If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT(). If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
If Size > 0 and Buffer is NULL, then ASSERT(). If Size > 0 and Buffer is NULL, then ASSERT().
@param StartAddress The starting address that encodes the PCI Segment, Bus, Device, @param StartAddress The starting address that encodes the PCI Segment, Bus,
Function and Register. Device, Function and Register.
@param Size The size in bytes of the transfer. @param Size The size in bytes of the transfer.
@param Buffer The pointer to a buffer receiving the data read. @param Buffer The pointer to a buffer receiving the data read.
@ -1312,8 +1318,8 @@ PciSegmentReadBuffer (
If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT(). If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
If Size > 0 and Buffer is NULL, then ASSERT(). If Size > 0 and Buffer is NULL, then ASSERT().
@param StartAddress The starting address that encodes the PCI Segment, Bus, Device, @param StartAddress The starting address that encodes the PCI Segment, Bus,
Function and Register. Device, Function and Register.
@param Size The size in bytes of the transfer. @param Size The size in bytes of the transfer.
@param Buffer The pointer to a buffer containing the data to write. @param Buffer The pointer to a buffer containing the data to write.

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation for PEI Services Library. Implementation for PEI Services Library.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -117,13 +117,14 @@ PeiServicesLocatePpi (
This service enables PEIMs to register a given service to be invoked when another service is This service enables PEIMs to register a given service to be invoked when another service is
installed or reinstalled. installed or reinstalled.
@param NotifyList A pointer to the list of notification interfaces that the caller @param NotifyList A pointer to the list of notification interfaces
shall install. that the caller shall install.
@retval EFI_SUCCESS The interface was successfully installed. @retval EFI_SUCCESS The interface was successfully installed.
@retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL. @retval EFI_INVALID_PARAMETER The NotifyList pointer is NULL.
@retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do not have the @retval EFI_INVALID_PARAMETER Any of the PEI notify descriptors in the list do
EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field. not have the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES
bit set in the Flags field.
@retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database. @retval EFI_OUT_OF_RESOURCES There is no additional space in the PPI database.
**/ **/
@ -183,8 +184,9 @@ PeiServicesSetBootMode (
/** /**
This service enables a PEIM to ascertain the address of the list of HOBs in memory. This service enables a PEIM to ascertain the address of the list of HOBs in memory.
@param HobList A pointer to the list of HOBs that the PEI Foundation will initialize. @param HobList A pointer to the list of HOBs that the PEI Foundation
will initialize.
@retval EFI_SUCCESS The list was successfully returned. @retval EFI_SUCCESS The list was successfully returned.
@retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published. @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.
@ -206,7 +208,8 @@ PeiServicesGetHobList (
@param Type The type of HOB to be installed. @param Type The type of HOB to be installed.
@param Length The length of the HOB to be added. @param Length The length of the HOB to be added.
@param Hob The address of a pointer that will contain the HOB header. @param Hob The address of a pointer that will contain the
HOB header.
@retval EFI_SUCCESS The HOB was successfully created. @retval EFI_SUCCESS The HOB was successfully created.
@retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation. @retval EFI_OUT_OF_RESOURCES There is no additional space for HOB creation.
@ -229,9 +232,10 @@ PeiServicesCreateHob (
/** /**
This service enables PEIMs to discover additional firmware volumes. This service enables PEIMs to discover additional firmware volumes.
@param Instance This instance of the firmware volume to find. The value 0 is the @param Instance This instance of the firmware volume to find. The
Boot Firmware Volume (BFV). value 0 is the Boot Firmware Volume (BFV).
@param VolumeHandle Handle of the firmware volume header of the volume to return. @param VolumeHandle Handle of the firmware volume header of the volume
to return.
@retval EFI_SUCCESS The volume was found. @retval EFI_SUCCESS The volume was found.
@retval EFI_NOT_FOUND The volume was not found. @retval EFI_NOT_FOUND The volume was not found.
@ -255,8 +259,9 @@ PeiServicesFfsFindNextVolume (
This service enables PEIMs to discover additional firmware files. This service enables PEIMs to discover additional firmware files.
@param SearchType A filter to find files only of this type. @param SearchType A filter to find files only of this type.
@param VolumeHandle The pointer to the firmware volume header of the volume to search. @param VolumeHandle The pointer to the firmware volume header of the
This parameter must point to a valid FFS volume. volume to search. This parameter must point to a
valid FFS volume.
@param FileHandle Handle of the current file from which to begin searching. @param FileHandle Handle of the current file from which to begin searching.
@retval EFI_SUCCESS The file was found. @retval EFI_SUCCESS The file was found.
@ -282,8 +287,8 @@ PeiServicesFfsFindNextFile (
This service enables PEIMs to discover sections of a given type within a valid FFS file. This service enables PEIMs to discover sections of a given type within a valid FFS file.
@param SectionType The value of the section type to find. @param SectionType The value of the section type to find.
@param FileHandle A pointer to the file header that contains the set of sections to @param FileHandle A pointer to the file header that contains the set
be searched. of sections to be searched.
@param SectionData A pointer to the discovered section, if successful. @param SectionData A pointer to the discovered section, if successful.
@retval EFI_SUCCESS The section was found. @retval EFI_SUCCESS The section was found.
@ -330,8 +335,8 @@ PeiServicesInstallPeiMemory (
} }
/** /**
This service enables PEIMs to allocate memory after the permanent memory has been installed by a This service enables PEIMs to allocate memory after the permanent memory has been
PEIM. installed by a PEIM.
@param MemoryType Type of memory to allocate. @param MemoryType Type of memory to allocate.
@param Pages The number of pages to allocate. @param Pages The number of pages to allocate.
@ -361,8 +366,8 @@ PeiServicesAllocatePages (
This service allocates memory from the Hand-Off Block (HOB) heap. This service allocates memory from the Hand-Off Block (HOB) heap.
@param Size The number of bytes to allocate from the pool. @param Size The number of bytes to allocate from the pool.
@param Buffer If the call succeeds, a pointer to a pointer to the allocate @param Buffer If the call succeeds, a pointer to a pointer to
buffer; undefined otherwise. the allocate buffer; otherwise, undefined.
@retval EFI_SUCCESS The allocation was successful @retval EFI_SUCCESS The allocation was successful
@retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size. @retval EFI_OUT_OF_RESOURCES There is not enough heap to allocate the requested size.
@ -401,21 +406,21 @@ PeiServicesResetSystem (
} }
/** /**
This service is a wrapper for the PEI Service RegisterForShadow(), except the pointer to the PEI Services This service is a wrapper for the PEI Service RegisterForShadow(), except the
Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface pointer to the PEI Services Table has been removed. See the Platform
Specification for details. Initialization Pre-EFI Initialization Core Interface Specification for details.
@param FileHandle PEIM's file handle. Must be the currently @param FileHandle PEIM's file handle. Must be the currently
executing PEIM. executing PEIM.
@retval EFI_SUCCESS The PEIM was successfully registered for @retval EFI_SUCCESS The PEIM was successfully registered for
shadowing. shadowing.
@retval EFI_ALREADY_STARTED The PEIM was previously @retval EFI_ALREADY_STARTED The PEIM was previously
registered for shadowing. registered for shadowing.
@retval EFI_NOT_FOUND The FileHandle does not refer to a @retval EFI_NOT_FOUND The FileHandle does not refer to a
valid file handle. valid file handle.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -431,17 +436,17 @@ PeiServicesRegisterForShadow (
Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface
Specification for details. Specification for details.
@param FileHandle Handle of the file. @param FileHandle The handle of the file.
@param FileInfo Upon exit, points to the file's @param FileInfo Upon exit, points to the file's
information. information.
@retval EFI_SUCCESS File information returned. @retval EFI_SUCCESS File information returned.
@retval EFI_INVALID_PARAMETER If FileHandle does not @retval EFI_INVALID_PARAMETER If FileHandle does not
represent a valid file. represent a valid file.
@retval EFI_INVALID_PARAMETER If FileInfo is NULL. @retval EFI_INVALID_PARAMETER FileInfo is NULL.
**/ **/
EFI_STATUS EFI_STATUS
@ -460,13 +465,13 @@ PeiServicesFfsGetFileInfo (
Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface
Specification for details. Specification for details.
@param FileName A pointer to the name of the file to @param FileName A pointer to the name of the file to
find within the firmware volume. find within the firmware volume.
@param VolumeHandle The firmware volume to search FileHandle @param VolumeHandle The firmware volume to search FileHandle
Upon exit, points to the found file's Upon exit, points to the found file's
handle or NULL if it could not be found. handle or NULL if it could not be found.
@param FileHandle The pointer to found file handle @param FileHandle The pointer to found file handle
@retval EFI_SUCCESS File was found. @retval EFI_SUCCESS File was found.
@ -493,10 +498,10 @@ PeiServicesFfsFindFileByName (
Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface Table has been removed. See the Platform Initialization Pre-EFI Initialization Core Interface
Specification for details. Specification for details.
@param VolumeHandle Handle of the volume. @param VolumeHandle Handle of the volume.
@param VolumeInfo Upon exit, points to the volume's @param VolumeInfo Upon exit, points to the volume's
information. information.
@retval EFI_SUCCESS File information returned. @retval EFI_SUCCESS File information returned.
@ -525,20 +530,26 @@ PeiServicesFfsGetVolumeInfo (
If the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI can not be installed, then ASSERT(). If the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI can not be installed, then ASSERT().
@param FvFormat Unique identifier of the format of the memory-mapped firmware volume. @param FvFormat Unique identifier of the format of the memory-mapped
This parameter is optional and may be NULL. firmware volume. This parameter is optional and
If NULL is specified, the EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed. may be NULL. If NULL is specified, the
@param FvInfo Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed.
The format of this buffer is specific to the FvFormat. For memory-mapped firmware volumes, @param FvInfo Points to a buffer which allows the
this typically points to the first byte of the firmware volume. EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume.
@param FvInfoSize The size, in bytes, of FvInfo. For memory-mapped firmware volumes, The format of this buffer is specific to the FvFormat.
this is typically the size of the firmware volume. For memory-mapped firmware volumes, this typically
@param ParentFvName If the new firmware volume originated from a file in a different firmware volume, points to the first byte of the firmware volume.
then this parameter specifies the GUID name of the originating firmware volume. @param FvInfoSize The size, in bytes, of FvInfo. For memory-mapped
Otherwise, this parameter must be NULL. firmware volumes, this is typically the size of
@param ParentFileName If the new firmware volume originated from a file in a different firmware volume, the firmware volume.
then this parameter specifies the GUID file name of the originating firmware file. @param ParentFvName If the new firmware volume originated from a file
Otherwise, this parameter must be NULL. in a different firmware volume, then this parameter
specifies the GUID name of the originating firmware
volume. Otherwise, this parameter must be NULL.
@param ParentFileName If the new firmware volume originated from a file
in a different firmware volume, then this parameter
specifies the GUID file name of the originating
firmware file. Otherwise, this parameter must be NULL.
**/ **/
VOID VOID
EFIAPI EFIAPI

View File

@ -4,7 +4,7 @@
This library is used for PEIM which does executed from flash device directly but This library is used for PEIM which does executed from flash device directly but
executed in memory. executed in memory.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -71,10 +71,10 @@ GetPeiServicesTablePointer (
The constructor function caches the pointer to PEI services. The constructor function caches the pointer to PEI services.
It will always return EFI_SUCCESS. It will always return EFI_SUCCESS.
@param FileHandle Handle of FFS header the loaded driver. @param FileHandle The handle of FFS header the loaded driver.
@param PeiServices The pointer to the PEI services. @param PeiServices The pointer to the PEI services.
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -1,7 +1,7 @@
/** @file /** @file
Internal header file for Smbus library. Internal header file for Smbus library.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -52,14 +52,16 @@ InternalGetSmbusPpi (
as defined in the SmBus Specification. The data can either be of as defined in the SmBus Specification. The data can either be of
the Length byte, word, or a block of data. the Length byte, word, or a block of data.
@param SmbusOperation Signifies which particular SMBus hardware protocol instance that it will use to @param SmbusOperation Signifies which particular SMBus hardware protocol
execute the SMBus transactions. instance that it will use to execute the SMBus transactions.
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Length Signifies the number of bytes that this operation will do. The maximum number of @param Length Signifies the number of bytes that this operation will
bytes can be revision specific and operation specific. do. The maximum number of bytes can be revision specific
@param Buffer Contains the value of data to execute to the SMBus slave device. Not all operations and operation specific.
require this argument. The length of this buffer is identified by Length. @param Buffer Contains the value of data to execute to the SMBus slave
device. Not all operations require this argument. The
length of this buffer is identified by Length.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation of SmBusLib class library for PEI phase. Implementation of SmBusLib class library for PEI phase.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -46,14 +46,16 @@ InternalGetSmbusPpi (
as defined in the SmBus Specification. The data can either be of as defined in the SmBus Specification. The data can either be of
the Length byte, word, or a block of data. the Length byte, word, or a block of data.
@param SmbusOperation Signifies which particular SMBus hardware protocol instance that it will use to @param SmbusOperation Signifies which particular SMBus hardware protocol instance
execute the SMBus transactions. that it will use to execute the SMBus transactions.
@param SmBusAddress The address that encodes the SMBUS Slave Address, @param SmBusAddress The address that encodes the SMBUS Slave Address,
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Length Signifies the number of bytes that this operation will do. The maximum number of @param Length Signifies the number of bytes that this operation will
bytes can be revision specific and operation specific. do. The maximum number of bytes can be revision specific
@param Buffer Contains the value of data to execute to the SMBus slave device. Not all operations and operation specific.
require this argument. The length of this buffer is identified by Length. @param Buffer Contains the value of data to execute to the SMBus slave
device. Not all operations require this argument. The
length of this buffer is identified by Length.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.

View File

@ -30,13 +30,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
Device errors are a result of a transaction collision,
illegal command field, unclaimed cycle
(host initiated), or bus errors (collisions). (host initiated), or bus errors (collisions).
RETURN_UNSUPPORTED The SMBus operation is not supported. RETURN_UNSUPPORTED: The SMBus operation is not supported.
**/ **/
VOID VOID
@ -69,13 +71,15 @@ SmBusQuickRead (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_UNSUPPORTED The SMBus operation is not supported. command field, unclaimed cycle (host initiated), or bus
errors (collisions).
RETURN_UNSUPPORTED:: The SMBus operation is not supported.
**/ **/
VOID VOID
@ -108,14 +112,16 @@ SmBusQuickWrite (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte received from the SMBUS. @return The byte received from the SMBUS.
@ -154,14 +160,16 @@ SmBusReceiveByte (
@param Value The 8-bit value to send. @param Value The 8-bit value to send.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit. Device
(host initiated), or bus errors (collisions). errors are a result of a transaction collision, illegal
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) command field, unclaimed cycle (host initiated), or bus
RETURN_UNSUPPORTED The SMBus operation is not supported. errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -200,14 +208,16 @@ SmBusSendByte (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte read from the SMBUS. @return The byte read from the SMBUS.
@ -245,14 +255,16 @@ SmBusReadDataByte (
@param Value The 8-bit value to write. @param Value The 8-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -290,14 +302,16 @@ SmBusWriteDataByte (
SMBUS Command, SMBUS Data Length, and PEC. SMBUS Command, SMBUS Data Length, and PEC.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The byte read from the SMBUS. @return The byte read from the SMBUS.
@ -335,14 +349,16 @@ SmBusReadDataWord (
@param Value The 16-bit value to write. @param Value The 16-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The parameter of Value. @return The parameter of Value.
@ -382,14 +398,16 @@ SmBusWriteDataWord (
@param Value The 16-bit value to write. @param Value The 16-bit value to write.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The 16-bit value returned by the process call command. @return The 16-bit value returned by the process call command.
@ -429,14 +447,16 @@ SmBusProcessCall (
@param Buffer The pointer to the buffer to store the bytes read from the SMBUS. @param Buffer The pointer to the buffer to store the bytes read from the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_SUCCESS The SMBUS command was executed. RETURN_SUCCESS: The SMBUS command was executed.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes read. @return The number of bytes read.
@ -473,13 +493,15 @@ SmBusReadBlock (
@param Buffer The pointer to the buffer to store the bytes read from the SMBUS. @param Buffer The pointer to the buffer to store the bytes read from the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR: The checksum is not correct (PEC is incorrect)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes written. @return The number of bytes written.
@ -523,13 +545,15 @@ SmBusWriteBlock (
@param ReadBuffer The pointer to the buffer of bytes to read from the SMBUS. @param ReadBuffer The pointer to the buffer of bytes to read from the SMBUS.
@param Status Return status for the executed command. @param Status Return status for the executed command.
This is an optional parameter and may be NULL. This is an optional parameter and may be NULL.
RETURN_TIMEOUT A timeout occurred while executing the SMBUS command. RETURN_TIMEOUT: A timeout occurred while executing the
RETURN_DEVICE_ERROR The request was not completed because a failure SMBUS command.
reflected in the Host Status Register bit. Device errors are a result RETURN_DEVICE_ERROR: The request was not completed because
of a transaction collision, illegal command field, unclaimed cycle a failure reflected in the Host Status Register bit.
(host initiated), or bus errors (collisions). Device errors are a result of a transaction collision,
RETURN_CRC_ERROR The checksum is not correct (PEC is incorrect) illegal command field, unclaimed cycle (host initiated),
RETURN_UNSUPPORTED The SMBus operation is not supported. or bus errors (collisions).
RETURN_CRC_ERROR The checksum is not correct. (PEC is incorrect.)
RETURN_UNSUPPORTED: The SMBus operation is not supported.
@return The number of bytes written. @return The number of bytes written.

View File

@ -5,7 +5,7 @@ Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

View File

@ -1242,7 +1242,7 @@ MmioAndThenOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1274,7 +1274,7 @@ MmioBitFieldRead8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1315,7 +1315,7 @@ MmioBitFieldWrite8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1356,7 +1356,7 @@ MmioBitFieldOr8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1398,7 +1398,7 @@ MmioBitFieldAnd8 (
If EndBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..7. Range 0..7.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1524,7 +1524,7 @@ MmioAndThenOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1556,7 +1556,7 @@ MmioBitFieldRead16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1597,7 +1597,7 @@ MmioBitFieldWrite16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1638,7 +1638,7 @@ MmioBitFieldOr16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1680,7 +1680,7 @@ MmioBitFieldAnd16 (
If EndBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..15. Range 0..15.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1806,7 +1806,7 @@ MmioAndThenOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1838,7 +1838,7 @@ MmioBitFieldRead32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1879,7 +1879,7 @@ MmioBitFieldWrite32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1920,7 +1920,7 @@ MmioBitFieldOr32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -1962,7 +1962,7 @@ MmioBitFieldAnd32 (
If EndBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..31. Range 0..31.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2088,7 +2088,7 @@ MmioAndThenOr64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to read. @param Address The MMIO register to read.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2120,7 +2120,7 @@ MmioBitFieldRead64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2161,7 +2161,7 @@ MmioBitFieldWrite64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2202,7 +2202,7 @@ MmioBitFieldOr64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.
@ -2244,7 +2244,7 @@ MmioBitFieldAnd64 (
If EndBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT().
If EndBit is less than StartBit, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
@param Address MMIO register to write. @param Address The MMIO register to write.
@param StartBit The ordinal of the least significant bit in the bit field. @param StartBit The ordinal of the least significant bit in the bit field.
Range 0..63. Range 0..63.
@param EndBit The ordinal of the most significant bit in the bit field. @param EndBit The ordinal of the most significant bit in the bit field.

View File

@ -222,8 +222,9 @@ MmioReadBuffer64 (
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the
data to write.
@return Buffer @return Buffer
@ -268,8 +269,9 @@ MmioWriteBuffer8 (
If Buffer is not aligned on a 16-bit boundary, then ASSERT(). If Buffer is not aligned on a 16-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the
data to write.
@return Buffer @return Buffer
@ -322,8 +324,9 @@ MmioWriteBuffer16 (
If Buffer is not aligned on a 32-bit boundary, then ASSERT(). If Buffer is not aligned on a 32-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the
data to write.
@return Buffer @return Buffer
@ -375,8 +378,9 @@ MmioWriteBuffer32 (
If Buffer is not aligned on a 64-bit boundary, then ASSERT(). If Buffer is not aligned on a 64-bit boundary, then ASSERT().
@param StartAddress The starting address for the MMIO region to be copied to. @param StartAddress The starting address for the MMIO region to be copied to.
@param Length The size in bytes of the copy. @param Length The size in bytes of the copy.
@param Buffer The pointer to a system memory buffer containing the data to write. @param Buffer The pointer to a system memory buffer containing the
data to write.
@return Buffer @return Buffer

View File

@ -51,11 +51,12 @@ TriggerRuntimeSoftwareSmi (
/** /**
Test if a boot time software SMI happened. Test if a boot time software SMI happened.
This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and This function tests if a software SMM interrupt happened. If a software SMM
it was triggered at boot time, it returns TRUE. Otherwise, it returns FALSE. interrupt happened and it was triggered at boot time, it returns TRUE. Otherwise,
it returns FALSE.
@retval TRUE A software SMI triggered at boot time happened. @retval TRUE A software SMI triggered at boot time happened.
@retval FLASE No software SMI happened or the software SMI was triggered at run time. @retval FALSE No software SMI happened or the software SMI was triggered at run time.
**/ **/
BOOLEAN BOOLEAN
@ -71,11 +72,12 @@ IsBootServiceSoftwareSmi (
/** /**
Test if a run time software SMI happened. Test if a run time software SMI happened.
This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and This function tests if a software SMM interrupt happened. If a software SMM
it was triggered at run time, it returns TRUE. Otherwise, it returns FALSE. interrupt happened and it was triggered at run time, it returns TRUE. Otherwise,
it returns FALSE.
@retval TRUE A software SMI triggered at run time happened. @retval TRUE A software SMI triggered at run time happened.
@retval FLASE No software SMI happened or the software SMI was triggered at boot time. @retval FALSE No software SMI happened or the software SMI was triggered at boot time.
**/ **/
BOOLEAN BOOLEAN

View File

@ -32,9 +32,10 @@
/** /**
Allocates one or more 4KB pages of a certain memory type. Allocates one or more 4KB pages of a certain memory type.
Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated Allocates the number of 4KB pages of a certain memory type and returns a pointer
buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned. to the allocated buffer. The buffer returned is aligned on a 4KB boundary. If
If there is not enough memory remaining to satisfy the request, then NULL is returned. Pages is 0, then NULL is returned. If there is not enough memory remaining to
satisfy the request, then NULL is returned.
@param MemoryType The type of memory to allocate. @param MemoryType The type of memory to allocate.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@ -65,10 +66,10 @@ InternalAllocatePages (
/** /**
Allocates one or more 4KB pages of type EfiBootServicesData. Allocates one or more 4KB pages of type EfiBootServicesData.
Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer
allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL to the allocated buffer. The buffer returned is aligned on a 4KB boundary. If
is returned. If there is not enough memory remaining to satisfy the request, then NULL is Pages is 0, then NULL is returned. If there is not enough memory remaining to
returned. satisfy the request, then NULL is returned.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@ -87,10 +88,10 @@ AllocatePages (
/** /**
Allocates one or more 4KB pages of type EfiRuntimeServicesData. Allocates one or more 4KB pages of type EfiRuntimeServicesData.
Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a
allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.
is returned. If there is not enough memory remaining to satisfy the request, then NULL is If Pages is 0, then NULL is returned. If there is not enough memory remaining
returned. to satisfy the request, then NULL is returned.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@ -109,10 +110,10 @@ AllocateRuntimePages (
/** /**
Allocates one or more 4KB pages of type EfiReservedMemoryType. Allocates one or more 4KB pages of type EfiReservedMemoryType.
Allocates the number of 4KB pages of type EfiReservedMemoryType and returns a pointer to the Allocates the number of 4KB pages of type EfiReservedMemoryType and returns a
allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.
is returned. If there is not enough memory remaining to satisfy the request, then NULL is If Pages is 0, then NULL is returned. If there is not enough memory remaining
returned. to satisfy the request, then NULL is returned.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@ -132,13 +133,13 @@ AllocateReservedPages (
Frees one or more 4KB pages that were previously allocated with one of the page allocation Frees one or more 4KB pages that were previously allocated with one of the page allocation
functions in the Memory Allocation Library. functions in the Memory Allocation Library.
Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer. Buffer Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer.
must have been allocated on a previous call to the page allocation services of the Memory Buffer must have been allocated on a previous call to the page allocation services
Allocation Library. If it is not possible to free allocated pages, then this function will of the Memory Allocation Library. If it is not possible to free allocated pages,
perform no actions. then this function will perform no actions.
If Buffer was not allocated with a page allocation function in the Memory Allocation Library, If Buffer was not allocated with a page allocation function in the Memory Allocation
then ASSERT(). Library, then ASSERT().
If Pages is zero, then ASSERT(). If Pages is zero, then ASSERT().
@param Buffer The pointer to the buffer of pages to free. @param Buffer The pointer to the buffer of pages to free.
@ -162,15 +163,16 @@ FreePages (
/** /**
Allocates one or more 4KB pages of a certain memory type at a specified alignment. Allocates one or more 4KB pages of a certain memory type at a specified alignment.
Allocates the number of 4KB pages specified by Pages of a certain memory type with an alignment Allocates the number of 4KB pages specified by Pages of a certain memory type
specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is returned. with an alignment specified by Alignment. The allocated buffer is returned.
If there is not enough memory at the specified alignment remaining to satisfy the request, then If Pages is 0, then NULL is returned. If there is not enough memory at the
NULL is returned. specified alignment remaining to satisfy the request, then NULL is returned.
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param MemoryType The type of memory to allocate. @param MemoryType The type of memory to allocate.
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -247,15 +249,16 @@ InternalAllocateAlignedPages (
/** /**
Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment. Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment.
Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData
alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is with an alignment specified by Alignment. The allocated buffer is returned.
returned. If there is not enough memory at the specified alignment remaining to satisfy the If Pages is 0, then NULL is returned. If there is not enough memory at the
request, then NULL is returned. specified alignment remaining to satisfy the request, then NULL is returned.
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -274,15 +277,16 @@ AllocateAlignedPages (
/** /**
Allocates one or more 4KB pages of type EfiRuntimeServicesData at a specified alignment. Allocates one or more 4KB pages of type EfiRuntimeServicesData at a specified alignment.
Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData
alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is with an alignment specified by Alignment. The allocated buffer is returned.
returned. If there is not enough memory at the specified alignment remaining to satisfy the If Pages is 0, then NULL is returned. If there is not enough memory at the
request, then NULL is returned. specified alignment remaining to satisfy the request, then NULL is returned.
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -301,15 +305,16 @@ AllocateAlignedRuntimePages (
/** /**
Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment. Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.
Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType with an Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType
alignment specified by Alignment. The allocated buffer is returned. If Pages is 0, then NULL is with an alignment specified by Alignment. The allocated buffer is returned.
returned. If there is not enough memory at the specified alignment remaining to satisfy the If Pages is 0, then NULL is returned. If there is not enough memory at the
request, then NULL is returned. specified alignment remaining to satisfy the request, then NULL is returned.
If Alignment is not a power of two and Alignment is not zero, then ASSERT(). If Alignment is not a power of two and Alignment is not zero, then ASSERT().
@param Pages The number of 4 KB pages to allocate. @param Pages The number of 4 KB pages to allocate.
@param Alignment The requested alignment of the allocation. Must be a power of two. @param Alignment The requested alignment of the allocation.
Must be a power of two.
If Alignment is zero, then byte alignment is used. If Alignment is zero, then byte alignment is used.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -329,13 +334,13 @@ AllocateAlignedReservedPages (
Frees one or more 4KB pages that were previously allocated with one of the aligned page Frees one or more 4KB pages that were previously allocated with one of the aligned page
allocation functions in the Memory Allocation Library. allocation functions in the Memory Allocation Library.
Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer. Buffer Frees the number of 4KB pages specified by Pages from the buffer specified by
must have been allocated on a previous call to the aligned page allocation services of the Memory Buffer. Buffer must have been allocated on a previous call to the aligned page
Allocation Library. If it is not possible to free allocated pages, then this function will allocation services of the Memory Allocation Library. If it is not possible to
perform no actions. free allocated pages, then this function will perform no actions.
If Buffer was not allocated with an aligned page allocation function in the Memory Allocation If Buffer was not allocated with an aligned page allocation function in the
Library, then ASSERT(). Memory Allocation Library, then ASSERT().
If Pages is zero, then ASSERT(). If Pages is zero, then ASSERT().
@param Buffer The pointer to the buffer of pages to free. @param Buffer The pointer to the buffer of pages to free.
@ -359,9 +364,10 @@ FreeAlignedPages (
/** /**
Allocates a buffer of a certain pool type. Allocates a buffer of a certain pool type.
Allocates the number bytes specified by AllocationSize of a certain pool type and returns a Allocates the number bytes specified by AllocationSize of a certain pool type
pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. valid buffer of 0 size is returned. If there is not enough memory remaining to
satisfy the request, then NULL is returned.
@param MemoryType The type of memory to allocate. @param MemoryType The type of memory to allocate.
@param AllocationSize The number of bytes to allocate. @param AllocationSize The number of bytes to allocate.
@ -388,9 +394,10 @@ InternalAllocatePool (
/** /**
Allocates a buffer of type EfiBootServicesData. Allocates a buffer of type EfiBootServicesData.
Allocates the number bytes specified by AllocationSize of type EfiBootServicesData and returns a Allocates the number bytes specified by AllocationSize of type EfiBootServicesData
pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. valid buffer of 0 size is returned. If there is not enough memory remaining to
satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate. @param AllocationSize The number of bytes to allocate.
@ -409,9 +416,10 @@ AllocatePool (
/** /**
Allocates a buffer of type EfiRuntimeServicesData. Allocates a buffer of type EfiRuntimeServicesData.
Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData and returns Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData
a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. valid buffer of 0 size is returned. If there is not enough memory remaining to
satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate. @param AllocationSize The number of bytes to allocate.
@ -430,9 +438,10 @@ AllocateRuntimePool (
/** /**
Allocates a buffer of type EfiReservedMemoryType. Allocates a buffer of type EfiReservedMemoryType.
Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType and returns Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType
a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. valid buffer of 0 size is returned. If there is not enough memory remaining to
satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate. @param AllocationSize The number of bytes to allocate.
@ -451,10 +460,10 @@ AllocateReservedPool (
/** /**
Allocates and zeros a buffer of a certain pool type. Allocates and zeros a buffer of a certain pool type.
Allocates the number bytes specified by AllocationSize of a certain pool type, clears the buffer Allocates the number bytes specified by AllocationSize of a certain pool type,
with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid clears the buffer with zeros, and returns a pointer to the allocated buffer.
buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is
then NULL is returned. not enough memory remaining to satisfy the request, then NULL is returned.
@param PoolType The type of memory to allocate. @param PoolType The type of memory to allocate.
@param AllocationSize The number of bytes to allocate and zero. @param AllocationSize The number of bytes to allocate and zero.
@ -480,10 +489,10 @@ InternalAllocateZeroPool (
/** /**
Allocates and zeros a buffer of type EfiBootServicesData. Allocates and zeros a buffer of type EfiBootServicesData.
Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the Allocates the number bytes specified by AllocationSize of type EfiBootServicesData,
buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a clears the buffer with zeros, and returns a pointer to the allocated buffer.
valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is
request, then NULL is returned. not enough memory remaining to satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate and zero. @param AllocationSize The number of bytes to allocate and zero.
@ -502,10 +511,10 @@ AllocateZeroPool (
/** /**
Allocates and zeros a buffer of type EfiRuntimeServicesData. Allocates and zeros a buffer of type EfiRuntimeServicesData.
Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, clears the Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData,
buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a clears the buffer with zeros, and returns a pointer to the allocated buffer.
valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is
request, then NULL is returned. not enough memory remaining to satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate and zero. @param AllocationSize The number of bytes to allocate and zero.
@ -524,10 +533,10 @@ AllocateRuntimeZeroPool (
/** /**
Allocates and zeros a buffer of type EfiReservedMemoryType. Allocates and zeros a buffer of type EfiReservedMemoryType.
Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, clears the Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType,
buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a clears the buffer with zeros, and returns a pointer to the allocated buffer.
valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is
request, then NULL is returned. not enough memory remaining to satisfy the request, then NULL is returned.
@param AllocationSize The number of bytes to allocate and zero. @param AllocationSize The number of bytes to allocate and zero.
@ -546,11 +555,11 @@ AllocateReservedZeroPool (
/** /**
Copies a buffer to an allocated buffer of a certain pool type. Copies a buffer to an allocated buffer of a certain pool type.
Allocates the number bytes specified by AllocationSize of a certain pool type, copies Allocates the number bytes specified by AllocationSize of a certain pool type,
AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the copies AllocationSize bytes from Buffer to the newly allocated buffer, and returns
allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer
is not enough memory remaining to satisfy the request, then NULL is returned. of 0 size is returned. If there is not enough memory remaining to satisfy the
If Buffer is NULL, then ASSERT(). request, then NULL is returned. If Buffer is NULL, then ASSERT().
If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@param PoolType The type of pool to allocate. @param PoolType The type of pool to allocate.
@ -582,10 +591,11 @@ InternalAllocateCopyPool (
/** /**
Copies a buffer to an allocated buffer of type EfiBootServicesData. Copies a buffer to an allocated buffer of type EfiBootServicesData.
Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, copies Allocates the number bytes specified by AllocationSize of type EfiBootServicesData,
AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the copies AllocationSize bytes from Buffer to the newly allocated buffer, and returns
allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer
is not enough memory remaining to satisfy the request, then NULL is returned. of 0 size is returned. If there is not enough memory remaining to satisfy the
request, then NULL is returned.
If Buffer is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().
If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@ -609,10 +619,11 @@ AllocateCopyPool (
/** /**
Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. Copies a buffer to an allocated buffer of type EfiRuntimeServicesData.
Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData, copies Allocates the number bytes specified by AllocationSize of type EfiRuntimeServicesData,
AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the copies AllocationSize bytes from Buffer to the newly allocated buffer, and returns
allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer
is not enough memory remaining to satisfy the request, then NULL is returned. of 0 size is returned. If there is not enough memory remaining to satisfy the
request, then NULL is returned.
If Buffer is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().
If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@ -636,10 +647,11 @@ AllocateRuntimeCopyPool (
/** /**
Copies a buffer to an allocated buffer of type EfiReservedMemoryType. Copies a buffer to an allocated buffer of type EfiReservedMemoryType.
Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType, copies Allocates the number bytes specified by AllocationSize of type EfiReservedMemoryType,
AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the copies AllocationSize bytes from Buffer to the newly allocated buffer, and returns
allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer
is not enough memory remaining to satisfy the request, then NULL is returned. of 0 size is returned. If there is not enough memory remaining to satisfy the
request, then NULL is returned.
If Buffer is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().
If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@ -670,14 +682,14 @@ AllocateReservedCopyPool (
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned. enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize If the allocation of the new buffer is successful and the smaller of NewSize
is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
@param PoolType The type of pool to allocate. @param PoolType The type of pool to allocate.
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -710,13 +722,13 @@ InternalReallocatePool (
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned. enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize If the allocation of the new buffer is successful and the smaller of NewSize
is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -736,19 +748,19 @@ ReallocatePool (
Reallocates a buffer of type EfiRuntimeServicesData. Reallocates a buffer of type EfiRuntimeServicesData.
Allocates and zeros the number bytes specified by NewSize from memory of type Allocates and zeros the number bytes specified by NewSize from memory of type
EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize and EfiRuntimeServicesData. If OldBuffer is not NULL, then the smaller of OldSize
NewSize bytes are copied from OldBuffer to the newly allocated buffer, and and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
OldBuffer is freed. A pointer to the newly allocated buffer is returned. OldBuffer is freed. A pointer to the newly allocated buffer is returned.
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned. enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize If the allocation of the new buffer is successful and the smaller of NewSize
is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -768,19 +780,19 @@ ReallocateRuntimePool (
Reallocates a buffer of type EfiReservedMemoryType. Reallocates a buffer of type EfiReservedMemoryType.
Allocates and zeros the number bytes specified by NewSize from memory of type Allocates and zeros the number bytes specified by NewSize from memory of type
EfiReservedMemoryType. If OldBuffer is not NULL, then the smaller of OldSize and EfiReservedMemoryType. If OldBuffer is not NULL, then the smaller of OldSize
NewSize bytes are copied from OldBuffer to the newly allocated buffer, and and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
OldBuffer is freed. A pointer to the newly allocated buffer is returned. OldBuffer is freed. A pointer to the newly allocated buffer is returned.
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned. enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize If the allocation of the new buffer is successful and the smaller of NewSize
is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT(). and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
@param OldSize The size, in bytes, of OldBuffer. @param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate. @param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional @param OldBuffer The buffer to copy to the allocated buffer. This is an
parameter that may be NULL. optional parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails. @return A pointer to the allocated buffer or NULL if allocation fails.
@ -797,15 +809,16 @@ ReallocateReservedPool (
} }
/** /**
Frees a buffer that was previously allocated with one of the pool allocation functions in the Frees a buffer that was previously allocated with one of the pool allocation
Memory Allocation Library. functions in the Memory Allocation Library.
Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the Frees the buffer specified by Buffer. Buffer must have been allocated on a
pool allocation services of the Memory Allocation Library. If it is not possible to free pool previous call to the pool allocation services of the Memory Allocation Library.
resources, then this function will perform no actions. If it is not possible to free pool resources, then this function will perform
no actions.
If Buffer was not allocated with a pool allocation function in the Memory Allocation Library, If Buffer was not allocated with a pool allocation function in the Memory
then ASSERT(). Allocation Library, then ASSERT().
@param Buffer The pointer to the buffer to free. @param Buffer The pointer to the buffer to free.

View File

@ -83,7 +83,7 @@ PciLibConstructor (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to read @param Width The width of data to read
@return The value read from the PCI configuration register. @return The value read from the PCI configuration register.
@ -117,7 +117,7 @@ SmmPciLibPciRootBridgeIoReadWorker (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to write @param Width The width of data to write
@param Data The value to write. @param Data The value to write.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.

View File

@ -1,11 +1,11 @@
/** @file /** @file
Entry point library instance to a UEFI application. Entry point library instance to a UEFI application.
Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -26,8 +26,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than _gUefiDriverRevison, If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than _gUefiDriverRevison,
then return EFI_INCOMPATIBLE_VERSION. then return EFI_INCOMPATIBLE_VERSION.
@param ImageHandle The image handle of the UEFI Application. @param ImageHandle The image handle of the UEFI Application.
@param SystemTable A pointer to the EFI System Table. @param SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS The UEFI Application exited normally. @retval EFI_SUCCESS The UEFI Application exited normally.
@retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision. @retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision.

View File

@ -37,7 +37,7 @@
@param ErrorLevel The error level of the debug message. @param ErrorLevel The error level of the debug message.
@param Format Format string for the debug message to print. @param Format Format string for the debug message to print.
@param ... Variable argument list whose contents are accessed @param ... A variable argument list whose contents are accessed
based on the format string specified by Format. based on the format string specified by Format.
**/ **/
@ -97,8 +97,10 @@ DebugPrint (
If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed. If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.
If Description is NULL, then a <Description> string of "(NULL) Description" is printed. If Description is NULL, then a <Description> string of "(NULL) Description" is printed.
@param FileName The pointer to the name of the source file that generated the assert condition. @param FileName The pointer to the name of the source file that generated
@param LineNumber The line number in the source file that generated the assert condition the assert condition.
@param LineNumber The line number in the source file that generated the
assert condition
@param Description The pointer to the description of the assert condition. @param Description The pointer to the description of the assert condition.
**/ **/

View File

@ -38,8 +38,8 @@
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
@param ErrorLevel The error level of the debug message. @param ErrorLevel The error level of the debug message.
@param Format Format string for the debug message to print. @param Format The format string for the debug message to print.
@param ... Variable argument list whose contents are accessed @param ... The variable argument list whose contents are accessed
based on the format string specified by Format. based on the format string specified by Format.
**/ **/
@ -98,8 +98,10 @@ DebugPrint (
If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed. If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.
If Description is NULL, then a <Description> string of "(NULL) Description" is printed. If Description is NULL, then a <Description> string of "(NULL) Description" is printed.
@param FileName The pointer to the name of the source file that generated the assert condition. @param FileName The pointer to the name of the source file that generated
@param LineNumber The line number in the source file that generated the assert condition the assert condition.
@param LineNumber The line number in the source file that generated the
assert condition
@param Description The pointer to the description of the assert condition. @param Description The pointer to the description of the assert condition.
**/ **/

View File

@ -8,7 +8,7 @@
environment varibles. Multi-instance device paths should never be placed environment varibles. Multi-instance device paths should never be placed
on a Handle. on a Handle.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -113,13 +113,15 @@ DevicePathNodeLength (
/** /**
Returns a pointer to the next node in a device path. Returns a pointer to the next node in a device path.
Returns a pointer to the device path node that follows the device path node specified by Node. Returns a pointer to the device path node that follows the device path node
specified by Node.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@return a pointer to the device path node that follows the device path node specified by Node. @return a pointer to the device path node that follows the device path node
specified by Node.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -134,7 +136,8 @@ NextDevicePathNode (
/** /**
Determines if a device path node is an end node of a device path. Determines if a device path node is an end node of a device path.
This includes nodes that are the end of a device path instance and nodes that are the end of an entire device path. This includes nodes that are the end of a device path instance and nodes that
are the end of an entire device path.
Determines if the device path node specified by Node is an end node of a device path. Determines if the device path node specified by Node is an end node of a device path.
This includes nodes that are the end of a device path instance and nodes that are the This includes nodes that are the end of a device path instance and nodes that are the
@ -145,8 +148,10 @@ NextDevicePathNode (
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@retval TRUE The device path node specified by Node is an end node of a device path. @retval TRUE The device path node specified by Node is an end node of a
@retval FALSE The device path node specified by Node is not an end node of a device path. device path.
@retval FALSE The device path node specified by Node is not an end node of
a device path.
**/ **/
BOOLEAN BOOLEAN
@ -162,15 +167,18 @@ IsDevicePathEndType (
/** /**
Determines if a device path node is an end node of an entire device path. Determines if a device path node is an end node of an entire device path.
Determines if a device path node specified by Node is an end node of an entire device path. Determines if a device path node specified by Node is an end node of an entire
If Node represents the end of an entire device path, then TRUE is returned. Otherwise, FALSE is returned. device path. If Node represents the end of an entire device path, then TRUE is
returned. Otherwise, FALSE is returned.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@retval TRUE The device path node specified by Node is the end of an entire device path. @retval TRUE The device path node specified by Node is the end of an entire
@retval FALSE The device path node specified by Node is not the end of an entire device path. device path.
@retval FALSE The device path node specified by Node is not the end of an
entire device path.
**/ **/
BOOLEAN BOOLEAN
@ -186,15 +194,18 @@ IsDevicePathEnd (
/** /**
Determines if a device path node is an end node of a device path instance. Determines if a device path node is an end node of a device path instance.
Determines if a device path node specified by Node is an end node of a device path instance. Determines if a device path node specified by Node is an end node of a device
If Node represents the end of a device path instance, then TRUE is returned. Otherwise, FALSE is returned. path instance. If Node represents the end of a device path instance, then TRUE
is returned. Otherwise, FALSE is returned.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@retval TRUE The device path node specified by Node is the end of a device path instance. @retval TRUE The device path node specified by Node is the end of a device
@retval FALSE The device path node specified by Node is not the end of a device path instance. path instance.
@retval FALSE The device path node specified by Node is not the end of a
device path instance.
**/ **/
BOOLEAN BOOLEAN
@ -265,13 +276,14 @@ SetDevicePathEndNode (
/** /**
Returns the size of a device path in bytes. Returns the size of a device path in bytes.
This function returns the size, in bytes, of the device path data structure specified by This function returns the size, in bytes, of the device path data structure
DevicePath including the end of device path node. If DevicePath is NULL, then 0 is returned. specified by DevicePath including the end of device path node. If DevicePath
is NULL, then 0 is returned.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@retval 0 If DevicePath is NULL. @retval 0 If DevicePath is NULL.
@retval Others The size of a device path in bytes. @retval Others The size of a device path in bytes.
**/ **/
UINTN UINTN
@ -303,17 +315,17 @@ GetDevicePathSize (
/** /**
Creates a new copy of an existing device path. Creates a new copy of an existing device path.
This function allocates space for a new copy of the device path specified by DevicePath. If This function allocates space for a new copy of the device path specified by DevicePath.
DevicePath is NULL, then NULL is returned. If the memory is successfully allocated, then the If DevicePath is NULL, then NULL is returned. If the memory is successfully
contents of DevicePath are copied to the newly allocated buffer, and a pointer to that buffer allocated, then the contents of DevicePath are copied to the newly allocated
is returned. Otherwise, NULL is returned. buffer, and a pointer to that buffer is returned. Otherwise, NULL is returned.
The memory for the new device path is allocated from EFI boot services memory. The memory for the new device path is allocated from EFI boot services memory.
It is the responsibility of the caller to free the memory allocated. It is the responsibility of the caller to free the memory allocated.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@retval NULL If DevicePath is NULL. @retval NULL If DevicePath is NULL.
@retval Others A pointer to the duplicated device path. @retval Others A pointer to the duplicated device path.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -342,16 +354,17 @@ DuplicateDevicePath (
/** /**
Creates a new device path by appending a second device path to a first device path. Creates a new device path by appending a second device path to a first device path.
This function creates a new device path by appending a copy of SecondDevicePath to a copy of This function creates a new device path by appending a copy of SecondDevicePath
FirstDevicePath in a newly allocated buffer. Only the end-of-device-path device node from to a copy of FirstDevicePath in a newly allocated buffer. Only the end-of-device-path
SecondDevicePath is retained. The newly created device path is returned. device node from SecondDevicePath is retained. The newly created device path is
If FirstDevicePath is NULL, then it is ignored, and a duplicate of SecondDevicePath is returned. returned. If FirstDevicePath is NULL, then it is ignored, and a duplicate of
If SecondDevicePath is NULL, then it is ignored, and a duplicate of FirstDevicePath is returned. SecondDevicePath is returned. If SecondDevicePath is NULL, then it is ignored,
If both FirstDevicePath and SecondDevicePath are NULL, then a copy of an end-of-device-path is and a duplicate of FirstDevicePath is returned. If both FirstDevicePath and
returned. SecondDevicePath are NULL, then a copy of an end-of-device-path is returned.
If there is not enough memory for the newly allocated buffer, then NULL is returned. If there is not enough memory for the newly allocated buffer, then NULL is returned.
The memory for the new device path is allocated from EFI boot services memory. It is the The memory for the new device path is allocated from EFI boot services memory.
responsibility of the caller to free the memory allocated. It is the responsibility of the caller to free the memory allocated.
@param FirstDevicePath A pointer to a device path data structure. @param FirstDevicePath A pointer to a device path data structure.
@param SecondDevicePath A pointer to a device path data structure. @param SecondDevicePath A pointer to a device path data structure.
@ -411,17 +424,19 @@ AppendDevicePath (
/** /**
Creates a new path by appending the device node to the device path. Creates a new path by appending the device node to the device path.
This function creates a new device path by appending a copy of the device node specified by This function creates a new device path by appending a copy of the device node
DevicePathNode to a copy of the device path specified by DevicePath in an allocated buffer. specified by DevicePathNode to a copy of the device path specified by DevicePath
The end-of-device-path device node is moved after the end of the appended device node. in an allocated buffer. The end-of-device-path device node is moved after the
end of the appended device node.
If DevicePathNode is NULL then a copy of DevicePath is returned. If DevicePathNode is NULL then a copy of DevicePath is returned.
If DevicePath is NULL then a copy of DevicePathNode, followed by an end-of-device path device If DevicePath is NULL then a copy of DevicePathNode, followed by an end-of-device
node is returned. path device node is returned.
If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path device node If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path
is returned. device node is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@param DevicePathNode A pointer to a single device path node. @param DevicePathNode A pointer to a single device path node.
@ -430,7 +445,8 @@ AppendDevicePath (
@retval Others A pointer to the new device path if success. @retval Others A pointer to the new device path if success.
A copy of DevicePathNode followed by an end-of-device-path node A copy of DevicePathNode followed by an end-of-device-path node
if both FirstDevicePath and SecondDevicePath are NULL. if both FirstDevicePath and SecondDevicePath are NULL.
A copy of an end-of-device-path node if both FirstDevicePath and SecondDevicePath are NULL. A copy of an end-of-device-path node if both FirstDevicePath
and SecondDevicePath are NULL.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -477,15 +493,17 @@ AppendDevicePathNode (
Creates a new device path by appending the specified device path instance to the specified device Creates a new device path by appending the specified device path instance to the specified device
path. path.
This function creates a new device path by appending a copy of the device path instance specified This function creates a new device path by appending a copy of the device path
by DevicePathInstance to a copy of the device path secified by DevicePath in a allocated buffer. instance specified by DevicePathInstance to a copy of the device path specified
The end-of-device-path device node is moved after the end of the appended device path instance by DevicePath in a allocated buffer.
and a new end-of-device-path-instance node is inserted between. The end-of-device-path device node is moved after the end of the appended device
path instance and a new end-of-device-path-instance node is inserted between.
If DevicePath is NULL, then a copy if DevicePathInstance is returned. If DevicePath is NULL, then a copy if DevicePathInstance is returned.
If DevicePathInstance is NULL, then NULL is returned. If DevicePathInstance is NULL, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@param DevicePathInstance A pointer to a device path instance. @param DevicePathInstance A pointer to a device path instance.
@ -537,22 +555,25 @@ AppendDevicePathInstance (
Creates a copy of the current device path instance and returns a pointer to the next device path Creates a copy of the current device path instance and returns a pointer to the next device path
instance. instance.
This function creates a copy of the current device path instance. It also updates DevicePath to This function creates a copy of the current device path instance. It also updates
point to the next device path instance in the device path (or NULL if no more) and updates Size DevicePath to point to the next device path instance in the device path (or NULL
to hold the size of the device path instance copy. if no more) and updates Size to hold the size of the device path instance copy.
If DevicePath is NULL, then NULL is returned. If DevicePath is NULL, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param DevicePath On input, this holds the pointer to the current device path @param DevicePath On input, this holds the pointer to the current
instance. On output, this holds the pointer to the next device device path instance. On output, this holds
path instance or NULL if there are no more device path the pointer to the next device path instance
instances in the device path pointer to a device path data or NULL if there are no more device path
structure. instances in the device path pointer to a
@param Size On output, this holds the size of the device path instance, in device path data structure.
bytes or zero, if DevicePath is NULL. @param Size On output, this holds the size of the device
path instance, in bytes or zero, if DevicePath
is NULL.
@return A pointer to the current device path instance. @return A pointer to the current device path instance.
@ -612,13 +633,14 @@ GetNextDevicePathInstance (
/** /**
Creates a device node. Creates a device node.
This function creates a new device node in a newly allocated buffer of size NodeLength and This function creates a new device node in a newly allocated buffer of size
initializes the device path node header with NodeType and NodeSubType. The new device path node NodeLength and initializes the device path node header with NodeType and NodeSubType.
is returned. The new device path node is returned.
If NodeLength is smaller than a device path header, then NULL is returned. If NodeLength is smaller than a device path header, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
@param NodeType The device node type for the new device node. @param NodeType The device node type for the new device node.
@param NodeSubType The device node sub-type for the new device node. @param NodeSubType The device node sub-type for the new device node.
@ -657,13 +679,15 @@ CreateDeviceNode (
/** /**
Determines if a device path is single or multi-instance. Determines if a device path is single or multi-instance.
This function returns TRUE if the device path specified by DevicePath is multi-instance. This function returns TRUE if the device path specified by DevicePath is
multi-instance.
Otherwise, FALSE is returned. If DevicePath is NULL, then FALSE is returned. Otherwise, FALSE is returned. If DevicePath is NULL, then FALSE is returned.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@retval TRUE DevicePath is multi-instance. @retval TRUE DevicePath is multi-instance.
@retval FALSE DevicePath is not multi-instance or DevicePath is NULL. @retval FALSE DevicePath is not multi-instance or DevicePath
is NULL.
**/ **/
BOOLEAN BOOLEAN
@ -694,10 +718,12 @@ IsDevicePathMultiInstance (
/** /**
Retrieves the device path protocol from a handle. Retrieves the device path protocol from a handle.
This function returns the device path protocol from the handle specified by Handle. If Handle is This function returns the device path protocol from the handle specified by Handle.
NULL or Handle does not contain a device path protocol, then NULL is returned. If Handle is NULL or Handle does not contain a device path protocol, then NULL
is returned.
@param Handle The handle from which to retrieve the device path protocol. @param Handle The handle from which to retrieve the device
path protocol.
@return The device path protocol from the handle specified by Handle. @return The device path protocol from the handle specified by Handle.
@ -736,8 +762,8 @@ DevicePathFromHandle (
If FileName is NULL, then ASSERT(). If FileName is NULL, then ASSERT().
If FileName is not aligned on a 16-bit boundary, then ASSERT(). If FileName is not aligned on a 16-bit boundary, then ASSERT().
@param Device A pointer to a device handle. This parameter is optional and @param Device A pointer to a device handle. This parameter
may be NULL. is optional and may be NULL.
@param FileName A pointer to a Null-terminated Unicode string. @param FileName A pointer to a Null-terminated Unicode string.
@return The allocated device path. @return The allocated device path.

View File

@ -2,7 +2,7 @@
Library instance that implement UEFI Device Path Library class based on protocol Library instance that implement UEFI Device Path Library class based on protocol
gEfiDevicePathUtilitiesProtocolGuid. gEfiDevicePathUtilitiesProtocolGuid.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -143,13 +143,15 @@ DevicePathNodeLength (
/** /**
Returns a pointer to the next node in a device path. Returns a pointer to the next node in a device path.
Returns a pointer to the device path node that follows the device path node specified by Node. Returns a pointer to the device path node that follows the device path node
specified by Node.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@return a pointer to the device path node that follows the device path node specified by Node. @return a pointer to the device path node that follows the device path node
specified by Node.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -164,7 +166,8 @@ NextDevicePathNode (
/** /**
Determines if a device path node is an end node of a device path. Determines if a device path node is an end node of a device path.
This includes nodes that are the end of a device path instance and nodes that are the end of an entire device path. This includes nodes that are the end of a device path instance and nodes that
are the end of an entire device path.
Determines if the device path node specified by Node is an end node of a device path. Determines if the device path node specified by Node is an end node of a device path.
This includes nodes that are the end of a device path instance and nodes that are the This includes nodes that are the end of a device path instance and nodes that are the
@ -176,7 +179,8 @@ NextDevicePathNode (
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@retval TRUE The device path node specified by Node is an end node of a device path. @retval TRUE The device path node specified by Node is an end node of a device path.
@retval FALSE The device path node specified by Node is not an end node of a device path. @retval FALSE The device path node specified by Node is not an end node of
a device path.
**/ **/
BOOLEAN BOOLEAN
@ -192,8 +196,10 @@ IsDevicePathEndType (
/** /**
Determines if a device path node is an end node of an entire device path. Determines if a device path node is an end node of an entire device path.
Determines if a device path node specified by Node is an end node of an entire device path. Determines if a device path node specified by Node is an end node of an entire
If Node represents the end of an entire device path, then TRUE is returned. Otherwise, FALSE is returned. device path.
If Node represents the end of an entire device path, then TRUE is returned.
Otherwise, FALSE is returned.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@ -216,15 +222,19 @@ IsDevicePathEnd (
/** /**
Determines if a device path node is an end node of a device path instance. Determines if a device path node is an end node of a device path instance.
Determines if a device path node specified by Node is an end node of a device path instance. Determines if a device path node specified by Node is an end node of a device
If Node represents the end of a device path instance, then TRUE is returned. Otherwise, FALSE is returned. path instance.
If Node represents the end of a device path instance, then TRUE is returned.
Otherwise, FALSE is returned.
If Node is NULL, then ASSERT(). If Node is NULL, then ASSERT().
@param Node A pointer to a device path node data structure. @param Node A pointer to a device path node data structure.
@retval TRUE The device path node specified by Node is the end of a device path instance. @retval TRUE The device path node specified by Node is the end of a device
@retval FALSE The device path node specified by Node is not the end of a device path instance. path instance.
@retval FALSE The device path node specified by Node is not the end of a
device path instance.
**/ **/
BOOLEAN BOOLEAN
@ -316,8 +326,9 @@ GetDevicePathSize (
/** /**
Creates a new copy of an existing device path. Creates a new copy of an existing device path.
This function allocates space for a new copy of the device path specified by DevicePath. If This function allocates space for a new copy of the device path specified by
DevicePath is NULL, then NULL is returned. If the memory is successfully allocated, then the DevicePath. If DevicePath is NULL, then NULL is returned.
If the memory is successfully allocated, then the
contents of DevicePath are copied to the newly allocated buffer, and a pointer to that buffer contents of DevicePath are copied to the newly allocated buffer, and a pointer to that buffer
is returned. Otherwise, NULL is returned. is returned. Otherwise, NULL is returned.
The memory for the new device path is allocated from EFI boot services memory. The memory for the new device path is allocated from EFI boot services memory.
@ -357,7 +368,8 @@ DuplicateDevicePath (
@retval NULL If there is not enough memory for the newly allocated buffer. @retval NULL If there is not enough memory for the newly allocated buffer.
@retval Others A pointer to the new device path if success. @retval Others A pointer to the new device path if success.
Or a copy an end-of-device-path if both FirstDevicePath and SecondDevicePath are NULL. Or a copy an end-of-device-path if both FirstDevicePath and
SecondDevicePath are NULL.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -373,17 +385,19 @@ AppendDevicePath (
/** /**
Creates a new path by appending the device node to the device path. Creates a new path by appending the device node to the device path.
This function creates a new device path by appending a copy of the device node specified by This function creates a new device path by appending a copy of the device node
DevicePathNode to a copy of the device path specified by DevicePath in an allocated buffer. specified by DevicePathNode to a copy of the device path specified by DevicePath
in an allocated buffer.
The end-of-device-path device node is moved after the end of the appended device node. The end-of-device-path device node is moved after the end of the appended device node.
If DevicePathNode is NULL then a copy of DevicePath is returned. If DevicePathNode is NULL then a copy of DevicePath is returned.
If DevicePath is NULL then a copy of DevicePathNode, followed by an end-of-device path device If DevicePath is NULL then a copy of DevicePathNode, followed by an end-of-device
node is returned. path device node is returned.
If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path device node If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path
is returned. device node is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@param DevicePathNode A pointer to a single device path node. @param DevicePathNode A pointer to a single device path node.
@ -392,7 +406,8 @@ AppendDevicePath (
@retval Others A pointer to the new device path if success. @retval Others A pointer to the new device path if success.
A copy of DevicePathNode followed by an end-of-device-path node A copy of DevicePathNode followed by an end-of-device-path node
if both FirstDevicePath and SecondDevicePath are NULL. if both FirstDevicePath and SecondDevicePath are NULL.
A copy of an end-of-device-path node if both FirstDevicePath and SecondDevicePath are NULL. A copy of an end-of-device-path node if both FirstDevicePath
and SecondDevicePath are NULL.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
@ -406,18 +421,20 @@ AppendDevicePathNode (
} }
/** /**
Creates a new device path by appending the specified device path instance to the specified device Creates a new device path by appending the specified device path instance to
path. the specified device path.
This function creates a new device path by appending a copy of the device path instance specified This function creates a new device path by appending a copy of the device path
by DevicePathInstance to a copy of the device path secified by DevicePath in a allocated buffer. instance specified by DevicePathInstance to a copy of the device path specified
The end-of-device-path device node is moved after the end of the appended device path instance by DevicePath in a allocated buffer.
and a new end-of-device-path-instance node is inserted between. The end-of-device-path device node is moved after the end of the appended device
path instance and a new end-of-device-path-instance node is inserted between.
If DevicePath is NULL, then a copy if DevicePathInstance is returned. If DevicePath is NULL, then a copy if DevicePathInstance is returned.
If DevicePathInstance is NULL, then NULL is returned. If DevicePathInstance is NULL, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@param DevicePathInstance A pointer to a device path instance. @param DevicePathInstance A pointer to a device path instance.
@ -436,25 +453,28 @@ AppendDevicePathInstance (
} }
/** /**
Creates a copy of the current device path instance and returns a pointer to the next device path Creates a copy of the current device path instance and returns a pointer to the
instance. next device path instance.
This function creates a copy of the current device path instance. It also updates DevicePath to This function creates a copy of the current device path instance. It also updates
point to the next device path instance in the device path (or NULL if no more) and updates Size DevicePath to point to the next device path instance in the device path (or NULL
to hold the size of the device path instance copy. if no more) and updates Size to hold the size of the device path instance copy.
If DevicePath is NULL, then NULL is returned. If DevicePath is NULL, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
free the memory allocated. The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to free the memory allocated.
If Size is NULL, then ASSERT(). If Size is NULL, then ASSERT().
@param DevicePath On input, this holds the pointer to the current device path @param DevicePath On input, this holds the pointer to the current
instance. On output, this holds the pointer to the next device device path instance. On output, this holds
path instance or NULL if there are no more device path the pointer to the next device path instance
instances in the device path pointer to a device path data or NULL if there are no more device path
structure. instances in the device path pointer to a
@param Size On output, this holds the size of the device path instance, in device path data structure.
bytes or zero, if DevicePath is NULL. @param Size On output, this holds the size of the device
path instance, in bytes or zero, if DevicePath
is NULL.
@return A pointer to the current device path instance. @return A pointer to the current device path instance.
@ -473,12 +493,14 @@ GetNextDevicePathInstance (
/** /**
Creates a device node. Creates a device node.
This function creates a new device node in a newly allocated buffer of size NodeLength and This function creates a new device node in a newly allocated buffer of size
initializes the device path node header with NodeType and NodeSubType. The new device path node NodeLength and initializes the device path node header with NodeType and NodeSubType.
is returned. The new device path node is returned.
If NodeLength is smaller than a device path header, then NULL is returned. If NodeLength is smaller than a device path header, then NULL is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned. If there is not enough memory to allocate space for the new device path, then
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to NULL is returned.
The memory is allocated from EFI boot services memory. It is the responsibility
of the caller to
free the memory allocated. free the memory allocated.
@param NodeType The device node type for the new device node. @param NodeType The device node type for the new device node.
@ -502,13 +524,15 @@ CreateDeviceNode (
/** /**
Determines if a device path is single or multi-instance. Determines if a device path is single or multi-instance.
This function returns TRUE if the device path specified by DevicePath is multi-instance. This function returns TRUE if the device path specified by DevicePath is
multi-instance.
Otherwise, FALSE is returned. If DevicePath is NULL, then FALSE is returned. Otherwise, FALSE is returned. If DevicePath is NULL, then FALSE is returned.
@param DevicePath A pointer to a device path data structure. @param DevicePath A pointer to a device path data structure.
@retval TRUE DevicePath is multi-instance. @retval TRUE DevicePath is multi-instance.
@retval FALSE DevicePath is not multi-instance or DevicePath is NULL. @retval FALSE DevicePath is not multi-instance or DevicePath
is NULL.
**/ **/
BOOLEAN BOOLEAN
@ -523,10 +547,12 @@ IsDevicePathMultiInstance (
/** /**
Retrieves the device path protocol from a handle. Retrieves the device path protocol from a handle.
This function returns the device path protocol from the handle specified by Handle. If Handle is This function returns the device path protocol from the handle specified by Handle.
NULL or Handle does not contain a device path protocol, then NULL is returned. If Handle is NULL or Handle does not contain a device path protocol, then NULL
is returned.
@param Handle The handle from which to retrieve the device path protocol. @param Handle The handle from which to retrieve the device
path protocol.
@return The device path protocol from the handle specified by Handle. @return The device path protocol from the handle specified by Handle.
@ -554,19 +580,20 @@ DevicePathFromHandle (
/** /**
Allocates a device path for a file and appends it to an existing device path. Allocates a device path for a file and appends it to an existing device path.
If Device is a valid device handle that contains a device path protocol, then a device path for If Device is a valid device handle that contains a device path protocol, then
the file specified by FileName is allocated and appended to the device path associated with the a device path for the file specified by FileName is allocated and appended to
handle Device. The allocated device path is returned. If Device is NULL or Device is a handle the device path associated with the handle Device. The allocated device path
that does not support the device path protocol, then a device path containing a single device is returned. If Device is NULL or Device is a handle that does not support the
path node for the file specified by FileName is allocated and returned. device path protocol, then a device path containing a single device path node
The memory for the new device path is allocated from EFI boot services memory. It is the responsibility for the file specified by FileName is allocated and returned.
of the caller to free the memory allocated. The memory for the new device path is allocated from EFI boot services memory.
It is the responsibility of the caller to free the memory allocated.
If FileName is NULL, then ASSERT(). If FileName is NULL, then ASSERT().
If FileName is not aligned on a 16-bit boundary, then ASSERT(). If FileName is not aligned on a 16-bit boundary, then ASSERT().
@param Device A pointer to a device handle. This parameter is optional and @param Device A pointer to a device handle. This parameter
may be NULL. is optional and may be NULL.
@param FileName A pointer to a Null-terminated Unicode string. @param FileName A pointer to a Null-terminated Unicode string.
@return The allocated device path. @return The allocated device path.

View File

@ -63,25 +63,28 @@ _DriverUnloadHandler (
/** /**
The entry point of PE/COFF Image for a DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver. The entry point of PE/COFF Image for a DXE Driver, DXE Runtime Driver, DXE SMM
Driver, or UEFI Driver.
This function is the entry point for a DXE Driver, DXE Runtime Driver, DXE SMM Driver, This function is the entry point for a DXE Driver, DXE Runtime Driver, DXE SMM Driver,
or UEFI Driver. This function must call ProcessLibraryConstructorList() and or UEFI Driver. This function must call ProcessLibraryConstructorList() and
ProcessModuleEntryPointList(). If the return status from ProcessModuleEntryPointList() ProcessModuleEntryPointList(). If the return status from ProcessModuleEntryPointList()
is an error status, then ProcessLibraryDestructorList() must be called. The return value is an error status, then ProcessLibraryDestructorList() must be called. The return
from ProcessModuleEntryPointList() is returned. If _gDriverUnloadImageCount is greater value from ProcessModuleEntryPointList() is returned. If _gDriverUnloadImageCount
than zero, then an unload handler must be registered for this image and the unload handler is greater than zero, then an unload handler must be registered for this image
must invoke ProcessModuleUnloadList(). and the unload handler must invoke ProcessModuleUnloadList().
If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than _gUefiDriverRevison, If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than
then return EFI_INCOMPATIBLE_VERSION. _gUefiDriverRevison, then return EFI_INCOMPATIBLE_VERSION.
@param ImageHandle The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver. @param ImageHandle The image handle of the DXE Driver, DXE Runtime Driver,
DXE SMM Driver, or UEFI Driver.
@param SystemTable A pointer to the EFI System Table. @param SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS The DXE Driver, DXE Runtime Driver, DXE SMM Driver, @retval EFI_SUCCESS The DXE Driver, DXE Runtime Driver, DXE SMM
or UEFI Driver exited normally. Driver, or UEFI Driver exited normally.
@retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision. @retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than
SystemTable->Hdr.Revision.
@retval Other Return value from ProcessModuleEntryPointList(). @retval Other Return value from ProcessModuleEntryPointList().
**/ **/
@ -144,14 +147,17 @@ _ModuleEntryPoint (
/** /**
Required by the EBC compiler and identical in functionality to _ModuleEntryPoint(). Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().
This function is required to call _ModuleEntryPoint() passing in ImageHandle, and SystemTable. This function is required to call _ModuleEntryPoint() passing in ImageHandle,
and SystemTable.
@param ImageHandle The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver. @param ImageHandle The image handle of the DXE Driver, DXE Runtime Driver, DXE
SMM Driver, or UEFI Driver.
@param SystemTable A pointer to the EFI System Table. @param SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS The DXE Driver, DXE Runtime Driver, DXE SMM Driver, @retval EFI_SUCCESS The DXE Driver, DXE Runtime Driver, DXE SMM
or UEFI Driver exited normally. Driver, or UEFI Driver exited normally.
@retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision. @retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than
SystemTable->Hdr.Revision.
@retval Other Return value from ProcessModuleEntryPointList(). @retval Other Return value from ProcessModuleEntryPointList().
**/ **/
EFI_STATUS EFI_STATUS

View File

@ -248,13 +248,13 @@ GetGlyphWidth (
/** /**
Computes the display length of a Null-terminated Unicode String. Computes the display length of a Null-terminated Unicode String.
This function computes and returns the display length of the Null-terminated Unicode This function computes and returns the display length of the Null-terminated
string specified by String. If String is NULL then 0 is returned. If any of the widths Unicode string specified by String. If String is NULL then 0 is returned. If
of the Unicode characters in String can not be determined, then 0 is returned. The display any of the widths of the Unicode characters in String can not be determined,
width of String can be computed by summing the display widths of each Unicode character then 0 is returned. The display width of String can be computed by summing the
in String. Unicode characters that are narrow glyphs have a width of 1, and Unicode display widths of each Unicode character in String. Unicode characters that
characters that are width glyphs have a width of 2. are narrow glyphs have a width of 1, and Unicode characters that are width glyphs
If String is not aligned on a 16-bit boundary, then ASSERT(). have a width of 2. If String is not aligned on a 16-bit boundary, then ASSERT().
@param String A pointer to a Null-terminated Unicode string. @param String A pointer to a Null-terminated Unicode string.

View File

@ -33,7 +33,7 @@
@param DriverBindingHandle The handle that DriverBinding is to be installed onto. If this @param DriverBindingHandle The handle that DriverBinding is to be installed onto. If this
parameter is NULL, then a new handle is created. parameter is NULL, then a new handle is created.
@retval EFI_SUCCESS The protocol installation is completed successfully. @retval EFI_SUCCESS The protocol installation successfully completed.
@retval EFI_OUT_OF_RESOURCES There was not enough system resources to install the protocol. @retval EFI_OUT_OF_RESOURCES There was not enough system resources to install the protocol.
@retval Others Status from gBS->InstallMultipleProtocolInterfaces(). @retval Others Status from gBS->InstallMultipleProtocolInterfaces().
@ -93,7 +93,7 @@ EfiLibInstallDriverBinding (
@param DriverConfiguration A Driver Configuration Protocol instance that this driver is producing. @param DriverConfiguration A Driver Configuration Protocol instance that this driver is producing.
@param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing. @param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing.
@retval EFI_SUCCESS The protocol installation is completed successfully. @retval EFI_SUCCESS The protocol installation successfully completed.
@retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols.
**/ **/
@ -222,7 +222,7 @@ EfiLibInstallAllDriverProtocols (
@param ComponentName A Component Name Protocol instance that this driver is producing. @param ComponentName A Component Name Protocol instance that this driver is producing.
@param ComponentName2 A Component Name 2 Protocol instance that this driver is producing. @param ComponentName2 A Component Name 2 Protocol instance that this driver is producing.
@retval EFI_SUCCESS The protocol installation is completed successfully. @retval EFI_SUCCESS The protocol installation successfully completed.
@retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols.
**/ **/
@ -315,7 +315,7 @@ EfiLibInstallDriverBindingComponentName2 (
@param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing. @param DriverDiagnostics A Driver Diagnostics Protocol instance that this driver is producing.
@param DriverDiagnostics2 A Driver Diagnostics Protocol 2 instance that this driver is producing. @param DriverDiagnostics2 A Driver Diagnostics Protocol 2 instance that this driver is producing.
@retval EFI_SUCCESS The protocol installation is completed successfully. @retval EFI_SUCCESS The protocol installation successfully completed.
@retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols. @retval EFI_OUT_OF_RESOURCES There was not enough memory in pool to install all the protocols.
**/ **/

View File

@ -5,7 +5,7 @@
EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers, EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers,
and print messages on the console output and standard error devices. and print messages on the console output and standard error devices.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -55,7 +55,7 @@ CompareIso639LanguageCode (
If TableGuid is NULL, then ASSERT(). If TableGuid is NULL, then ASSERT().
If Table is NULL, then ASSERT(). If Table is NULL, then ASSERT().
@param TableGuid The pointer to table's GUID type.. @param TableGuid The pointer to table's GUID type.
@param Table The pointer to the table associated with TableGuid in the EFI System Table. @param Table The pointer to the table associated with TableGuid in the EFI System Table.
@retval EFI_SUCCESS A configuration table matching TableGuid was found. @retval EFI_SUCCESS A configuration table matching TableGuid was found.
@ -175,7 +175,7 @@ EfiCreateProtocolNotifyEvent(
If NotifyTpl is not a legal TPL value, then ASSERT(). If NotifyTpl is not a legal TPL value, then ASSERT().
If NotifyFunction is NULL, then ASSERT(). If NotifyFunction is NULL, then ASSERT().
@param Name Supplies GUID name of the event. @param Name Supplies the GUID name of the event.
@param NotifyTpl Supplies the task priority level of the event notifications. @param NotifyTpl Supplies the task priority level of the event notifications.
@param NotifyFunction Supplies the function to notify when the event is signaled. @param NotifyFunction Supplies the function to notify when the event is signaled.
@param NotifyContext The context parameter to pass to NotifyFunction. @param NotifyContext The context parameter to pass to NotifyFunction.
@ -246,7 +246,7 @@ EfiNamedEventListen (
created with EfiNamedEventListen(). created with EfiNamedEventListen().
If Name is NULL, then ASSERT(). If Name is NULL, then ASSERT().
@param Name Supplies GUID name of the event. @param Name Supplies the GUID name of the event.
@retval EFI_SUCCESS A named event was signaled. @retval EFI_SUCCESS A named event was signaled.
@retval EFI_OUT_OF_RESOURCES There are not enough resource to signal the named event. @retval EFI_OUT_OF_RESOURCES There are not enough resource to signal the named event.
@ -320,7 +320,7 @@ EfiGetCurrentTpl (
If Priority is not a valid TPL value, then ASSERT(). If Priority is not a valid TPL value, then ASSERT().
@param Lock A pointer to the lock data structure to initialize. @param Lock A pointer to the lock data structure to initialize.
@param Priority EFI TPL associated with the lock. @param Priority EFI TPL is associated with the lock.
@return The lock. @return The lock.

View File

@ -45,12 +45,12 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
If Format is not aligned on a 16-bit boundary, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT().
@param Format Null-terminated Unicode format string. @param Format A Null-terminated Unicode format string.
@param Console The output console. @param Console The output console.
@param Marker VA_LIST marker for the variable argument list. @param Marker A VA_LIST marker for the variable argument list.
@return The number of Unicode characters in the produced @return The number of Unicode characters in the produced
output buffer not including the Null-terminator. output buffer, not including the Null-terminator.
**/ **/
UINTN UINTN
InternalPrint ( InternalPrint (
@ -103,8 +103,8 @@ InternalPrint (
If Format is not aligned on a 16-bit boundary, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT().
If gST->ConOut is NULL, then ASSERT(). If gST->ConOut is NULL, then ASSERT().
@param Format Null-terminated Unicode format string. @param Format A Null-terminated Unicode format string.
@param ... Variable argument list whose contents are accessed based @param ... A Variable argument list whose contents are accessed based
on the format string specified by Format. on the format string specified by Format.
@return The number of Unicode characters printed to ConOut. @return The number of Unicode characters printed to ConOut.
@ -142,7 +142,7 @@ Print (
If Format is not aligned on a 16-bit boundary, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT().
If gST->StdErr is NULL, then ASSERT(). If gST->StdErr is NULL, then ASSERT().
@param Format Null-terminated Unicode format string. @param Format A Null-terminated Unicode format string.
@param ... Variable argument list whose contents are accessed based @param ... Variable argument list whose contents are accessed based
on the format string specified by Format. on the format string specified by Format.
@ -180,7 +180,7 @@ ErrorPrint (
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
@param Format Null-terminated ASCII format string. @param Format A Null-terminated ASCII format string.
@param Console The output console. @param Console The output console.
@param Marker VA_LIST marker for the variable argument list. @param Marker VA_LIST marker for the variable argument list.
@ -237,7 +237,7 @@ AsciiInternalPrint (
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
If gST->ConOut is NULL, then ASSERT(). If gST->ConOut is NULL, then ASSERT().
@param Format Null-terminated ASCII format string. @param Format A Null-terminated ASCII format string.
@param ... Variable argument list whose contents are accessed based @param ... Variable argument list whose contents are accessed based
on the format string specified by Format. on the format string specified by Format.
@ -276,7 +276,7 @@ AsciiPrint (
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
If gST->StdErr is NULL, then ASSERT(). If gST->StdErr is NULL, then ASSERT().
@param Format Null-terminated ASCII format string. @param Format A Null-terminated ASCII format string.
@param ... Variable argument list whose contents are accessed based @param ... Variable argument list whose contents are accessed based
on the format string specified by Format. on the format string specified by Format.
@ -320,8 +320,8 @@ AsciiErrorPrint (
If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no
string is printed, and 0 is returned. string is printed, and 0 is returned.
@param PointX X coordinate to print the string. @param PointX An X coordinate to print the string.
@param PointY Y coordinate to print the string. @param PointY A Y coordinate to print the string.
@param Foreground The foreground color of the string being printed. This is @param Foreground The foreground color of the string being printed. This is
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the foreground color of the current ConOut device then the foreground color of the current ConOut device
@ -330,7 +330,7 @@ AsciiErrorPrint (
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the background color of the current ConOut device then the background color of the current ConOut device
in the EFI_SYSTEM_TABLE is used. in the EFI_SYSTEM_TABLE is used.
@param Buffer Null-terminated Unicode formatted string. @param Buffer A Null-terminated Unicode formatted string.
@param PrintNum The number of Unicode formatted string to be printed. @param PrintNum The number of Unicode formatted string to be printed.
@return The number of Unicode Characters printed. Zero means no any character @return The number of Unicode Characters printed. Zero means no any character
@ -576,8 +576,8 @@ Error:
If Format is not aligned on a 16-bit boundary, then ASSERT(). If Format is not aligned on a 16-bit boundary, then ASSERT().
If gST->ConsoleOutputHandle is NULL, then ASSERT(). If gST->ConsoleOutputHandle is NULL, then ASSERT().
@param PointX X coordinate to print the string. @param PointX An X coordinate to print the string.
@param PointY Y coordinate to print the string. @param PointY A Y coordinate to print the string.
@param ForeGround The foreground color of the string being printed. This is @param ForeGround The foreground color of the string being printed. This is
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the foreground color of the current ConOut device then the foreground color of the current ConOut device
@ -586,9 +586,9 @@ Error:
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the background color of the current ConOut device then the background color of the current ConOut device
in the EFI_SYSTEM_TABLE is used. in the EFI_SYSTEM_TABLE is used.
@param Format Null-terminated Unicode format string. See Print Library @param Format A Null-terminated Unicode format string. See Print Library
for the supported format string syntax. for the supported format string syntax.
@param ... Variable argument list whose contents are accessed based on @param ... A Variable argument list whose contents are accessed based on
the format string specified by Format. the format string specified by Format.
@return The number of Unicode characters printed. @return The number of Unicode characters printed.
@ -653,8 +653,8 @@ PrintXY (
If Format is NULL, then ASSERT(). If Format is NULL, then ASSERT().
If gST->ConsoleOutputHandle is NULL, then ASSERT(). If gST->ConsoleOutputHandle is NULL, then ASSERT().
@param PointX X coordinate to print the string. @param PointX An X coordinate to print the string.
@param PointY Y coordinate to print the string. @param PointY A Y coordinate to print the string.
@param ForeGround The foreground color of the string being printed. This is @param ForeGround The foreground color of the string being printed. This is
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the foreground color of the current ConOut device then the foreground color of the current ConOut device
@ -663,7 +663,7 @@ PrintXY (
an optional parameter that may be NULL. If it is NULL, an optional parameter that may be NULL. If it is NULL,
then the background color of the current ConOut device then the background color of the current ConOut device
in the EFI_SYSTEM_TABLE is used. in the EFI_SYSTEM_TABLE is used.
@param Format Null-terminated ASCII format string. See Print Library @param Format A Null-terminated ASCII format string. See Print Library
for the supported format string syntax. for the supported format string syntax.
@param ... Variable argument list whose contents are accessed based on @param ... Variable argument list whose contents are accessed based on
the format string specified by Format. the format string specified by Format.

View File

@ -138,7 +138,7 @@ EfiCreateEventLegacyBootEx (
change with the version of the specification supported. change with the version of the specification supported.
If ReadyToBootEvent is NULL, then ASSERT(). If ReadyToBootEvent is NULL, then ASSERT().
@param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). @param ReadyToBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).
@retval EFI_SUCCESS Event was created. @retval EFI_SUCCESS Event was created.
@retval Other Event was not created. @retval Other Event was not created.

View File

@ -6,7 +6,7 @@
PeiMemoryLib PeiMemoryLib
UefiMemoryLib UefiMemoryLib
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -113,9 +113,9 @@ InternalMemZeroMem (
/** /**
Compares two memory buffers of a given length. Compares two memory buffers of a given length.
@param DestinationBuffer First memory buffer @param DestinationBuffer The first memory buffer
@param SourceBuffer Second memory buffer @param SourceBuffer The second memory buffer
@param Length Length of DestinationBuffer and SourceBuffer memory @param Length The length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero. regions to compare. Must be non-zero.
@return 0 All Length bytes of the two buffers are identical. @return 0 All Length bytes of the two buffers are identical.

View File

@ -119,7 +119,7 @@ InternalMemSetMem64 (
/** /**
Set Buffer to 0 for Size bytes. Set Buffer to 0 for Size bytes.
@param Buffer Memory to set. @param Buffer The memory to set.
@param Length The number of bytes to set @param Length The number of bytes to set
@return Buffer @return Buffer
@ -135,9 +135,9 @@ InternalMemZeroMem (
/** /**
Compares two memory buffers of a given length. Compares two memory buffers of a given length.
@param DestinationBuffer First memory buffer @param DestinationBuffer The first memory buffer
@param SourceBuffer Second memory buffer @param SourceBuffer The second memory buffer
@param Length Length of DestinationBuffer and SourceBuffer memory @param Length The length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero. regions to compare. Must be non-zero.
@return 0 All Length bytes of the two buffers are identical. @return 0 All Length bytes of the two buffers are identical.

View File

@ -1,7 +1,7 @@
/** @file /** @file
PCI Library using PCI Root Bridge I/O Protocol. PCI Library using PCI Root Bridge I/O Protocol.
Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are This program and the accompanying materials are
licensed and made available under the terms and conditions of licensed and made available under the terms and conditions of
the BSD License which accompanies this distribution. The full the BSD License which accompanies this distribution. The full
@ -85,7 +85,7 @@ PciLibConstructor (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to read @param Width The width of data to read
@return The value read from the PCI configuration register. @return The value read from the PCI configuration register.
@ -119,7 +119,7 @@ DxePciLibPciRootBridgeIoReadWorker (
@param Address The address that encodes the PCI Bus, Device, Function and @param Address The address that encodes the PCI Bus, Device, Function and
Register. Register.
@param Width Width of data to write @param Width The width of data to write
@param Data The value to write. @param Data The value to write.
@return The value written to the PCI configuration register. @return The value written to the PCI configuration register.

View File

@ -10,7 +10,7 @@ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@ -36,8 +36,8 @@ EFI_RUNTIME_SERVICES *mInternalRT;
/** /**
Set AtRuntime flag as TRUE after ExitBootServices. Set AtRuntime flag as TRUE after ExitBootServices.
@param[in] Event The Event that is being processed @param[in] Event The Event that is being processed.
@param[in] Context Event Context @param[in] Context The Event Context.
**/ **/
VOID VOID
@ -55,8 +55,8 @@ RuntimeLibExitBootServicesEvent (
Call the passed in Child Notify event and convert any pointers in Call the passed in Child Notify event and convert any pointers in
lib to virtual mode. lib to virtual mode.
@param[in] Event The Event that is being processed @param[in] Event The Event that is being processed.
@param[in] Context Event Context @param[in] Context The Event Context.
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -133,8 +133,8 @@ RuntimeDriverLibConstruct (
@param[in] ImageHandle The firmware allocated handle for the EFI image. @param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table. @param[in] SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS Shutdown the Runtime Driver Lib successfully @retval EFI_SUCCESS The Runtime Driver Lib shutdown successfully.
@retval EFI_UNSUPPORTED Runtime Driver lib was not initialized at all @retval EFI_UNSUPPORTED Runtime Driver lib was not initialized.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
@ -320,7 +320,7 @@ EfiSetTime (
@param Time The current alarm setting. Type EFI_TIME is defined in the GetTime() @param Time The current alarm setting. Type EFI_TIME is defined in the GetTime()
function description. function description.
@retval EFI_SUCCESS The alarm settings were returned. @retval EFI_SUCCESS The alarm settings were returned.
@retval EFI_INVALID_PARAMETER Enabled is NULL. @retval EFI_INVALID_PARAMETER Enabled is NULL.
@retval EFI_INVALID_PARAMETER Pending is NULL. @retval EFI_INVALID_PARAMETER Pending is NULL.
@retval EFI_INVALID_PARAMETER Time is NULL. @retval EFI_INVALID_PARAMETER Time is NULL.
@ -466,13 +466,13 @@ EfiGetNextVariableName (
Variables are stored by the firmware and may maintain their values across power cycles. Each vendor Variables are stored by the firmware and may maintain their values across power cycles. Each vendor
may create and manage its own variables without the risk of name conflicts by using a unique VendorGuid. may create and manage its own variables without the risk of name conflicts by using a unique VendorGuid.
@param VariableName the name of the vendor's variable, it's a @param VariableName The name of the vendor's variable; it's a Null-Terminated
Null-Terminated Unicode String Unicode String
@param VendorGuid Unify identifier for vendor. @param VendorGuid Unify identifier for vendor.
@param Attributes Point to memory location to return the attributes of variable. If the point @param Attributes Points to a memory location to return the attributes of variable. If the point
is NULL, the parameter would be ignored. is NULL, the parameter would be ignored.
@param DataSize The size in bytes of Data-Buffer. @param DataSize The size in bytes of Data-Buffer.
@param Data Point to the content of the variable. @param Data Points to the content of the variable.
@retval EFI_SUCCESS The firmware has successfully stored the variable and its data as @retval EFI_SUCCESS The firmware has successfully stored the variable and its data as
defined by the Attributes. defined by the Attributes.
@ -766,7 +766,7 @@ EfiUpdateCapsule (
Undefined on input. Undefined on input.
@param ResetType Returns the type of reset required for the capsule update. @param ResetType Returns the type of reset required for the capsule update.
@retval EFI_SUCCESS Valid answer returned. @retval EFI_SUCCESS A valid answer was returned.
@retval EFI_INVALID_PARAMETER MaximumCapsuleSize is NULL. @retval EFI_INVALID_PARAMETER MaximumCapsuleSize is NULL.
@retval EFI_UNSUPPORTED The capsule type is not supported on this platform, and @retval EFI_UNSUPPORTED The capsule type is not supported on this platform, and
MaximumCapsuleSize and ResetType are undefined. MaximumCapsuleSize and ResetType are undefined.
@ -817,7 +817,7 @@ EfiQueryCapsuleCapabilities (
@param MaximumVariableSize Returns the maximum size of the individual EFI @param MaximumVariableSize Returns the maximum size of the individual EFI
variables associated with the attributes specified. variables associated with the attributes specified.
@retval EFI_SUCCESS Valid answer returned. @retval EFI_SUCCESS A valid answer was returned.
@retval EFI_INVALID_PARAMETER An invalid combination of attribute bits was supplied. @retval EFI_INVALID_PARAMETER An invalid combination of attribute bits was supplied.
@retval EFI_UNSUPPORTED EFI_UNSUPPORTED The attribute is not supported on this platform, and the @retval EFI_UNSUPPORTED EFI_UNSUPPORTED The attribute is not supported on this platform, and the
MaximumVariableStorageSize, MaximumVariableStorageSize,

View File

@ -40,14 +40,14 @@ SAL_PROC mSalProcEntry;
or undefined result may occur during the execution of the procedure. or undefined result may occur during the execution of the procedure.
This function is only available on IPF. This function is only available on IPF.
@param Index The SAL procedure Index number @param Index The SAL procedure Index number.
@param Arg2 The 2nd parameter for SAL procedure calls @param Arg2 The 2nd parameter for SAL procedure calls.
@param Arg3 The 3rd parameter for SAL procedure calls @param Arg3 The 3rd parameter for SAL procedure calls.
@param Arg4 The 4th parameter for SAL procedure calls @param Arg4 The 4th parameter for SAL procedure calls.
@param Arg5 The 5th parameter for SAL procedure calls @param Arg5 The 5th parameter for SAL procedure calls.
@param Arg6 The 6th parameter for SAL procedure calls @param Arg6 The 6th parameter for SAL procedure calls.
@param Arg7 The 7th parameter for SAL procedure calls @param Arg7 The 7th parameter for SAL procedure calls.
@param Arg8 The 8th parameter for SAL procedure calls @param Arg8 The 8th parameter for SAL procedure calls.
@return SAL returned registers. @return SAL returned registers.

View File

@ -213,7 +213,7 @@ ScsiTestUnitReadyCommand (
If FALSE, then the standard inquiry data is If FALSE, then the standard inquiry data is
returned in InquiryDataBuffer. returned in InquiryDataBuffer.
@retval EFI_SUCCESS The command was executed successfully. See HostAdapterStatus, @retval EFI_SUCCESS The command executed successfully. See HostAdapterStatus,
TargetStatus, SenseDataLength, and SenseData in that order TargetStatus, SenseDataLength, and SenseData in that order
for additional status information. for additional status information.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
@ -357,7 +357,7 @@ ScsiInquiryCommand (
@param[in] PageControl Specifies the PC field of the CDB for this SCSI Command. @param[in] PageControl Specifies the PC field of the CDB for this SCSI Command.
@param[in] PageCode Specifies the Page Control field of the CDB for this SCSI Command. @param[in] PageCode Specifies the Page Control field of the CDB for this SCSI Command.
@retval EFI_SUCCESS The command was executed successfully. @retval EFI_SUCCESS The command executed successfully.
See HostAdapterStatus, TargetStatus, SenseDataLength, See HostAdapterStatus, TargetStatus, SenseDataLength,
and SenseData in that order for additional status information. and SenseData in that order for additional status information.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the
@ -471,7 +471,7 @@ ScsiModeSense10Command (
@param[out] HostAdapterStatus The status of Host Adapter. @param[out] HostAdapterStatus The status of Host Adapter.
@param[out] TargetStatus The status of the target. @param[out] TargetStatus The status of the target.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command executed successfully.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are
too many SCSI Command Packets already queued. too many SCSI Command Packets already queued.
@retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet. @retval EFI_DEVICE_ERROR A device error occurred while attempting to send SCSI Request Packet.
@ -556,9 +556,9 @@ ScsiRequestSenseCommand (
@param[out] TargetStatus The status of the target. @param[out] TargetStatus The status of the target.
@param[in, out] DataBuffer A pointer to a data buffer. @param[in, out] DataBuffer A pointer to a data buffer.
@param[in, out] DataLength The length of data buffer. @param[in, out] DataLength The length of data buffer.
@param[in] Pmi Partial medium indicator. @param[in] Pmi A partial medium indicator.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
DataBuffer could not be transferred. The actual DataBuffer could not be transferred. The actual
number of bytes transferred is returned in DataLength. number of bytes transferred is returned in DataLength.
@ -660,7 +660,7 @@ ScsiReadCapacityCommand (
@param[in, out] DataLength The length of data buffer. @param[in, out] DataLength The length of data buffer.
@param[in] Pmi Partial medium indicator. @param[in] Pmi Partial medium indicator.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
DataBuffer could not be transferred. The actual DataBuffer could not be transferred. The actual
number of bytes transferred is returned in DataLength. number of bytes transferred is returned in DataLength.
@ -766,7 +766,7 @@ ScsiReadCapacity16Command (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command is executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many
@ -864,7 +864,7 @@ ScsiRead10Command (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many
@ -962,7 +962,7 @@ ScsiWrite10Command (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many
@ -1060,7 +1060,7 @@ ScsiRead16Command (
@param[in] StartLba The start address of LBA. @param[in] StartLba The start address of LBA.
@param[in] SectorSize The sector size. @param[in] SectorSize The sector size.
@retval EFI_SUCCESS Command is executed successfully. @retval EFI_SUCCESS The command is executed successfully.
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could
not be transferred. The actual number of bytes transferred is returned in DataLength. not be transferred. The actual number of bytes transferred is returned in DataLength.
@retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many @retval EFI_NOT_READY The SCSI Request Packet could not be sent because there are too many