]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Synchronize function comment in
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 26 Nov 2008 03:26:37 +0000 (03:26 +0000)
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 26 Nov 2008 03:26:37 +0000 (03:26 +0000)
MdePkg\Library\CpuLib.h, DebugLib.h,DevicePathLib.h, DxeServicesLib.h, DxeServicesTableLib.h, ExtractGuidedSectionLib.h, HobLib.h
with the c file instance of  this functions in MdePkg.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6727 6f19259b-4bc3-4df7-8a09-765794883524

20 files changed:
MdePkg/Include/Library/CpuLib.h
MdePkg/Include/Library/DebugLib.h
MdePkg/Include/Library/DevicePathLib.h
MdePkg/Include/Library/DxeServicesLib.h
MdePkg/Include/Library/DxeServicesTableLib.h
MdePkg/Include/Library/ExtractGuidedSectionLib.h
MdePkg/Include/Library/HobLib.h
MdePkg/Library/BaseCpuLib/Ebc/CpuSleepFlushTlb.c
MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlb.c
MdePkg/Library/BaseDebugLibNull/DebugLib.c
MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
MdePkg/Library/DxeCoreHobLib/HobLib.c
MdePkg/Library/DxeHobLib/HobLib.c
MdePkg/Library/DxeServicesLib/DxeServicesLib.c
MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
MdePkg/Library/PeiHobLib/HobLib.c
MdePkg/Library/UefiDebugLibConOut/DebugLib.c
MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c

index b54dd26991f6aa7423b42058826ef078dc31de05..b9a18694251393a2e10eda4e23c6d40fd9cf9a67 100644 (file)
@@ -7,7 +7,7 @@
   PAL Calls require PEI and DXE specific mechanisms to look up PAL Entry Point.\r
   As a result, these services could not be defined in the Base Library.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index 51da314ea239222dba2a4254733d4edcd559409d..0c07aab5fb58f3ca87a9daf8269779cbc8ea59fd 100644 (file)
@@ -4,7 +4,7 @@
   The Debug library supports debug print and asserts based on a combination of macros and code.\r
   The debug library can be turned on and off so that the debug code does not increase the size of an image.\r
   \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -69,7 +69,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define EFI_D_ERROR     DEBUG_ERROR\r
 \r
 /**\r
-\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
   If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r
@@ -94,7 +93,6 @@ DebugPrint (
 \r
 \r
 /**\r
-\r
   Prints an assert message containing a filename, line number, and description.  \r
   This may be followed by a breakpoint or a dead loop.\r
 \r
@@ -108,7 +106,6 @@ DebugPrint (
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
-\r
   If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
@@ -126,14 +123,12 @@ DebugAssert (
 \r
 \r
 /**\r
-\r
   Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with the value specified by \r
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
-\r
   If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
   @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
@@ -151,7 +146,6 @@ DebugClearMemory (
 \r
 \r
 /**\r
-  \r
   Returns TRUE if ASSERT() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of \r
@@ -168,9 +162,8 @@ DebugAssertEnabled (
   );\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -186,9 +179,8 @@ DebugPrintEnabled (
   );\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CODE()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -204,9 +196,8 @@ DebugCodeEnabled (
   );\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -222,8 +213,7 @@ DebugClearMemoryEnabled (
   );\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Internal worker macro that calls DebugAssert().\r
 \r
   This macro calls DebugAssert() passing in the filename, line number, and \r
@@ -235,8 +225,7 @@ DebugClearMemoryEnabled (
 #define _ASSERT(Expression)  DebugAssert (__FILE__, __LINE__, #Expression)\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Internal worker macro that calls DebugPrint().\r
 \r
   This macro calls DebugPrint() passing in the debug error level, a format \r
@@ -249,8 +238,7 @@ DebugClearMemoryEnabled (
 #define _DEBUG(Expression)   DebugPrint Expression\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that calls DebugAssert() if a expression evaluates to FALSE.\r
 \r
   If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -271,8 +259,7 @@ DebugClearMemoryEnabled (
   } while (FALSE)\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that calls DebugPrint().\r
 \r
   If the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -291,8 +278,7 @@ DebugClearMemoryEnabled (
   } while (FALSE)\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that calls DebugAssert() if an EFI_STATUS evaluates to an error code.\r
 \r
   If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -314,8 +300,7 @@ DebugClearMemoryEnabled (
   } while (FALSE)\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that calls DebugAssert() if a protocol is already installed in the \r
   handle database.\r
 \r
@@ -367,8 +352,7 @@ DebugClearMemoryEnabled (
 #define DEBUG_CODE_BEGIN()  do { if (DebugCodeEnabled ()) { UINT8  __DebugCodeLocal\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that marks the end of debug source code.\r
 \r
   If the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -380,8 +364,7 @@ DebugClearMemoryEnabled (
 #define DEBUG_CODE_END()    __DebugCodeLocal = 0; __DebugCodeLocal++; } } while (FALSE)\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that declares a section of debug source code.\r
 \r
   If the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -395,8 +378,7 @@ DebugClearMemoryEnabled (
   DEBUG_CODE_END ()\r
 \r
 \r
-/**\r
-  \r
+/**  \r
   Macro that calls DebugClearMemory() to clear a buffer to a default value.\r
 \r
   If the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set, \r
@@ -415,7 +397,6 @@ DebugClearMemoryEnabled (
 \r
 \r
 /**\r
-\r
   Macro that calls DebugAssert() if the containing record does not have a \r
   matching signature.  If the signatures matches, then a pointer to the data \r
   structure that contains a specified field of that data structure is returned.  \r
index 891b5d657a0ea12741ca60b680192dda0ed2f34f..caa7f9dead7335b8824b76fa59e41b73019a4de5 100644 (file)
@@ -6,7 +6,7 @@
   path nodes make use of the ReadUnaligned16() and WriteUnaligned16() functions from \r
   the Base Library, so this library class has an implied dependency on the Base Library.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index ef925c9c60f05ef164300e8164e8f185b63b1bf6..67ddc7f681e8b75851b99186673def31e7d432de 100644 (file)
@@ -2,7 +2,7 @@
   MDE DXE Services Library provides functions that simplify the development of DXE Drivers.  \r
   These functions help access data from sections of FFS files.\r
 \r
-  Copyright (c) 2008, Intel Corporation                                                         \r
+  Copyright (c) 2008, Intel Corporation<BR>                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
   @param  SectionType          Indicates the FFS section type to search for within the FFS file specified by NameGuid.\r
   @param  SectionInstance      Indicates which section instance within the FFS file specified by NameGuid to retrieve.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.\r
@@ -91,13 +91,13 @@ GetSectionFromAnyFv  (
   @param  SectionType          Indicates the FFS section type to search for within the FFS file specified by NameGuid.\r
   @param  SectionInstance      Indicates which section instance within the FFS file specified by NameGuid to retrieve.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.  \r
@@ -137,12 +137,12 @@ GetSectionFromFv (
   @param  SectionInstance      Indicates which section instance to retrieve within the FFS file \r
                                that the currently executing module was loaded from.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.  \r
index 928730682b641eb0b58614eb025f2b5bbe39991c..2be06e4209403f0782407d73b5bade4a788c34af 100644 (file)
@@ -11,7 +11,7 @@
   Table should use this library.  This will typically be DXE Drivers that require GCD \r
   or Dispatcher services.\r
    \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index be963cb5a7dca4ce10369887f29b88e42fb371a2..003fc898ba34421de86485d29b3aaac90ef4eca6 100644 (file)
@@ -1,7 +1,16 @@
 /** @file\r
   This library provides common functions to process the different guided section data. \r
+  \r
+  This library provides functions to process GUIDed sections of FFS files.  Handlers may \r
+  be registered to decode GUIDed sections of FFS files.  Services are provided to determine \r
+  the set of supported section GUIDs, collection information about a specific GUIDed section, \r
+  and decode a specific GUIDed section. \r
+  \r
+  A library instance that produces this library class may be used to produce a \r
+  EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI or a EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL \r
+  providing a simple method to extend the number of GUIDed sections types a platform supports.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -27,6 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   then the size required to hold the decoded buffer is returned in OututBufferSize,\r
   the size of an optional scratch buffer is returned in ScratchSize, and the Attributes field\r
   from EFI_GUID_DEFINED_SECTION header of InputSection is returned in SectionAttribute.\r
+  \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -66,6 +76,7 @@ RETURN_STATUS
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the\r
   data in InputSection, then OutputBuffer is set to point at the data in InputSection.  Otherwise,\r
   the decoded data will be placed in caller allocated buffer specified by OutputBuffer.\r
+  \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
@@ -100,9 +111,10 @@ RETURN_STATUS
   Registers handlers of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER and EXTRACT_GUIDED_SECTION_DECODE_HANDLER\r
   for a specific GUID section type.\r
 \r
-  Registers the handlers specified by GetInfoHandler and DecodeHandler witg the GUID specified by SectionGuid.\r
+  Registers the handlers specified by GetInfoHandler and DecodeHandler with the GUID specified by SectionGuid.\r
   If the GUID value specified by SectionGuid has already been registered, then return RETURN_ALREADY_STARTED.\r
   If there are not enough resources available to register the handlers  then RETURN_OUT_OF_RESOURCES is returned.\r
+  \r
   If SectionGuid is NULL, then ASSERT().\r
   If GetInfoHandler is NULL, then ASSERT().\r
   If DecodeHandler is NULL, then ASSERT().\r
@@ -136,7 +148,7 @@ ExtractGuidedSectionRegisterHandlers (
   and caller must treat this array of GUIDs as read-only data. \r
   If ExtractHandlerGuidTable is NULL, then ASSERT().\r
 \r
-  @param[out]  ExtractHandlerGuidTable  A pointer to the array of GUIDs tht have been registerd through\r
+  @param[out]  ExtractHandlerGuidTable  A pointer to the array of GUIDs that have been registered through\r
                                         ExtractGuidedSectionRegisterHandlers().\r
 \r
   @return the number of the supported extract guided Handler.\r
@@ -149,7 +161,7 @@ ExtractGuidedSectionGetGuidList (
   );\r
 \r
 /**\r
-  Retrives a GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
+  Retrieves a GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
   EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().\r
   The selected handler is used to retrieve and return the size of the decoded buffer and the size of an\r
   optional scratch buffer required to actually decode the data in a GUIDed section.\r
@@ -161,6 +173,7 @@ ExtractGuidedSectionGetGuidList (
   of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers()\r
   is used to retrieve the OututBufferSize, ScratchSize, and Attributes values. The return status from the handler of\r
   type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER is returned.\r
+  \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -191,7 +204,7 @@ ExtractGuidedSectionGetInfo (
   );\r
 \r
 /**\r
-  Retrives the GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
+  Retrieves the GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
   EXTRACT_GUIDED_SECTION_DECODE_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().\r
   The selected handler is used to decode the data in a GUIDed section and return the result in a caller\r
   allocated output buffer.\r
@@ -205,7 +218,8 @@ ExtractGuidedSectionGetInfo (
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the data in InputSection,\r
   then OutputBuffer is set to point at the data in InputSection.  Otherwise, the decoded data will be placed in caller\r
   allocated buffer specified by OutputBuffer.    This function is responsible for computing the  EFI_AUTH_STATUS_PLATFORM_OVERRIDE\r
-  bit of in AuthenticationStatus.  The return status from the handler of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER is returned.  \r
+  bit of in AuthenticationStatus.  The return status from the handler of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER is returned. \r
+   \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
index 2e81704421812d8942e81871703e6d946eabbac8..7f999e1ab8e468e35b66976241dfcacc96908dba 100644 (file)
@@ -8,7 +8,7 @@
   allows the PEI phase to pass information to the DXE phase. HOBs are position \r
   independent and can be relocated easily to different memory memory locations.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index d6346131db0ef853f3d8f63a896b6a633b037afc..bf1b10374d36cafc0f2b98a64b5fd67bead0865b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Base Library CPU Functions for EBC\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006-2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,6 +16,9 @@
 \r
 /**\r
   Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
+\r
+  Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
+\r
 **/\r
 VOID\r
 EFIAPI\r
index ff3cf82172af5be69f94e9292a04d1400b58e046..711a1abb6ae318668e4727b288c4746fdb0d1598 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   CpuFlushTlb function.\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -15,7 +15,9 @@
 \r
 \r
 /**\r
-  Flush TLB of current processor.\r
+  Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
+\r
+  Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
 \r
 **/\r
 VOID\r
index 6fdf6f97a5b618587d58305d674cd4918523826e..77193466829a0c00f4e555e09c6e8d7374d89ea0 100644 (file)
@@ -12,7 +12,6 @@
 \r
 **/\r
 \r
-\r
 #include <Base.h>\r
 #include <Library/DebugLib.h>\r
 \r
@@ -23,6 +22,8 @@
   the message specified by Format and the associated variable argument list to \r
   the debug output device.\r
 \r
+  If Format is NULL, then ASSERT().\r
+\r
   @param  ErrorLevel  The error level of the debug message.\r
   @param  Format      Format string for the debug message to print.\r
   @param  ...         Variable argument list whose contents are accessed \r
@@ -44,17 +45,16 @@ DebugPrint (
   Prints an assert message containing a filename, line number, and description.  \r
   This may be followed by a breakpoint or a dead loop.\r
 \r
-  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" \r
+  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n"\r
   to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
   PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
-\r
   If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
@@ -80,13 +80,12 @@ DebugAssert (
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
-\r
-  @param   Buffer  Pointer to the target buffer to fill with PcdDebugClearMemoryValue.\r
+  @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
 \r
-  @return  Buffer filled with PcdDebugClearMemoryValue.\r
+  @return  Buffer  Pointer to the target buffer filled with PcdDebugClearMemoryValue.\r
 \r
 **/\r
 VOID *\r
@@ -108,8 +107,6 @@ DebugClearMemory (
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set.\r
   @retval  FALSE   The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is clear.\r
-  \r
-  @return  Always return FALSE.\r
 \r
 **/\r
 BOOLEAN\r
@@ -122,16 +119,14 @@ DebugAssertEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG() macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is set.\r
   @retval  FALSE   The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is clear.\r
-  \r
-  @return Always return FALSE.\r
 \r
 **/\r
 BOOLEAN\r
@@ -144,16 +139,14 @@ DebugPrintEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG_CODE() macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set.\r
   @retval  FALSE   The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is clear.\r
-  \r
-  @return  Always return FALSE.\r
 \r
 **/\r
 BOOLEAN\r
@@ -166,16 +159,14 @@ DebugCodeEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG_CLEAR_MEMORY() macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set.\r
   @retval  FALSE   The DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is clear.\r
-  \r
-  @return  Always return FALSE.\r
 \r
 **/\r
 BOOLEAN\r
index 4abdf9cd699545580da4cf9cf4464e17221c9c3d..a086e6e9920712b9463b076e86be425a16aea515 100644 (file)
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/SerialPortLib.h>\r
 \r
-\r
 //\r
 // Define the maximum debug and assert message length that this library supports \r
 //\r
 #define MAX_DEBUG_MESSAGE_LENGTH  0x100\r
 \r
-\r
 /**\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
@@ -84,17 +82,16 @@ DebugPrint (
   Prints an assert message containing a filename, line number, and description.  \r
   This may be followed by a breakpoint or a dead loop.\r
 \r
-  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" \r
+  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n"\r
   to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
   PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
-\r
   If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
@@ -140,13 +137,12 @@ DebugAssert (
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
-\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
   @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
 \r
-  @return  Buffer filled with PcdDebugClearMemoryValue.\r
+  @return  Buffer  Pointer to the target buffer filled with PcdDebugClearMemoryValue.\r
 \r
 **/\r
 VOID *\r
@@ -188,8 +184,8 @@ DebugAssertEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG() macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -208,8 +204,8 @@ DebugPrintEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG_CODE() macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -228,8 +224,8 @@ DebugCodeEnabled (
 }\r
 \r
 \r
-/**\r
-  Returns TRUE if the DEBUG_CLEAR_MEMORY() macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
index 302d1bbd8c64dba5aca816e05a3e10af87174114..e238aa35db7df8d7e2623d08ea77a0f3ca6af1ae 100644 (file)
@@ -1,19 +1,17 @@
 /** @file\r
   HOB Library implementation for DxeCore driver.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
-\r
-\r
 #include <PiDxe.h>\r
 \r
 #include <Library/HobLib.h>\r
 \r
 /**\r
   Returns the pointer to the HOB list.\r
-  ASSERT() if the HOB list returned by GetHobList() is NULL.\r
 \r
   This function returns the pointer to first HOB in the list.\r
-\r
+  For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer \r
+  to the HOB list.  For the DXE phase, the HOB list pointer can be retrieved through\r
+  the EFI System Table by looking up theHOB list GUID in the System Configuration Table.\r
+  Since the System Configuration Table does not exist that the time the DXE Core is \r
+  launched, the DXE Core uses a global variable from the DXE Core Entry Point Library \r
+  to manage the pointer to the HOB list.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @return The pointer to the HOB list.\r
 \r
 **/\r
@@ -43,11 +48,12 @@ GetHobList (
 /**\r
   Returns the next instance of a HOB type from the starting HOB.\r
 \r
-  This function searches the first instance of a HOB type from the starting HOB pointer.\r
+  This function searches the first instance of a HOB type from the starting HOB pointer. \r
   If there does not exist such HOB type from the starting HOB pointer, it will return NULL.\r
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If HobStart is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
@@ -83,8 +89,10 @@ GetNextHob (
 /**\r
   Returns the first instance of a HOB type among the whole HOB list.\r
 \r
-  This function searches the first instance of a HOB type among the whole HOB list.\r
-  If there does not exist such HOB type in the HOB list, it will return NULL.\r
+  This function searches the first instance of a HOB type among the whole HOB list. \r
+  If there does not exist such HOB type in the HOB list, it will return NULL. \r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
 \r
@@ -104,15 +112,18 @@ GetFirstHob (
 }\r
 \r
 /**\r
-  This function searches the first instance of a HOB from the starting HOB pointer.\r
-  Such HOB should satisfy two conditions:\r
-  its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
-  If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
+  Returns the next instance of the matched GUID HOB from the starting HOB.\r
+  \r
+  This function searches the first instance of a HOB from the starting HOB pointer. \r
+  Such HOB should satisfy two conditions: \r
+  its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. \r
+  If there does not exist such HOB from the starting HOB pointer, it will return NULL. \r
   Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
   to extract the data section and its size info respectively.\r
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If HobStart is NULL, then ASSERT().\r
 \r
@@ -142,12 +153,16 @@ GetNextGuidHob (
 }\r
 \r
 /**\r
-  This function searches the first instance of a HOB among the whole HOB list.\r
+  Returns the first instance of the matched GUID HOB among the whole HOB list.\r
+  \r
+  This function searches the first instance of a HOB among the whole HOB list. \r
   Such HOB should satisfy two conditions:\r
   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
   If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
   Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
   to extract the data section and its size info respectively.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
   If Guid is NULL, then ASSERT().\r
 \r
   @param  Guid          The GUID to match with in the HOB list.\r
@@ -168,11 +183,13 @@ GetFirstGuidHob (
 }\r
 \r
 /**\r
-  Get the Boot Mode from the HOB list.\r
+  Get the system boot mode from the HOB list.\r
 \r
-  This function returns the system boot mode information from the\r
+  This function returns the system boot mode information from the \r
   PHIT HOB in HOB list.\r
 \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @param  VOID\r
 \r
   @return The Boot Mode.\r
@@ -190,19 +207,21 @@ GetBootModeHob (
 \r
   return  HandOffHob->BootMode;\r
 }\r
+\r
 /**\r
   Builds a HOB for a loaded PE32 module.\r
 \r
   This function builds a HOB for a loaded PE32 module.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If ModuleName is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ModuleName              The GUID File Name of the module.\r
   @param  MemoryAllocationModule  The 64 bit physical address of the module.\r
   @param  ModuleLength            The length of the module in bytes.\r
-  @param  EntryPoint              The 64 bit physical address of the module's entry point.\r
+  @param  EntryPoint              The 64 bit physical address of the module entry point.\r
 \r
 **/\r
 VOID\r
@@ -226,6 +245,7 @@ BuildModuleHob (
   This function builds a HOB that describes a chunk of system memory.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ResourceType        The type of resource described by this HOB.\r
@@ -250,13 +270,15 @@ BuildResourceDescriptorHob (
 }\r
 \r
 /**\r
-  Builds a GUID HOB with a certain data length.\r
+  Builds a customized HOB tagged with a GUID for identification and returns \r
+  the start address of GUID HOB data.\r
 \r
-  This function builds a customized HOB tagged with a GUID for identification\r
-  and returns the start address of GUID HOB data so that caller can fill the customized data.\r
+  This function builds a customized HOB tagged with a GUID for identification \r
+  and returns the start address of GUID HOB data so that caller can fill the customized data. \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
   If DataLength >= (0x10000 - sizeof (EFI_HOB_GUID_TYPE)), then ASSERT().\r
@@ -282,13 +304,16 @@ BuildGuidHob (
 }\r
 \r
 /**\r
-  Copies a data buffer to a newly-built HOB.\r
+  Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB \r
+  data field, and returns the start address of the GUID HOB data.\r
 \r
-  This function builds a customized HOB tagged with a GUID for identification,\r
-  copies the input data to the HOB data field and returns the start address of the GUID HOB data.\r
+  This function builds a customized HOB tagged with a GUID for identification and copies the input\r
+  data to the HOB data field and returns the start address of the GUID HOB data.  It can only be \r
+  invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.  \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If Data is NULL and DataLength > 0, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
@@ -322,6 +347,7 @@ BuildGuidDataHob (
   This function builds a Firmware Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
@@ -347,11 +373,12 @@ BuildFvHob (
   This function builds a EFI_HOB_TYPE_FV2 HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
   @param  Length        The size of the Firmware Volume in bytes.\r
-  @param  FvName       The name of the Firmware Volume.\r
+  @param  FvName        The name of the Firmware Volume.\r
   @param  FileName      The name of the file.\r
   \r
 **/\r
@@ -373,6 +400,7 @@ BuildFv2Hob (
   This function builds a Capsule Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Capsule Volume.\r
@@ -398,6 +426,7 @@ BuildCvHob (
   This function builds a HOB for the CPU.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  SizeOfMemorySpace   The maximum physical memory addressability of the processor.\r
@@ -423,6 +452,7 @@ BuildCpuHob (
   This function builds a HOB for the stack.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the Stack.\r
@@ -448,6 +478,7 @@ BuildStackHob (
   This function builds a HOB for BSP store.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the BSP.\r
@@ -475,6 +506,7 @@ BuildBspStoreHob (
   This function builds a HOB for the memory allocation.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the memory.\r
index 2e41453a16a4fbd05ccfbe9f7dfa7d9286c7bc12..9d226fa5ee1b03f82d06a3ce03cfd224e143803a 100644 (file)
@@ -1,19 +1,17 @@
 /** @file\r
   HOB Library implemenation for Dxe Phase.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
-\r
-\r
 #include <PiDxe.h>\r
 \r
 #include <Guid/HobList.h>\r
@@ -56,10 +54,17 @@ HobLibConstructor (
 \r
 /**\r
   Returns the pointer to the HOB list.\r
-  ASSERT() if the HOB list returned by GetHobList() is NULL.\r
 \r
   This function returns the pointer to first HOB in the list.\r
-\r
+  For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer \r
+  to the HOB list.  For the DXE phase, the HOB list pointer can be retrieved through\r
+  the EFI System Table by looking up theHOB list GUID in the System Configuration Table.\r
+  Since the System Configuration Table does not exist that the time the DXE Core is \r
+  launched, the DXE Core uses a global variable from the DXE Core Entry Point Library \r
+  to manage the pointer to the HOB list.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @return The pointer to the HOB list.\r
 \r
 **/\r
@@ -81,6 +86,7 @@ GetHobList (
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If HobStart is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
@@ -118,6 +124,8 @@ GetNextHob (
 \r
   This function searches the first instance of a HOB type among the whole HOB list. \r
   If there does not exist such HOB type in the HOB list, it will return NULL. \r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
 \r
@@ -137,6 +145,8 @@ GetFirstHob (
 }\r
 \r
 /**\r
+  Returns the next instance of the matched GUID HOB from the starting HOB.\r
+  \r
   This function searches the first instance of a HOB from the starting HOB pointer. \r
   Such HOB should satisfy two conditions: \r
   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. \r
@@ -146,6 +156,7 @@ GetFirstHob (
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If HobStart is NULL, then ASSERT().\r
 \r
@@ -175,12 +186,16 @@ GetNextGuidHob (
 }\r
 \r
 /**\r
+  Returns the first instance of the matched GUID HOB among the whole HOB list.\r
+  \r
   This function searches the first instance of a HOB among the whole HOB list. \r
   Such HOB should satisfy two conditions:\r
   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
   If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
   Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
   to extract the data section and its size info respectively.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
   If Guid is NULL, then ASSERT().\r
 \r
   @param  Guid          The GUID to match with in the HOB list.\r
@@ -201,11 +216,13 @@ GetFirstGuidHob (
 }\r
 \r
 /**\r
-  Get the Boot Mode from the HOB list.\r
+  Get the system boot mode from the HOB list.\r
 \r
   This function returns the system boot mode information from the \r
-  PHIT HOB in HOB list. If PHIT HOB is NULL, then ASSERT().\r
+  PHIT HOB in HOB list.\r
 \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @param  VOID\r
 \r
   @return The Boot Mode.\r
@@ -230,13 +247,14 @@ GetBootModeHob (
   This function builds a HOB for a loaded PE32 module.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If ModuleName is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ModuleName              The GUID File Name of the module.\r
   @param  MemoryAllocationModule  The 64 bit physical address of the module.\r
   @param  ModuleLength            The length of the module in bytes.\r
-  @param  EntryPoint              The 64 bit physical address of the module's entry point.\r
+  @param  EntryPoint              The 64 bit physical address of the module entry point.\r
 \r
 **/\r
 VOID\r
@@ -260,6 +278,7 @@ BuildModuleHob (
   This function builds a HOB that describes a chunk of system memory.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ResourceType        The type of resource described by this HOB.\r
@@ -284,13 +303,15 @@ BuildResourceDescriptorHob (
 }\r
 \r
 /**\r
-  Builds a GUID HOB with a certain data length.\r
+  Builds a customized HOB tagged with a GUID for identification and returns \r
+  the start address of GUID HOB data.\r
 \r
   This function builds a customized HOB tagged with a GUID for identification \r
   and returns the start address of GUID HOB data so that caller can fill the customized data. \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
   If DataLength >= (0x10000 - sizeof (EFI_HOB_GUID_TYPE)), then ASSERT().\r
@@ -316,13 +337,16 @@ BuildGuidHob (
 }\r
 \r
 /**\r
-  Copies a data buffer to a newly-built HOB.\r
+  Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB \r
+  data field, and returns the start address of the GUID HOB data.\r
 \r
-  This function builds a customized HOB tagged with a GUID for identification,\r
-  copies the input data to the HOB data field and returns the start address of the GUID HOB data.\r
+  This function builds a customized HOB tagged with a GUID for identification and copies the input\r
+  data to the HOB data field and returns the start address of the GUID HOB data.  It can only be \r
+  invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.  \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If Data is NULL and DataLength > 0, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
@@ -356,6 +380,7 @@ BuildGuidDataHob (
   This function builds a Firmware Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
@@ -381,11 +406,12 @@ BuildFvHob (
   This function builds a EFI_HOB_TYPE_FV2 HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
   @param  Length        The size of the Firmware Volume in bytes.\r
-  @param  FvName       The name of the Firmware Volume.\r
+  @param  FvName        The name of the Firmware Volume.\r
   @param  FileName      The name of the file.\r
   \r
 **/\r
@@ -408,6 +434,7 @@ BuildFv2Hob (
   This function builds a Capsule Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Capsule Volume.\r
@@ -433,6 +460,7 @@ BuildCvHob (
   This function builds a HOB for the CPU.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  SizeOfMemorySpace   The maximum physical memory addressability of the processor.\r
@@ -458,6 +486,7 @@ BuildCpuHob (
   This function builds a HOB for the stack.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the Stack.\r
@@ -483,6 +512,7 @@ BuildStackHob (
   This function builds a HOB for BSP store.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the BSP.\r
@@ -510,6 +540,7 @@ BuildBspStoreHob (
   This function builds a HOB for the memory allocation.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the memory.\r
index b03d019fbb8b228e8815344444de5cbf28d1b948..cb3450904cc6b9bf9eed0788c9ef2926be0792ed 100644 (file)
@@ -190,12 +190,12 @@ InternalGetSectionFromFv (
   @param  SectionType          Indicates the FFS section type to search for within the FFS file specified by NameGuid.\r
   @param  SectionInstance      Indicates which section instance within the FFS file specified by NameGuid to retrieve.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.\r
@@ -307,13 +307,13 @@ Done:
   @param  SectionType          Indicates the FFS section type to search for within the FFS file specified by NameGuid.\r
   @param  SectionInstance      Indicates which section instance within the FFS file specified by NameGuid to retrieve.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.  \r
@@ -363,12 +363,12 @@ GetSectionFromFv (
   @param  SectionInstance      Indicates which section instance to retrieve within the FFS file \r
                                that the currently executing module was loaded from.\r
   @param  Buffer               On output, a pointer to a callee allocated buffer containing the FFS file section that was found.  \r
-                               Is it the caller's respobsibility to free this buffer using FreePool().\r
+                               Is it the caller's responsibility to free this buffer using FreePool().\r
   @param  Size                 On output, a pointer to the size, in bytes, of Buffer.\r
 \r
   @retval  EFI_SUCCESS          The specified FFS section was returned.\r
   @retval  EFI_NOT_FOUND        The specified FFS section could not be found.\r
-  @retval  EFI_OUT_OF_RESOURCES There are not enough rsources available to retrieve the matching FFS section.\r
+  @retval  EFI_OUT_OF_RESOURCES There are not enough resources available to retrieve the matching FFS section.\r
   @retval  EFI_DEVICE_ERROR     The FFS section could not be retrieves due to a device error.\r
   @retval  EFI_ACCESS_DENIED    The FFS section could not be retrieves because the firmware volume that \r
                                 contains the matching FFS section does not allow reads.  \r
index 1633f1b8f40e11f83d93389f662ab2943973313c..90cd8e8998710ae3e53122f4364b12d6840c3bc2 100644 (file)
@@ -36,7 +36,7 @@ typedef struct {
 \r
   @param[in, out]  InfoPointer   Pointer to pei handler info structure.\r
 \r
-  @retval  RETURN_SUCCESS            Build Guid hob for the global memory space to store guid and funciton tables.\r
+  @retval  RETURN_SUCCESS            Build Guid hob for the global memory space to store guid and function tables.\r
   @retval  RETURN_OUT_OF_RESOURCES   No enough memory to allocated.\r
 **/\r
 RETURN_STATUS\r
@@ -125,9 +125,10 @@ PeiGetExtractGuidedSectionHandlerInfo (
   Sets ExtractHandlerGuidTable so it points at a callee allocated array of registered GUIDs.\r
   The total number of GUIDs in the array are returned. Since the array of GUIDs is callee allocated\r
   and caller must treat this array of GUIDs as read-only data. \r
+  \r
   If ExtractHandlerGuidTable is NULL, then ASSERT().\r
 \r
-  @param[out]  ExtractHandlerGuidTable  A pointer to the array of GUIDs tht have been registerd through\r
+  @param[out]  ExtractHandlerGuidTable  A pointer to the array of GUIDs that have been registered through\r
                                         ExtractGuidedSectionRegisterHandlers().\r
 \r
   @return the number of the supported extract guided Handler.\r
@@ -163,9 +164,10 @@ ExtractGuidedSectionGetGuidList (
   Registers handlers of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER and EXTRACT_GUIDED_SECTION_DECODE_HANDLER\r
   for a specific GUID section type.\r
 \r
-  Registers the handlers specified by GetInfoHandler and DecodeHandler witg the GUID specified by SectionGuid.\r
+  Registers the handlers specified by GetInfoHandler and DecodeHandler with the GUID specified by SectionGuid.\r
   If the GUID value specified by SectionGuid has already been registered, then return RETURN_ALREADY_STARTED.\r
   If there are not enough resources available to register the handlers  then RETURN_OUT_OF_RESOURCES is returned.\r
+  \r
   If SectionGuid is NULL, then ASSERT().\r
   If GetInfoHandler is NULL, then ASSERT().\r
   If DecodeHandler is NULL, then ASSERT().\r
@@ -244,7 +246,7 @@ ExtractGuidedSectionRegisterHandlers (
 }\r
 \r
 /**\r
-  Retrives a GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
+  Retrieves a GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
   EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().\r
   The selected handler is used to retrieve and return the size of the decoded buffer and the size of an\r
   optional scratch buffer required to actually decode the data in a GUIDed section.\r
@@ -256,6 +258,7 @@ ExtractGuidedSectionRegisterHandlers (
   of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers()\r
   is used to retrieve the OututBufferSize, ScratchSize, and Attributes values. The return status from the handler of\r
   type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER is returned.\r
+  \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -311,7 +314,7 @@ ExtractGuidedSectionGetInfo (
   for (Index = 0; Index < HandlerInfo->NumberOfExtractHandler; Index ++) {\r
     if (CompareGuid (HandlerInfo->ExtractHandlerGuidTable + Index, &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {\r
       //\r
-      // Call the match handler to getinfo for the input section data.\r
+      // Call the match handler to get info for the input section data.\r
       //\r
       return HandlerInfo->ExtractGetInfoHandlerTable [Index] (\r
                 InputSection,\r
@@ -329,7 +332,7 @@ ExtractGuidedSectionGetInfo (
 }\r
 \r
 /**\r
-  Retrives the GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
+  Retrieves the GUID from a GUIDed section and uses that GUID to select an associated handler of type\r
   EXTRACT_GUIDED_SECTION_DECODE_HANDLER that was registered with ExtractGuidedSectionRegisterHandlers().\r
   The selected handler is used to decode the data in a GUIDed section and return the result in a caller\r
   allocated output buffer.\r
@@ -343,7 +346,8 @@ ExtractGuidedSectionGetInfo (
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the data in InputSection,\r
   then OutputBuffer is set to point at the data in InputSection.  Otherwise, the decoded data will be placed in caller\r
   allocated buffer specified by OutputBuffer.    This function is responsible for computing the  EFI_AUTH_STATUS_PLATFORM_OVERRIDE\r
-  bit of in AuthenticationStatus.  The return status from the handler of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER is returned.  \r
+  bit of in AuthenticationStatus.  The return status from the handler of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER is returned. \r
+   \r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
index 1d584792961bcb8d38ce265cc79177007f55fd5d..476ea06dbc29bbac65de195d885a7f27e8fff619 100644 (file)
@@ -1,18 +1,17 @@
 /** @file\r
   Provide Hob Library functions for Pei phase.\r
 \r
-  Copyright (c) 2007 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2007 - 2008, Intel Corporation<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
-\r
 #include <PiPei.h>\r
 \r
 #include <Guid/MemoryAllocationHob.h>\r
 \r
 /**\r
   Returns the pointer to the HOB list.\r
-  ASSERT() if the HOB list returned by GetHobList() is NULL.\r
 \r
   This function returns the pointer to first HOB in the list.\r
-\r
+  For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer \r
+  to the HOB list.  For the DXE phase, the HOB list pointer can be retrieved through\r
+  the EFI System Table by looking up theHOB list GUID in the System Configuration Table.\r
+  Since the System Configuration Table does not exist that the time the DXE Core is \r
+  launched, the DXE Core uses a global variable from the DXE Core Entry Point Library \r
+  to manage the pointer to the HOB list.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @return The pointer to the HOB list.\r
 \r
 **/\r
@@ -55,6 +61,7 @@ GetHobList (
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If HobStart is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
@@ -92,6 +99,8 @@ GetNextHob (
 \r
   This function searches the first instance of a HOB type among the whole HOB list. \r
   If there does not exist such HOB type in the HOB list, it will return NULL. \r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
 \r
   @param  Type          The HOB type to return.\r
 \r
@@ -111,6 +120,8 @@ GetFirstHob (
 }\r
 \r
 /**\r
+  Returns the next instance of the matched GUID HOB from the starting HOB.\r
+  \r
   This function searches the first instance of a HOB from the starting HOB pointer. \r
   Such HOB should satisfy two conditions: \r
   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. \r
@@ -120,6 +131,7 @@ GetFirstHob (
   In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
   unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
   caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If HobStart is NULL, then ASSERT().\r
 \r
@@ -149,12 +161,16 @@ GetNextGuidHob (
 }\r
 \r
 /**\r
+  Returns the first instance of the matched GUID HOB among the whole HOB list.\r
+  \r
   This function searches the first instance of a HOB among the whole HOB list. \r
   Such HOB should satisfy two conditions:\r
   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
   If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
   Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
   to extract the data section and its size info respectively.\r
+  \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
   If Guid is NULL, then ASSERT().\r
 \r
   @param  Guid          The GUID to match with in the HOB list.\r
@@ -175,11 +191,13 @@ GetFirstGuidHob (
 }\r
 \r
 /**\r
-  Get the Boot Mode from the HOB list.\r
+  Get the system boot mode from the HOB list.\r
 \r
-  This function returns the system boot mode information \r
-  by PeiCore GetBootMode Service.\r
+  This function returns the system boot mode information from the \r
+  PHIT HOB in HOB list.\r
 \r
+  If the pointer to the HOB list is NULL, then ASSERT().\r
+  \r
   @param  VOID\r
 \r
   @return The Boot Mode.\r
@@ -235,13 +253,14 @@ InternalPeiCreateHob (
   This function builds a HOB for a loaded PE32 module.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If ModuleName is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ModuleName              The GUID File Name of the module.\r
   @param  MemoryAllocationModule  The 64 bit physical address of the module.\r
   @param  ModuleLength            The length of the module in bytes.\r
-  @param  EntryPoint              The 64 bit physical address of the module's entry point.\r
+  @param  EntryPoint              The 64 bit physical address of the module entry point.\r
 \r
 **/\r
 VOID\r
@@ -280,6 +299,7 @@ BuildModuleHob (
   This function builds a HOB that describes a chunk of system memory.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  ResourceType        The type of resource described by this HOB.\r
@@ -308,13 +328,15 @@ BuildResourceDescriptorHob (
 }\r
 \r
 /**\r
-  Builds a GUID HOB with a certain data length.\r
+  Builds a customized HOB tagged with a GUID for identification and returns \r
+  the start address of GUID HOB data.\r
 \r
   This function builds a customized HOB tagged with a GUID for identification \r
   and returns the start address of GUID HOB data so that caller can fill the customized data. \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
   If DataLength >= (0x10000 - sizeof (EFI_HOB_GUID_TYPE)), then ASSERT().\r
@@ -345,13 +367,16 @@ BuildGuidHob (
 }\r
 \r
 /**\r
-  Copies a data buffer to a newly-built HOB.\r
+  Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB \r
+  data field, and returns the start address of the GUID HOB data.\r
 \r
-  This function builds a customized HOB tagged with a GUID for identification,\r
-  copies the input data to the HOB data field and returns the start address of the GUID HOB data.\r
+  This function builds a customized HOB tagged with a GUID for identification and copies the input\r
+  data to the HOB data field and returns the start address of the GUID HOB data.  It can only be \r
+  invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.  \r
   The HOB Header and Name field is already stripped.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If Guid is NULL, then ASSERT().\r
   If Data is NULL and DataLength > 0, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
@@ -387,6 +412,7 @@ BuildGuidDataHob (
   This function builds a Firmware Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
@@ -414,11 +440,12 @@ BuildFvHob (
   This function builds a EFI_HOB_TYPE_FV2 HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Firmware Volume.\r
   @param  Length        The size of the Firmware Volume in bytes.\r
-  @param  FvName       The name of the Firmware Volume.\r
+  @param  FvName        The name of the Firmware Volume.\r
   @param  FileName      The name of the file.\r
   \r
 **/\r
@@ -447,6 +474,7 @@ BuildFv2Hob (
   This function builds a Capsule Volume HOB.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Capsule Volume.\r
@@ -469,6 +497,7 @@ BuildCvHob (
   This function builds a HOB for the CPU.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  SizeOfMemorySpace   The maximum physical memory addressability of the processor.\r
@@ -501,6 +530,7 @@ BuildCpuHob (
   This function builds a HOB for the stack.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the Stack.\r
@@ -538,6 +568,7 @@ BuildStackHob (
   This function builds a HOB for BSP store.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the BSP.\r
@@ -577,6 +608,7 @@ BuildBspStoreHob (
   This function builds a HOB for the memory allocation.\r
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
+  \r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The 64 bit physical address of the memory.\r
index 7f93509b2d4071e217f5c8b606cae07b7e696700..f416bcb3c02ad875bc94030b46543998a51a966b 100644 (file)
 \r
 **/\r
 \r
-\r
 #include <Uefi.h>\r
 \r
-\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PrintLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 \r
-\r
 //\r
 // Define the maximum debug and assert message length that this library supports \r
 //\r
 #define MAX_DEBUG_MESSAGE_LENGTH  0x100\r
 \r
-\r
 /**\r
-\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
   If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r
@@ -87,21 +82,19 @@ DebugPrint (
 \r
 \r
 /**\r
-\r
   Prints an assert message containing a filename, line number, and description.  \r
   This may be followed by a breakpoint or a dead loop.\r
 \r
-  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" \r
+  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n"\r
   to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
   PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
-\r
   If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
@@ -150,15 +143,13 @@ DebugAssert (
 \r
 \r
 /**\r
-\r
   Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with the value specified by \r
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
-\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
   @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
@@ -186,7 +177,6 @@ DebugClearMemory (
 \r
 \r
 /**\r
-  \r
   Returns TRUE if ASSERT() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of \r
@@ -206,9 +196,8 @@ DebugAssertEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -227,9 +216,8 @@ DebugPrintEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CODE()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -248,9 +236,8 @@ DebugCodeEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
index 608ed2692971713769ac67efb7abfd1318156a35..6d5ae16e73d9d9d559d884bf33517d437114e07c 100644 (file)
@@ -15,7 +15,6 @@
 \r
 #include <Uefi.h>\r
 \r
-\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PrintLib.h>\r
@@ -30,7 +29,6 @@
 \r
 \r
 /**\r
-\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
   If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r
@@ -85,21 +83,19 @@ DebugPrint (
 \r
 \r
 /**\r
-\r
   Prints an assert message containing a filename, line number, and description.  \r
   This may be followed by a breakpoint or a dead loop.\r
 \r
-  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" \r
+  Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n"\r
   to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
   PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
   DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
   CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
   returns immediately after the message is printed to the debug output device.\r
-  DebugAssert() must actively prevent recusrsion.  If DebugAssert() is called while\r
+  DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
 \r
   If FileName is NULL, then a <FileName> string of "(NULL) Filename" is printed.\r
-\r
   If Description is NULL, then a <Description> string of "(NULL) Description" is printed.\r
 \r
   @param  FileName     Pointer to the name of the source file that generated the assert condition.\r
@@ -148,17 +144,15 @@ DebugAssert (
 \r
 \r
 /**\r
-\r
   Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with the value specified by \r
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
+  If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). \r
 \r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
-\r
-  @param   Buffer  Pointer to the target buffer to fill with PcdDebugClearMemoryValue.\r
+  @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
 \r
   @return  Buffer  Pointer to the target buffer filled with PcdDebugClearMemoryValue.\r
@@ -184,7 +178,6 @@ DebugClearMemory (
 \r
 \r
 /**\r
-  \r
   Returns TRUE if ASSERT() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of \r
@@ -204,9 +197,8 @@ DebugAssertEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -225,9 +217,8 @@ DebugPrintEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CODE()macros are enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
@@ -246,9 +237,8 @@ DebugCodeEnabled (
 }\r
 \r
 \r
-/**\r
-  \r
-  Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled.\r
+/**  \r
+  Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
   This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
index 708b48a088e42d19ade75df6aa435f247a00de5e..8bdb598f88f106f9bdf2289edaa981dde63137f3 100644 (file)
@@ -50,8 +50,9 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_PROTOCOL  mUefiDevicePathLib
   DevicePath including the end of device path node.  If DevicePath is NULL, then 0 is returned.\r
 \r
   @param  DevicePath                 A pointer to a device path data structure.\r
-\r
-  @return The size of a device path in bytes.\r
+  \r
+  @retval 0       If DevicePath is NULL.\r
+  @retval Others  The size of a device path in bytes.\r
 \r
 **/\r
 UINTN\r
@@ -87,11 +88,14 @@ GetDevicePathSize (
   DevicePath is NULL, then NULL is returned.  If the memory is successfully allocated, then the\r
   contents of DevicePath are copied to the newly allocated buffer, and a pointer to that buffer\r
   is returned.  Otherwise, NULL is returned.  \r
+  The memory for the new device path is allocated from EFI boot services memory. \r
+  It is the responsibility of the caller to free the memory allocated. \r
   \r
   @param  DevicePath                 A pointer to a device path data structure.\r
 \r
-  @return A pointer to the duplicated device path.\r
-\r
+  @retval NULL    If DevicePath is NULL.\r
+  @retval Others  A pointer to the duplicated device path.\r
+  \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 EFIAPI\r
@@ -132,8 +136,10 @@ DuplicateDevicePath (
 \r
   @param  FirstDevicePath            A pointer to a device path data structure.\r
   @param  SecondDevicePath           A pointer to a device path data structure.\r
-\r
-  @return A pointer to the new device path.\r
+  \r
+  @retval NULL      If there is not enough memory for the newly allocated buffer.\r
+  @retval Others    A pointer to the new device path if success.\r
+                    Or a copy an end-of-device-path if both FirstDevicePath and SecondDevicePath are NULL.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -201,7 +207,11 @@ AppendDevicePath (
   @param  DevicePath                 A pointer to a device path data structure.\r
   @param  DevicePathNode             A pointer to a single device path node.\r
 \r
-  @return A pointer to the new device path.\r
+  @retval NULL      If there is not enough memory for the new device path.\r
+  @retval Others    A pointer to the new device path if success.\r
+                    A copy of DevicePathNode followed by an end-of-device-path node \r
+                    if both FirstDevicePath and SecondDevicePath are NULL.\r
+                    A copy of an end-of-device-path node if both FirstDevicePath and SecondDevicePath are NULL.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -381,8 +391,7 @@ GetNextDevicePathInstance (
 }\r
 \r
 /**\r
-  Creates a copy of the current device path instance and returns a pointer to the next device path\r
-  instance.\r
+  Creates a device node.\r
 \r
   This function creates a new device node in a newly allocated buffer of size NodeLength and\r
   initializes the device path node header with NodeType and NodeSubType.  The new device path node\r
@@ -396,7 +405,7 @@ GetNextDevicePathInstance (
   @param  NodeSubType                The device node sub-type for the new device node.\r
   @param  NodeLength                 The length of the new device node.\r
 \r
-  @return A pointer to the new create device path.\r
+  @return The new device path.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -502,13 +511,17 @@ DevicePathFromHandle (
   handle Device.  The allocated device path is returned.  If Device is NULL or Device is a handle\r
   that does not support the device path protocol, then a device path containing a single device\r
   path node for the file specified by FileName is allocated and returned.\r
+  The memory for the new device path is allocated from EFI boot services memory. It is the responsibility\r
+  of the caller to free the memory allocated.\r
+  \r
   If FileName is NULL, then ASSERT().\r
+  If FileName is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
   @param  Device                     A pointer to a device handle.  This parameter is optional and\r
                                      may be NULL.\r
   @param  FileName                   A pointer to a Null-terminated Unicode string.\r
 \r
-  @return A pointer to the new created file device path.\r
+  @return The allocated device path.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
index 37a0ae792be21579854fd232208d199d3585b6a2..1380a03d16e086ab5c0d23bbd14543f67d7c0c48 100644 (file)
@@ -67,8 +67,9 @@ DevicePathLibConstructor (
   DevicePath including the end of device path node.  If DevicePath is NULL, then 0 is returned.\r
 \r
   @param  DevicePath                 A pointer to a device path data structure.\r
-\r
-  @return The size of a device path in bytes.\r
+  \r
+  @retval 0       If DevicePath is NULL.\r
+  @retval Others  The size of a device path in bytes.\r
 \r
 **/\r
 UINTN\r
@@ -87,11 +88,14 @@ GetDevicePathSize (
   DevicePath is NULL, then NULL is returned.  If the memory is successfully allocated, then the\r
   contents of DevicePath are copied to the newly allocated buffer, and a pointer to that buffer\r
   is returned.  Otherwise, NULL is returned.  \r
+  The memory for the new device path is allocated from EFI boot services memory. \r
+  It is the responsibility of the caller to free the memory allocated. \r
   \r
   @param  DevicePath                 A pointer to a device path data structure.\r
 \r
-  @return A pointer to the duplicated device path.\r
-\r
+  @retval NULL    If DevicePath is NULL.\r
+  @retval Others  A pointer to the duplicated device path.\r
+  \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 EFIAPI\r
@@ -118,8 +122,10 @@ DuplicateDevicePath (
 \r
   @param  FirstDevicePath            A pointer to a device path data structure.\r
   @param  SecondDevicePath           A pointer to a device path data structure.\r
-\r
-  @return A pointer to the new device path.\r
+  \r
+  @retval NULL      If there is not enough memory for the newly allocated buffer.\r
+  @retval Others    A pointer to the new device path if success.\r
+                    Or a copy an end-of-device-path if both FirstDevicePath and SecondDevicePath are NULL.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -150,7 +156,11 @@ AppendDevicePath (
   @param  DevicePath                 A pointer to a device path data structure.\r
   @param  DevicePathNode             A pointer to a single device path node.\r
 \r
-  @return A pointer to the new device path.\r
+  @retval NULL      If there is not enough memory for the new device path.\r
+  @retval Others    A pointer to the new device path if success.\r
+                    A copy of DevicePathNode followed by an end-of-device-path node \r
+                    if both FirstDevicePath and SecondDevicePath are NULL.\r
+                    A copy of an end-of-device-path node if both FirstDevicePath and SecondDevicePath are NULL.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -229,8 +239,7 @@ GetNextDevicePathInstance (
 }\r
 \r
 /**\r
-  Creates a copy of the current device path instance and returns a pointer to the next device path\r
-  instance.\r
+  Creates a device node.\r
 \r
   This function creates a new device node in a newly allocated buffer of size NodeLength and\r
   initializes the device path node header with NodeType and NodeSubType.  The new device path node\r
@@ -244,7 +253,7 @@ GetNextDevicePathInstance (
   @param  NodeSubType                The device node sub-type for the new device node.\r
   @param  NodeLength                 The length of the new device node.\r
 \r
-  @return A pointer to the new created file device path \r
+  @return The new device path.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -318,13 +327,17 @@ DevicePathFromHandle (
   handle Device.  The allocated device path is returned.  If Device is NULL or Device is a handle\r
   that does not support the device path protocol, then a device path containing a single device\r
   path node for the file specified by FileName is allocated and returned.\r
+  The memory for the new device path is allocated from EFI boot services memory. It is the responsibility\r
+  of the caller to free the memory allocated.\r
+  \r
   If FileName is NULL, then ASSERT().\r
+  If FileName is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
   @param  Device                     A pointer to a device handle.  This parameter is optional and\r
                                      may be NULL.\r
   @param  FileName                   A pointer to a Null-terminated Unicode string.\r
 \r
-  @return A pointer to the new created file device path \r
+  @return The allocated device path.\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r