]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Synchronize function comment in MdePkg\Library\BaseLib.h with the instance of this...
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Nov 2008 03:19:49 +0000 (03:19 +0000)
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Nov 2008 03:19:49 +0000 (03:19 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6718 6f19259b-4bc3-4df7-8a09-765794883524

28 files changed:
MdePkg/Include/Library/BaseLib.h
MdePkg/Library/BaseLib/ARShiftU64.c
MdePkg/Library/BaseLib/CheckSum.c
MdePkg/Library/BaseLib/Cpu.c
MdePkg/Library/BaseLib/DivS64x64Remainder.c
MdePkg/Library/BaseLib/Ebc/CpuBreakpoint.c
MdePkg/Library/BaseLib/GetPowerOfTwo32.c
MdePkg/Library/BaseLib/GetPowerOfTwo64.c
MdePkg/Library/BaseLib/HighBitSet32.c
MdePkg/Library/BaseLib/HighBitSet64.c
MdePkg/Library/BaseLib/LRotU32.c
MdePkg/Library/BaseLib/LRotU64.c
MdePkg/Library/BaseLib/LShiftU64.c
MdePkg/Library/BaseLib/LinkedList.c
MdePkg/Library/BaseLib/LongJump.c
MdePkg/Library/BaseLib/LowBitSet32.c
MdePkg/Library/BaseLib/LowBitSet64.c
MdePkg/Library/BaseLib/MultU64x32.c
MdePkg/Library/BaseLib/MultU64x64.c
MdePkg/Library/BaseLib/RRotU64.c
MdePkg/Library/BaseLib/String.c
MdePkg/Library/BaseLib/SwapBytes16.c
MdePkg/Library/BaseLib/SwapBytes32.c
MdePkg/Library/BaseLib/SwapBytes64.c
MdePkg/Library/BaseLib/Synchronization.c
MdePkg/Library/BaseLib/SynchronizationGcc.c
MdePkg/Library/BaseLib/SynchronizationMsc.c
MdePkg/Library/BaseLib/X86GetInterruptState.c

index 76c8481d34966241257c312d511797038b960b5a..3d9aaaf8226c4d8de62fe5aee0b2a5332446e27d 100644 (file)
@@ -148,7 +148,7 @@ typedef struct {
   @param  Destination Pointer to a Null-terminated Unicode string.\r
   @param  Source      Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destiantion\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -184,7 +184,7 @@ StrCpy (
   @param  Source      Pointer to a Null-terminated Unicode string.\r
   @param  Length      Maximum number of Unicode characters to copy.\r
 \r
-  @return Destination\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -349,7 +349,7 @@ StrnCmp (
   @param  Destination Pointer to a Null-terminated Unicode string.\r
   @param  Source      Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destination\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -394,7 +394,7 @@ StrCat (
   @param  Length      Maximum number of Unicode characters to concatenate from\r
                       Source.\r
 \r
-  @return Destination\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -406,7 +406,7 @@ StrnCat (
   );\r
 \r
 /**\r
-  Returns the first occurance of a Null-terminated Unicode sub-string\r
+  Returns the first occurrence of a Null-terminated Unicode sub-string\r
   in a Null-terminated Unicode string.\r
 \r
   This function scans the contents of the Null-terminated Unicode string\r
@@ -634,7 +634,7 @@ NibbleToHexChar (
   the last character in the output string. The one next to first byte will be put into the\r
   character before the last character. This rules applies to the rest of the bytes. The Unicode\r
   character by the last byte will be put into the first character in the output string. For example,\r
-  the input buffer for a 64-bits unsigned integrer 0x12345678abcdef1234 will be converted to\r
+  the input buffer for a 64-bits unsigned integer 0x12345678abcdef1234 will be converted to\r
   a Unicode string equal to L"12345678abcdef1234".\r
 \r
   @param String                        On input, String is pointed to the buffer allocated for the convertion.\r
@@ -642,10 +642,10 @@ NibbleToHexChar (
                                        The StringLen required to convert a N bytes Buffer will be a least equal to or greater \r
                                        than 2*N + 1.\r
   @param Buffer                        The pointer to a input buffer.\r
-  @param BufferSizeInBytes             Lenth in bytes of the input buffer.\r
+  @param BufferSizeInBytes             Length in bytes of the input buffer.\r
   \r
 \r
-  @retval  EFI_SUCCESS                 The convertion is successfull. All bytes in Buffer has been convert to the corresponding\r
+  @retval  EFI_SUCCESS                 The convertion is successful. All bytes in Buffer has been convert to the corresponding\r
                                        Unicode character and placed into the right place in String.\r
   @retval  EFI_BUFFER_TOO_SMALL        StringSizeInBytes is smaller than 2 * N + 1the number of bytes required to\r
                                        complete the convertion. \r
@@ -758,7 +758,7 @@ IsHexDigit (
   @param  Source        Pointer to a Null-terminated Unicode string.\r
   @param  Destination   Pointer to a Null-terminated ASCII string.\r
 \r
-  @return Destination\r
+  @return Destination.\r
 \r
 **/\r
 CHAR8 *\r
@@ -1067,7 +1067,7 @@ AsciiStrnCat (
 \r
 \r
 /**\r
-  Returns the first occurance of a Null-terminated ASCII sub-string\r
+  Returns the first occurrence of a Null-terminated ASCII sub-string\r
   in a Null-terminated ASCII string.\r
 \r
   This function scans the contents of the ASCII string specified by String\r
@@ -1087,7 +1087,7 @@ AsciiStrnCat (
 \r
   @retval NULL            If the SearchString does not appear in String.\r
   @retval others          If there is a match return the first occurrence of SearchingString.\r
-                          If the lenth of SearchString is zero,return String.\r
+                          If the length of SearchString is zero,return String.\r
 \r
 **/\r
 CHAR8 *\r
@@ -1278,7 +1278,7 @@ AsciiStrHexToUint64 (
   @param  Source        Pointer to a Null-terminated ASCII string.\r
   @param  Destination   Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destination\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -1299,7 +1299,7 @@ AsciiStrToUnicodeStr (
 \r
   @param  Value The 8-bit value to convert to BCD. Range 0..99.\r
 \r
-  @return The BCD value\r
+  @return The BCD value.\r
 \r
 **/\r
 UINT8\r
@@ -1603,7 +1603,7 @@ IsNodeAtEnd (
   @param  FirstEntry  A pointer to a node in a linked list.\r
   @param  SecondEntry A pointer to another node in the same linked list.\r
   \r
-  @return SecondEntry\r
+  @return SecondEntry.\r
 \r
 **/\r
 LIST_ENTRY *\r
@@ -1630,9 +1630,9 @@ SwapListEntries (
   linked list containing Entry, including the Entry node, is greater than\r
   or equal to PcdMaximumLinkedListLength, then ASSERT().\r
 \r
-  @param  Entry A pointer to a node in a linked list\r
+  @param  Entry A pointer to a node in a linked list.\r
 \r
-  @return Entry\r
+  @return Entry.\r
 \r
 **/\r
 LIST_ENTRY *\r
@@ -1657,7 +1657,7 @@ RemoveEntryList (
   @param  Operand The 64-bit operand to shift left.\r
   @param  Count   The number of bits to shift left.\r
 \r
-  @return Operand << Count\r
+  @return Operand << Count.\r
 \r
 **/\r
 UINT64\r
@@ -1819,7 +1819,7 @@ RRotU64 (
 \r
   @param  Operand The 32-bit operand to evaluate.\r
 \r
-  @retval 0-31  The lowest bit set in Operand was found.\r
+  @retval 0..31  The lowest bit set in Operand was found.\r
   @retval -1    Operand is zero.\r
 \r
 **/\r
@@ -1839,7 +1839,7 @@ LowBitSet32 (
 \r
   @param  Operand The 64-bit operand to evaluate.\r
 \r
-  @retval 0-63  The lowest bit set in Operand was found.\r
+  @retval 0..63  The lowest bit set in Operand was found.\r
   @retval -1    Operand is zero.\r
 \r
 \r
@@ -1861,7 +1861,7 @@ LowBitSet64 (
 \r
   @param  Operand The 32-bit operand to evaluate.\r
 \r
-  @retval 0-31  Position of the highest bit set in Operand if found.\r
+  @retval 0..31  Position of the highest bit set in Operand if found.\r
   @retval -1    Operand is zero.\r
 \r
 **/\r
@@ -1882,7 +1882,7 @@ HighBitSet32 (
 \r
   @param  Operand The 64-bit operand to evaluate.\r
 \r
-  @retval 0-63   Position of the highest bit set in Operand if found.\r
+  @retval 0..63   Position of the highest bit set in Operand if found.\r
   @retval -1     Operand is zero.\r
 \r
 **/\r
@@ -2175,7 +2175,7 @@ DivU64x64Remainder (
   NULL, then the 64-bit signed remainder is returned in Remainder. This\r
   function returns the 64-bit signed quotient.\r
 \r
-  It is the caller¡¯s responsibility to not call this function with a Divisor of 0.\r
+  It is the caller's responsibility to not call this function with a Divisor of 0.\r
   If Divisor is 0, then the quotient and remainder should be assumed to be \r
   the largest negative integer.\r
 \r
@@ -3089,7 +3089,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock accquired lock.\r
+  @return SpinLock acquired lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
index bd926f90340a0c170489aa3ec964cb877eb1dddc..3f66f2badc54969400cd56776592b415d2b216ae 100644 (file)
@@ -26,7 +26,7 @@
   @param  Operand The 64-bit operand to shift right.\r
   @param  Count   The number of bits to shift right.\r
 \r
-  @return Operand arithmetically shifted right by Count\r
+  @return Operand >> Count\r
 \r
 **/\r
 UINT64\r
index a89b7b17753ea65faac97edb35584a78dbd35254..7fad548aa98a2895065ef6cfd46728437bbb20d3 100644 (file)
 #include "BaseLibInternals.h"\r
 \r
 /**\r
-  Calculate the sum of all elements in a buffer in unit of UINT8. \r
+  Returns the sum of all elements in a buffer in unit of UINT8.\r
   During calculation, the carry bits are dropped.\r
 \r
-  This function calculates the sum of all elements in a buffer \r
-  in unit of UINT8. The carry bits in result of addition are dropped. \r
-  The result is returned as UINT8. If Length is Zero, then Zero is \r
+  This function calculates the sum of all elements in a buffer\r
+  in unit of UINT8. The carry bits in result of addition are dropped.\r
+  The result is returned as UINT8. If Length is Zero, then Zero is\r
   returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\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 buffer to carry out the sum operation.\r
-  @param  Length      The size, in bytes, of Buffer .\r
+  @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The sum of Buffer with carry bits dropped during additions.\r
+  @return Sum         The sum of Buffer with carry bits dropped during additions.\r
 \r
 **/\r
 UINT8\r
@@ -55,21 +55,21 @@ CalculateSum8 (
 \r
 \r
 /**\r
-  Returns the two's complement checksum of all elements in a buffer \r
+  Returns the two's complement checksum of all elements in a buffer\r
   of 8-bit values.\r
 \r
-  This function first calculates the sum of the 8-bit values in the \r
-  buffer specified by Buffer and Length.  The carry bits in the result \r
-  of addition are dropped. Then, the two's complement of the sum is \r
+  This function first calculates the sum of the 8-bit values in the\r
+  buffer specified by Buffer and Length.  The carry bits in the result\r
+  of addition are dropped. Then, the two's complement of the sum is\r
   returned.  If Length is 0, then 0 is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer      Pointer to the buffer to carry out the checksum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The 2's complement checksum of Buffer.\r
+  @return Checksum    The 2's complement checksum of Buffer.\r
 \r
 **/\r
 UINT8\r
@@ -90,13 +90,13 @@ CalculateCheckSum8 (
 }\r
 \r
 /**\r
-  Returns the sum of all elements in a buffer of 16-bit values.  During \r
+  Returns the sum of all elements in a buffer of 16-bit values.  During\r
   calculation, the carry bits are dropped.\r
 \r
-  This function calculates the sum of the 16-bit values in the buffer \r
-  specified by Buffer and Length. The carry bits in result of addition are dropped. \r
-  The 16-bit result is returned.  If Length is 0, then 0 is returned.  \r
-  \r
+  This function calculates the sum of the 16-bit values in the buffer\r
+  specified by Buffer and Length. The carry bits in result of addition are dropped.\r
+  The 16-bit result is returned.  If Length is 0, then 0 is returned.\r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -105,7 +105,7 @@ CalculateCheckSum8 (
   @param  Buffer      Pointer to the buffer to carry out the sum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The sum of Buffer with carry bits dropped during additions.\r
+  @return Sum         The sum of Buffer with carry bits dropped during additions.\r
 \r
 **/\r
 UINT16\r
@@ -134,23 +134,23 @@ CalculateSum16 (
 \r
 \r
 /**\r
-  Returns the two's complement checksum of all elements in a buffer of \r
+  Returns the two's complement checksum of all elements in a buffer of\r
   16-bit values.\r
 \r
-  This function first calculates the sum of the 16-bit values in the buffer \r
-  specified by Buffer and Length.  The carry bits in the result of addition \r
-  are dropped. Then, the two's complement of the sum is returned.  If Length \r
+  This function first calculates the sum of the 16-bit values in the buffer\r
+  specified by Buffer and Length.  The carry bits in the result of addition\r
+  are dropped. Then, the two's complement of the sum is returned.  If Length\r
   is 0, then 0 is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\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 buffer to carry out the checksum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The 2's complement checksum of Buffer.\r
+  @return Checksum    The 2's complement checksum of Buffer.\r
 \r
 **/\r
 UINT16\r
@@ -172,13 +172,13 @@ CalculateCheckSum16 (
 \r
 \r
 /**\r
-  Returns the sum of all elements in a buffer of 32-bit values.  During \r
+  Returns the sum of all elements in a buffer of 32-bit values. During\r
   calculation, the carry bits are dropped.\r
 \r
-  This function calculates the sum of the 32-bit values in the buffer \r
-  specified by Buffer and Length. The carry bits in result of addition are dropped. \r
-  The 32-bit result is returned.  If Length is 0, then 0 is returned.  \r
-  \r
+  This function calculates the sum of the 32-bit values in the buffer\r
+  specified by Buffer and Length. The carry bits in result of addition are dropped.\r
+  The 32-bit result is returned. If Length is 0, then 0 is returned.\r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
@@ -187,7 +187,7 @@ CalculateCheckSum16 (
   @param  Buffer      Pointer to the buffer to carry out the sum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The sum of Buffer with carry bits dropped during additions.\r
+  @return Sum         The sum of Buffer with carry bits dropped during additions.\r
 \r
 **/\r
 UINT32\r
@@ -216,23 +216,23 @@ CalculateSum32 (
 \r
 \r
 /**\r
-  Returns the two's complement checksum of all elements in a buffer of \r
+  Returns the two's complement checksum of all elements in a buffer of\r
   32-bit values.\r
 \r
-  This function first calculates the sum of the 32-bit values in the buffer \r
-  specified by Buffer and Length.  The carry bits in the result of addition \r
-  are dropped. Then, the two's complement of the sum is returned.  If Length \r
+  This function first calculates the sum of the 32-bit values in the buffer\r
+  specified by Buffer and Length.  The carry bits in the result of addition\r
+  are dropped. Then, the two's complement of the sum is returned.  If Length\r
   is 0, then 0 is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\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 buffer to carry out the checksum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The 2's complement checksum of Buffer.\r
+  @return Checksum    The 2's complement checksum of Buffer.\r
 \r
 **/\r
 UINT32\r
@@ -254,13 +254,13 @@ CalculateCheckSum32 (
 \r
 \r
 /**\r
-  Returns the sum of all elements in a buffer of 64-bit values.  During \r
+  Returns the sum of all elements in a buffer of 64-bit values.  During\r
   calculation, the carry bits are dropped.\r
 \r
-  This function calculates the sum of the 64-bit values in the buffer \r
-  specified by Buffer and Length. The carry bits in result of addition are dropped. \r
-  The 64-bit result is returned.  If Length is 0, then 0 is returned.  \r
-  \r
+  This function calculates the sum of the 64-bit values in the buffer\r
+  specified by Buffer and Length. The carry bits in result of addition are dropped.\r
+  The 64-bit result is returned.  If Length is 0, then 0 is returned.\r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
@@ -269,7 +269,7 @@ CalculateCheckSum32 (
   @param  Buffer      Pointer to the buffer to carry out the sum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The sum of Buffer with carry bits dropped during additions.\r
+  @return Sum         The sum of Buffer with carry bits dropped during additions.\r
 \r
 **/\r
 UINT64\r
@@ -298,23 +298,23 @@ CalculateSum64 (
 \r
 \r
 /**\r
-  Returns the two's complement checksum of all elements in a buffer of \r
+  Returns the two's complement checksum of all elements in a buffer of\r
   64-bit values.\r
 \r
-  This function first calculates the sum of the 64-bit values in the buffer \r
-  specified by Buffer and Length.  The carry bits in the result of addition \r
-  are dropped. Then, the two's complement of the sum is returned.  If Length \r
+  This function first calculates the sum of the 64-bit values in the buffer\r
+  specified by Buffer and Length.  The carry bits in the result of addition\r
+  are dropped. Then, the two's complement of the sum is returned.  If Length\r
   is 0, then 0 is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\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 buffer to carry out the checksum operation.\r
   @param  Length      The size, in bytes, of Buffer.\r
 \r
-  @return The 2's complement checksum of Buffer.\r
+  @return Checksum    The 2's complement checksum of Buffer.\r
 \r
 **/\r
 UINT64\r
index e6fe5611c063176e9680df359756d4b6c7f7e779..30986bf28abf91710b95618987dd10afec7afe28 100644 (file)
@@ -47,7 +47,7 @@ SaveAndDisableInterrupts (
   @param  InterruptState  TRUE if interrupts should enabled. FALSE if\r
                           interrupts should be disabled.\r
 \r
-  @return Input interrupt status to be set.\r
+  @return InterruptState\r
 \r
 **/\r
 BOOLEAN\r
index f218a7a13fbc5181c7de26b9f34977b89fe249fd..5fcc96a1741a06a6a30f2dfa26c7c4288139e14f 100644 (file)
   NULL, then the 64-bit signed remainder is returned in Remainder. This\r
   function returns the 64-bit signed quotient.\r
 \r
+  It is the caller¡¯s responsibility to not call this function with a Divisor of 0.\r
+  If Divisor is 0, then the quotient and remainder should be assumed to be \r
+  the largest negative integer.\r
+\r
   If Divisor is 0, then ASSERT().\r
 \r
   @param  Dividend  A 64-bit signed value.\r
index 214e2f5a4cfcc85f70bb3e67e04f98502265084c..07572ddc8084979a512cb85943dff176ec67d53e 100644 (file)
@@ -80,8 +80,8 @@ EnableInterrupts (
 /**\r
   Retrieves the current CPU interrupt state.\r
 \r
-  Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
-  currently enabled. Otherwise returns FALSE.\r
+  Returns TRUE is interrupts are currently enabled. Otherwise\r
+  returns FALSE.\r
 \r
   @retval TRUE  CPU interrupts are enabled.\r
   @retval FALSE CPU interrupts are disabled.\r
index 5cabff90695b612830726c74364d1be9f45cb1ff..3472b7b06ef1e2d982e81a340d6340bdd4237b73 100644 (file)
@@ -19,7 +19,7 @@
 \r
 /**\r
   Returns the value of the highest bit set in a 32-bit value. Equivalent to\r
-  1 << HighBitSet32(x).\r
+  1 << log2(x).\r
 \r
   This function computes the value of the highest bit set in the 32-bit value\r
   specified by Operand. If Operand is zero, then zero is returned.\r
index 2f0f411ae409e39f6de41c3ff7000e68321b4a22..344ce27519e0c70522f8a64896016dc043ba4d86 100644 (file)
@@ -19,7 +19,7 @@
 \r
 /**\r
   Returns the value of the highest bit set in a 64-bit value. Equivalent to\r
-  1 << HighBitSet64(x).\r
+  1 << log2(x).\r
 \r
   This function computes the value of the highest bit set in the 64-bit value\r
   specified by Operand. If Operand is zero, then zero is returned.\r
index a8f7b70a214b5d77b5df563b6e075193430ca3e7..2c5377c8fc776a7336b31d99b70d86549ccaab8e 100644 (file)
@@ -27,8 +27,8 @@
 \r
   @param  Operand The 32-bit operand to evaluate.\r
 \r
-  @return Position of the highest bit set in Operand if found.\r
-  @retval -1  Operand is zero.\r
+  @retval 0..31  Position of the highest bit set in Operand if found.\r
+  @retval -1    Operand is zero.\r
 \r
 **/\r
 INTN\r
index 68b72a95d05233edb40646ffeb4459949385c77d..621284c2a45781d979e0eab8116fa6a406c53e13 100644 (file)
@@ -27,8 +27,8 @@
 \r
   @param  Operand The 64-bit operand to evaluate.\r
 \r
-  @return Position of the highest bit set in Operand if found.\r
-  @retval -1  Operand is zero.\r
+  @retval 0..63   Position of the highest bit set in Operand if found.\r
+  @retval -1     Operand is zero.\r
 \r
 **/\r
 INTN\r
index 4c709770b24efde20cb9218ba5229456cb4f204f..e8f25ffe552e7d536b4b4e9d7022bbf4e28abe8d 100644 (file)
@@ -27,7 +27,7 @@
   @param  Operand The 32-bit operand to rotate left.\r
   @param  Count   The number of bits to rotate left.\r
 \r
-  @return Operand <<< Count\r
+  @return Operand << Count\r
 \r
 **/\r
 UINT32\r
index 441b8f76e77ae433c4c1590227434f7dbcd41368..86792cd10da1c4887c81038f3ab166c5ac5fb185 100644 (file)
@@ -27,7 +27,7 @@
   @param  Operand The 64-bit operand to rotate left.\r
   @param  Count   The number of bits to rotate left.\r
 \r
-  @return Operand <<< Count\r
+  @return Operand << Count\r
 \r
 **/\r
 UINT64\r
index b8eb3c96ddee4af87f5de7ce9112ba16a2b7c8e9..df4cd6ca71e06dc07f2948d41bfe2be0c17aa1a2 100644 (file)
@@ -26,7 +26,7 @@
   @param  Operand The 64-bit operand to shift left.\r
   @param  Count   The number of bits to shift left.\r
 \r
-  @return Operand << Count\r
+  @return Operand << Count.\r
 \r
 **/\r
 UINT64\r
index d0d518a1e9eb8bca89c244cac616a390c2761686..ef69d1827acb2ccacdfe283b20aaf283c0fa44ef 100644 (file)
@@ -85,7 +85,7 @@ IsNodeInList (
 \r
   If ListHead is NULL, then ASSERT().\r
 \r
-  @param  List  A pointer to the head node of a new doubly linked list.\r
+  @param  ListHead  A pointer to the head node of a new doubly linked list.\r
 \r
   @return ListHead\r
 \r
@@ -113,12 +113,13 @@ InitializeListHead (
 \r
   If ListHead is NULL, then ASSERT().\r
   If Entry is NULL, then ASSERT().\r
-  If ListHead was not initialized with InitializeListHead(), then ASSERT().\r
+  If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or\r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number\r
   of nodes in ListHead, including the ListHead node, is greater than or\r
   equal to PcdMaximumLinkedListLength, then ASSERT().\r
 \r
-  @param  List      A pointer to the head node of a doubly linked list.\r
+  @param  ListHead  A pointer to the head node of a doubly linked list.\r
   @param  Entry     A pointer to a node that is to be inserted at the beginning\r
                     of a doubly linked list.\r
 \r
@@ -153,12 +154,13 @@ InsertHeadList (
 \r
   If ListHead is NULL, then ASSERT().\r
   If Entry is NULL, then ASSERT().\r
-  If ListHead was not initialized with InitializeListHead(), then ASSERT().\r
+  If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or \r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number\r
   of nodes in ListHead, including the ListHead node, is greater than or\r
   equal to PcdMaximumLinkedListLength, then ASSERT().\r
 \r
-  @param  List      A pointer to the head node of a doubly linked list.\r
+  @param  ListHead  A pointer to the head node of a doubly linked list.\r
   @param  Entry     A pointer to a node that is to be added at the end of the\r
                     doubly linked list.\r
 \r
@@ -187,12 +189,13 @@ InsertTailList (
 /**\r
   Retrieves the first node of a doubly linked list.\r
 \r
-  Returns the first node of a doubly linked list. List must have been\r
-  initialized with InitializeListHead(). If List is empty, then NULL is\r
-  returned.\r
+  Returns the first node of a doubly linked list.  List must have been \r
+  initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead().\r
+  If List is empty, then List is returned.\r
 \r
   If List is NULL, then ASSERT().\r
-  If List was not initialized with InitializeListHead(), then ASSERT().\r
+  If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or \r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and the number of nodes\r
   in List, including the List node, is greater than or equal to\r
   PcdMaximumLinkedListLength, then ASSERT().\r
@@ -220,13 +223,14 @@ GetFirstNode (
 /**\r
   Retrieves the next node of a doubly linked list.\r
 \r
-  Returns the node of a doubly linked list that follows Node. List must have\r
-  been initialized with InitializeListHead(). If List is empty, then List is\r
-  returned.\r
+  Returns the node of a doubly linked list that follows Node.  \r
+  List must have been initialized with INTIALIZE_LIST_HEAD_VARIABLE()\r
+  or InitializeListHead().  If List is empty, then List is returned.\r
 \r
   If List is NULL, then ASSERT().\r
   If Node is NULL, then ASSERT().\r
-  If List was not initialized with InitializeListHead(), then ASSERT().\r
+  If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or \r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and List contains more than\r
   PcdMaximumLinkedListLenth nodes, then ASSERT().\r
   If Node is not a node in List, then ASSERT().\r
@@ -260,12 +264,13 @@ GetNextNode (
   zero nodes, this function returns TRUE. Otherwise, it returns FALSE.\r
 \r
   If ListHead is NULL, then ASSERT().\r
-  If ListHead was not initialized with InitializeListHead(), then ASSERT().\r
+  If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or \r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and the number of nodes\r
   in List, including the List node, is greater than or equal to\r
   PcdMaximumLinkedListLength, then ASSERT().\r
 \r
-  @param  List  A pointer to the head node of a doubly linked list.\r
+  @param  ListHead  A pointer to the head node of a doubly linked list.\r
 \r
   @retval TRUE  The linked list is empty.\r
   @retval FALSE The linked list is not empty.\r
@@ -292,11 +297,12 @@ IsListEmpty (
 \r
   Returns TRUE if Node is equal to List.  Returns FALSE if Node is one of the\r
   nodes in the doubly linked list specified by List.  List must have been\r
-  initialized with InitializeListHead().\r
+  initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead().\r
 \r
   If List is NULL, then ASSERT().\r
   If Node is NULL, then ASSERT().\r
-  If List was not initialized with InitializeListHead(), then ASSERT().\r
+  If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead(), \r
+  then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and the number of nodes\r
   in List, including the List node, is greater than or equal to\r
   PcdMaximumLinkedListLength, then ASSERT().\r
@@ -329,11 +335,12 @@ IsNull (
 \r
   Returns TRUE if Node is the last node in the doubly linked list specified by\r
   List. Otherwise, FALSE is returned. List must have been initialized with\r
-  InitializeListHead().\r
+  INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead().\r
 \r
   If List is NULL, then ASSERT().\r
   If Node is NULL, then ASSERT().\r
-  If List was not initialized with InitializeListHead(), then ASSERT().\r
+  If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or\r
+  InitializeListHead(), then ASSERT().\r
   If PcdMaximumLinkedListLenth is not zero, and the number of nodes\r
   in List, including the List node, is greater than or equal to\r
   PcdMaximumLinkedListLength, then ASSERT().\r
@@ -369,8 +376,8 @@ IsNodeAtEnd (
   Otherwise, the location of the FirstEntry node is swapped with the location\r
   of the SecondEntry node in a doubly linked list. SecondEntry must be in the\r
   same double linked list as FirstEntry and that double linked list must have\r
-  been initialized with InitializeListHead(). SecondEntry is returned after the\r
-  nodes are swapped.\r
+  been initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead(). \r
+  SecondEntry is returned after the nodes are swapped.\r
 \r
   If FirstEntry is NULL, then ASSERT().\r
   If SecondEntry is NULL, then ASSERT().\r
@@ -382,8 +389,8 @@ IsNodeAtEnd (
 \r
   @param  FirstEntry  A pointer to a node in a linked list.\r
   @param  SecondEntry A pointer to another node in the same linked list.\r
-  \r
-  @return SecondEntry after the nodes are swapped\r
+\r
+  @return SecondEntry.\r
 \r
 **/\r
 LIST_ENTRY *\r
@@ -449,11 +456,9 @@ SwapListEntries (
   linked list containing Entry, including the Entry node, is greater than\r
   or equal to PcdMaximumLinkedListLength, then ASSERT().\r
 \r
-  @param  Entry A pointer to a node in a linked list\r
+  @param  Entry A pointer to a node in a linked list.\r
 \r
-  @return The node following Entry in the doubly linked list.\r
-          If Entry is the only node in the linked list, then\r
-          the head node of the linked list is returned.\r
+  @return Entry.\r
 \r
 **/\r
 LIST_ENTRY *\r
index e20444b86d85e46b25f05d185b9d27b3a76a3dc3..958e850d125697f040b96fcdfa286f76fb46bc6d 100644 (file)
 /**\r
   Restores the CPU context that was saved with SetJump().\r
 \r
-  Restores the CPU context from the buffer specified by JumpBuffer.\r
-  This function never returns to the caller.\r
-  Instead is resumes execution based on the state of JumpBuffer.\r
+  Restores the CPU context from the buffer specified by JumpBuffer. This\r
+  function never returns to the caller. Instead is resumes execution based on\r
+  the state of JumpBuffer.\r
 \r
   If JumpBuffer is NULL, then ASSERT().\r
   For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r
   If Value is 0, then ASSERT().\r
 \r
-  @param  JumpBuffer    A pointer to CPU context buffer.\r
-  @param  Value         The value to return when the SetJump() context is restored.\r
+  @param  JumpBuffer  A pointer to CPU context buffer.\r
+  @param  Value       The value to return when the SetJump() context is\r
+                      restored and must be non-zero.\r
 \r
 **/\r
 VOID\r
index ed1ead6cc0ebfd5e0088231b28595c4a55df8ec6..db391edd39d192882de746848b6809ede3c84025 100644 (file)
@@ -26,8 +26,8 @@
 \r
   @param  Operand The 32-bit operand to evaluate.\r
 \r
-  @return Position of the lowest bit set in Operand if found.\r
-  @retval -1 Operand is zero.\r
+  @retval 0..31  The lowest bit set in Operand was found.\r
+  @retval -1    Operand is zero.\r
 \r
 **/\r
 INTN\r
index 3edfa6506e50dc97999c5ee19d3030f506bfc5d8..6457ed623ec569b55ca0c68a7f699f6fa02b07a6 100644 (file)
@@ -26,8 +26,9 @@
 \r
   @param  Operand The 64-bit operand to evaluate.\r
 \r
-  @return Position of the lowest bit set in Operand if found.\r
-  @retval -1  Operand is zero.\r
+  @retval 0..63  The lowest bit set in Operand was found.\r
+  @retval -1    Operand is zero.\r
+\r
 \r
 **/\r
 INTN\r
index 7a8dca8fc06470724139734161dcda124716c87d..7a3e1c7de4dae2c63d8c673d07057a6b1764900b 100644 (file)
@@ -25,6 +25,8 @@
   unsigned value Multiplier and generates a 64-bit unsigned result. This 64-\r
   bit unsigned result is returned.\r
 \r
+  If the result overflows, then ASSERT().\r
+\r
   @param  Multiplicand  A 64-bit unsigned value.\r
   @param  Multiplier    A 32-bit unsigned value.\r
 \r
index 3f96103c382d710c60a837c3d600d4e800311695..dbbc0bab95694b3902339fb1f1bdd0119f22c4ae 100644 (file)
@@ -25,6 +25,8 @@
   unsigned value Multiplier and generates a 64-bit unsigned result. This 64-\r
   bit unsigned result is returned.\r
 \r
+  If the result overflows, then ASSERT().\r
+\r
   @param  Multiplicand  A 64-bit unsigned value.\r
   @param  Multiplier    A 64-bit unsigned value.\r
 \r
index abce4f72e38c79b1ce899520db4e1dc5c3794264..2446e832379bf5c3af3f522e8a1d37e1fbe454b7 100644 (file)
@@ -27,7 +27,7 @@
   @param  Operand The 64-bit operand to rotate right.\r
   @param  Count   The number of bits to rotate right.\r
 \r
-  @return Operand >>> Count\r
+  @return Operand >> Count\r
 \r
 **/\r
 UINT64\r
index c6a200da3ce932e37323b5fe174bfd34d9087929..e056fa06cbe529a323923e53d15d9711bb510e60 100644 (file)
   If Source is not aligned on a 16-bit boundary, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and Source contains more than\r
-  PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  Destination Pointer to a Null-terminated Unicode string.\r
   @param  Source      Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destination pointing to the copied string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -79,9 +79,8 @@ StrCpy (
 }\r
 \r
 /**\r
-  Copies one Null-terminated Unicode string with a maximum length to another\r
-  Null-terminated Unicode string with a maximum length and returns the new\r
-  Unicode string.\r
+  Copies up to a specified length from one Null-terminated Unicode string  to \r
+  another Null-terminated Unicode string and returns the new Unicode string.\r
 \r
   This function copies the contents of the Unicode string Source to the Unicode\r
   string Destination, and returns Destination. At most, Length Unicode\r
@@ -97,14 +96,14 @@ StrCpy (
   If Length > 0 and Source is not aligned on a 16-bit bounadry, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and Source contains more than\r
-  PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  Destination Pointer to a Null-terminated Unicode string.\r
   @param  Source      Pointer to a Null-terminated Unicode string.\r
   @param  Length      Maximum number of Unicode characters to copy.\r
 \r
-  @return Destination pointing to the copied string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -153,7 +152,7 @@ StrnCpy (
   If String is NULL, then ASSERT().\r
   If String is not aligned on a 16-bit boundary, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and String contains more than\r
-  PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  String  Pointer to a Null-terminated Unicode string.\r
@@ -188,18 +187,18 @@ StrLen (
   Returns the size of a Null-terminated Unicode string in bytes, including the\r
   Null terminator.\r
 \r
-  This function returns the size, in bytes, of the Null-terminated Unicode\r
-  string specified by String.\r
+  This function returns the size, in bytes, of the Null-terminated Unicode string \r
+  specified by String.\r
 \r
   If String is NULL, then ASSERT().\r
   If String is not aligned on a 16-bit boundary, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and String contains more than\r
-  PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  String  Pointer to a Null-terminated Unicode string.\r
 \r
-  @return The size in bytes of String.\r
+  @return The size of String.\r
 \r
 **/\r
 UINTN\r
@@ -226,18 +225,17 @@ StrSize (
   If SecondString is NULL, then ASSERT().\r
   If SecondString is not aligned on a 16-bit boundary, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and FirstString contains more\r
-  than PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  than PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and SecondString contains more\r
-  than PcdMaximumUnicodeStringLength Unicode characters not including the \r
+  than PcdMaximumUnicodeStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  FirstString   Pointer to a Null-terminated Unicode string.\r
   @param  SecondString  Pointer to a Null-terminated Unicode string.\r
 \r
   @retval 0      FirstString is identical to SecondString.\r
-  @return The first mismatched Unicode character in SecondString subtracted\r
-          from the first mismatched Unicode character in FirstString.\r
+  @return others FirstString is not identical to SecondString.\r
 \r
 **/\r
 INTN\r
@@ -261,8 +259,8 @@ StrCmp (
 }\r
 \r
 /**\r
-  Compares two Null-terminated Unicode strings with maximum lengths, and\r
-  returns the difference between the first mismatched Unicode characters.\r
+  Compares up to a specified length the contents of two Null-terminated Unicode strings,\r
+  and returns the difference between the first mismatched Unicode characters.\r
 \r
   This function compares the Null-terminated Unicode string FirstString to the\r
   Null-terminated Unicode string SecondString. At most, Length Unicode\r
@@ -287,8 +285,7 @@ StrCmp (
   @param  Length        Maximum number of Unicode characters to compare.\r
 \r
   @retval 0      FirstString is identical to SecondString.\r
-  @return The value returned is the first mismatched Unicode character in SecondString\r
-          subtracted from the first mismatched Unicode character in FirstString.\r
+  @return others FirstString is not identical to SecondString.\r
 \r
 **/\r
 INTN\r
@@ -332,7 +329,9 @@ StrnCmp (
   results are undefined.\r
 \r
   If Destination is NULL, then ASSERT().\r
+  If Destination is not aligned on a 16-bit bounadary, then ASSERT().\r
   If Source is NULL, then ASSERT().\r
+  If Source is not aligned on a 16-bit bounadary, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
   If PcdMaximumUnicodeStringLength is not zero, and Destination contains more\r
   than PcdMaximumUnicodeStringLength Unicode characters not including the\r
@@ -348,7 +347,7 @@ StrnCmp (
   @param  Destination Pointer to a Null-terminated Unicode string.\r
   @param  Source      Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destination pointing to the concatenated Unicode string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -369,8 +368,8 @@ StrCat (
 }\r
 \r
 /**\r
-  Concatenates one Null-terminated Unicode string with a maximum length to the\r
-  end of another Null-terminated Unicode string, and returns the concatenated\r
+  Concatenates up to a specified length one Null-terminated Unicode to the end \r
+  of another Null-terminated Unicode string, and returns the concatenated \r
   Unicode string.\r
 \r
   This function concatenates two Null-terminated Unicode strings. The contents\r
@@ -402,7 +401,7 @@ StrCat (
   @param  Length      Maximum number of Unicode characters to concatenate from\r
                       Source.\r
 \r
-  @return Destination pointing to the concatenated Unicode string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -424,29 +423,29 @@ StrnCat (
 }\r
 \r
 /**\r
-  Returns the first occurance of a Null-terminated Unicode sub-string \r
+  Returns the first occurrence of a Null-terminated Unicode sub-string\r
   in a Null-terminated Unicode string.\r
 \r
-  This function scans the contents of the Null-terminated Unicode string \r
-  specified by String and returns the first occurrence of SearchString.  \r
-  If SearchString is not found in String, then NULL is returned.  If \r
-  the length of SearchString is zero, then String is \r
+  This function scans the contents of the Null-terminated Unicode string\r
+  specified by String and returns the first occurrence of SearchString.\r
+  If SearchString is not found in String, then NULL is returned.  If\r
+  the length of SearchString is zero, then String is\r
   returned.\r
-  \r
+\r
   If String is NULL, then ASSERT().\r
   If String is not aligned on a 16-bit boundary, then ASSERT().\r
   If SearchString is NULL, then ASSERT().\r
   If SearchString is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
-  If PcdMaximumUnicodeStringLength is not zero, and SearchString \r
-  or String contains more than PcdMaximumUnicodeStringLength Unicode \r
+  If PcdMaximumUnicodeStringLength is not zero, and SearchString\r
+  or String contains more than PcdMaximumUnicodeStringLength Unicode\r
   characters not including the Null-terminator, then ASSERT().\r
 \r
-  @param  String        Pointer to a Null-terminated Unicode string.\r
-  @param  SearchString  Pointer to a Null-terminated Unicode string to search for.\r
+  @param  String          Pointer to a Null-terminated Unicode string.\r
+  @param  SearchString    Pointer to a Null-terminated Unicode string to search for.\r
 \r
-  @retval NULL          If the SearchString does not appear in String.\r
-  @return Pointer to the matching sub-string.\r
+  @retval NULL            If the SearchString does not appear in String.\r
+  @return others          If there is a match.\r
 \r
 **/\r
 CHAR16 *\r
@@ -597,37 +596,37 @@ InternalIsHexaDecimalDigitCharacter (
 }\r
 \r
 /**\r
-  Convert a Null-terminated Unicode decimal string to a value of \r
+  Convert a Null-terminated Unicode decimal string to a value of\r
   type UINTN.\r
 \r
-  This function returns a value of type UINTN by interpreting the contents \r
-  of the Unicode string specified by String as a decimal number. The format \r
+  This function returns a value of type UINTN by interpreting the contents\r
+  of the Unicode string specified by String as a decimal number. The format\r
   of the input Unicode string String is:\r
-  \r
-                  [spaces] [decimal digits].\r
-                  \r
-  The valid decimal digit character is in the range [0-9]. The \r
-  function will ignore the pad space, which includes spaces or \r
-  tab characters, before [decimal digits]. The running zero in the \r
-  beginning of [decimal digits] will be ignored. Then, the function \r
-  stops at the first character that is a not a valid decimal character \r
-  or a Null-terminator, whichever one comes first. \r
-  \r
+\r
+                    [spaces] [decimal digits].\r
+\r
+  The valid decimal digit character is in the range [0-9]. The\r
+  function will ignore the pad space, which includes spaces or\r
+  tab characters, before [decimal digits]. The running zero in the\r
+  beginning of [decimal digits] will be ignored. Then, the function\r
+  stops at the first character that is a not a valid decimal character\r
+  or a Null-terminator, whichever one comes first.\r
+\r
   If String is NULL, then ASSERT().\r
-  If String is not aligned in a 16-bit boundary, then ASSERT().  \r
+  If String is not aligned in a 16-bit boundary, then ASSERT().\r
   If String has only pad spaces, then 0 is returned.\r
-  If String has no pad spaces or valid decimal digits, \r
+  If String has no pad spaces or valid decimal digits,\r
   then 0 is returned.\r
-  If the number represented by String overflows according \r
+  If the number represented by String overflows according\r
   to the range defined by UINTN, then ASSERT().\r
-  \r
-  If PcdMaximumUnicodeStringLength is not zero, and String contains \r
-  more than PcdMaximumUnicodeStringLength Unicode characters not including \r
+\r
+  If PcdMaximumUnicodeStringLength is not zero, and String contains\r
+  more than PcdMaximumUnicodeStringLength Unicode characters not including\r
   the Null-terminator, then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated Unicode string.\r
+  @param  String      Pointer to a Null-terminated Unicode string.\r
 \r
-  @return The value of type UINTN converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINTN\r
@@ -679,37 +678,37 @@ StrDecimalToUintn (
 \r
 \r
 /**\r
-  Convert a Null-terminated Unicode decimal string to a value of \r
+  Convert a Null-terminated Unicode decimal string to a value of\r
   type UINT64.\r
 \r
-  This function returns a value of type UINT64 by interpreting the contents \r
-  of the Unicode string specified by String as a decimal number. The format \r
+  This function returns a value of type UINT64 by interpreting the contents\r
+  of the Unicode string specified by String as a decimal number. The format\r
   of the input Unicode string String is:\r
-  \r
-                  [spaces] [decimal digits].\r
-                  \r
-  The valid decimal digit character is in the range [0-9]. The \r
-  function will ignore the pad space, which includes spaces or \r
-  tab characters, before [decimal digits]. The running zero in the \r
-  beginning of [decimal digits] will be ignored. Then, the function \r
-  stops at the first character that is a not a valid decimal character \r
-  or a Null-terminator, whichever one comes first. \r
-  \r
+\r
+                   [spaces] [decimal digits].\r
+\r
+  The valid decimal digit character is in the range [0-9]. The\r
+  function will ignore the pad space, which includes spaces or\r
+  tab characters, before [decimal digits]. The running zero in the\r
+  beginning of [decimal digits] will be ignored. Then, the function\r
+  stops at the first character that is a not a valid decimal character\r
+  or a Null-terminator, whichever one comes first.\r
+\r
   If String is NULL, then ASSERT().\r
-  If String is not aligned in a 16-bit boundary, then ASSERT().  \r
+  If String is not aligned in a 16-bit boundary, then ASSERT().\r
   If String has only pad spaces, then 0 is returned.\r
-  If String has no pad spaces or valid decimal digits, \r
+  If String has no pad spaces or valid decimal digits,\r
   then 0 is returned.\r
-  If the number represented by String overflows according \r
+  If the number represented by String overflows according\r
   to the range defined by UINT64, then ASSERT().\r
-  \r
-  If PcdMaximumUnicodeStringLength is not zero, and String contains \r
-  more than PcdMaximumUnicodeStringLength Unicode characters not including \r
+\r
+  If PcdMaximumUnicodeStringLength is not zero, and String contains\r
+  more than PcdMaximumUnicodeStringLength Unicode characters not including\r
   the Null-terminator, then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated Unicode string.\r
+  @param  String          Pointer to a Null-terminated Unicode string.\r
 \r
-  @return The value of type UINT64 converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINT64\r
@@ -762,36 +761,36 @@ StrDecimalToUint64 (
 /**\r
   Convert a Null-terminated Unicode hexadecimal string to a value of type UINTN.\r
 \r
-  This function returns a value of type UINTN by interpreting the contents \r
-  of the Unicode string specified by String as a hexadecimal number. \r
+  This function returns a value of type UINTN by interpreting the contents\r
+  of the Unicode string specified by String as a hexadecimal number.\r
   The format of the input Unicode string String is:\r
-  \r
-                  [spaces][zeros][x][hexadecimal digits]. \r
-\r
-  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F]. \r
-  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. \r
-  If "x" appears in the input string, it must be prefixed with at least one 0. \r
-  The function will ignore the pad space, which includes spaces or tab characters, \r
-  before [zeros], [x] or [hexadecimal digit]. The running zero before [x] or \r
-  [hexadecimal digit] will be ignored. Then, the decoding starts after [x] or the \r
-  first valid hexadecimal digit. Then, the function stops at the first character that is \r
+\r
+                  [spaces][zeros][x][hexadecimal digits].\r
+\r
+  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F].\r
+  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix.\r
+  If "x" appears in the input string, it must be prefixed with at least one 0.\r
+  The function will ignore the pad space, which includes spaces or tab characters,\r
+  before [zeros], [x] or [hexadecimal digit]. The running zero before [x] or\r
+  [hexadecimal digit] will be ignored. Then, the decoding starts after [x] or the\r
+  first valid hexadecimal digit. Then, the function stops at the first character that is\r
   a not a valid hexadecimal character or NULL, whichever one comes first.\r
 \r
   If String is NULL, then ASSERT().\r
   If String is not aligned in a 16-bit boundary, then ASSERT().\r
   If String has only pad spaces, then zero is returned.\r
-  If String has no leading pad spaces, leading zeros or valid hexadecimal digits, \r
+  If String has no leading pad spaces, leading zeros or valid hexadecimal digits,\r
   then zero is returned.\r
-  If the number represented by String overflows according to the range defined by \r
+  If the number represented by String overflows according to the range defined by\r
   UINTN, then ASSERT().\r
 \r
-  If PcdMaximumUnicodeStringLength is not zero, and String contains more than \r
-  PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, \r
+  If PcdMaximumUnicodeStringLength is not zero, and String contains more than\r
+  PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator,\r
   then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated Unicode string.\r
+  @param  String          Pointer to a Null-terminated Unicode string.\r
 \r
-  @return The value of type UINTN converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINTN\r
@@ -856,38 +855,38 @@ StrHexToUintn (
 /**\r
   Convert a Null-terminated Unicode hexadecimal string to a value of type UINT64.\r
 \r
-  This function returns a value of type UINT64 by interpreting the contents \r
-  of the Unicode string specified by String as a hexadecimal number. \r
-  The format of the input Unicode string String is \r
-  \r
-                  [spaces][zeros][x][hexadecimal digits]. \r
-\r
-  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F]. \r
-  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. \r
-  If "x" appears in the input string, it must be prefixed with at least one 0. \r
-  The function will ignore the pad space, which includes spaces or tab characters, \r
-  before [zeros], [x] or [hexadecimal digit]. The running zero before [x] or \r
-  [hexadecimal digit] will be ignored. Then, the decoding starts after [x] or the \r
-  first valid hexadecimal digit. Then, the function stops at the first character that is \r
+  This function returns a value of type UINT64 by interpreting the contents\r
+  of the Unicode string specified by String as a hexadecimal number.\r
+  The format of the input Unicode string String is\r
+\r
+                  [spaces][zeros][x][hexadecimal digits].\r
+\r
+  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F].\r
+  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix.\r
+  If "x" appears in the input string, it must be prefixed with at least one 0.\r
+  The function will ignore the pad space, which includes spaces or tab characters,\r
+  before [zeros], [x] or [hexadecimal digit]. The running zero before [x] or\r
+  [hexadecimal digit] will be ignored. Then, the decoding starts after [x] or the\r
+  first valid hexadecimal digit. Then, the function stops at the first character that is\r
   a not a valid hexadecimal character or NULL, whichever one comes first.\r
 \r
   If String is NULL, then ASSERT().\r
   If String is not aligned in a 16-bit boundary, then ASSERT().\r
   If String has only pad spaces, then zero is returned.\r
-  If String has no leading pad spaces, leading zeros or valid hexadecimal digits, \r
+  If String has no leading pad spaces, leading zeros or valid hexadecimal digits,\r
   then zero is returned.\r
-  If the number represented by String overflows according to the range defined by \r
+  If the number represented by String overflows according to the range defined by\r
   UINT64, then ASSERT().\r
 \r
-  If PcdMaximumUnicodeStringLength is not zero, and String contains more than \r
-  PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, \r
+  If PcdMaximumUnicodeStringLength is not zero, and String contains more than\r
+  PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator,\r
   then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated Unicode string.\r
+  @param  String          Pointer to a Null-terminated Unicode string.\r
 \r
-  @return The value of type UINT64 converted.\r
+  @retval Value translated from String.\r
 \r
-**/\r
+  **/\r
 UINT64\r
 EFIAPI\r
 StrHexToUint64 (\r
@@ -996,36 +995,33 @@ InternalAsciiIsHexaDecimalDigitCharacter (
 }\r
 \r
 /**\r
-  Convert a Null-terminated Unicode string to a Null-terminated \r
+  Convert a Null-terminated Unicode string to a Null-terminated\r
   ASCII string and returns the ASCII string.\r
-  \r
-  This function converts the content of the Unicode string Source \r
-  to the ASCII string Destination by copying the lower 8 bits of \r
-  each Unicode character. It returns Destination. The function terminates \r
-  the ASCII string Destination  by appending a Null-terminator character \r
-  at the end. The caller is responsible to make sure Destination points \r
-  to a buffer with size equal or greater than (StrLen (Source) + 1) in bytes.\r
+\r
+  This function converts the content of the Unicode string Source\r
+  to the ASCII string Destination by copying the lower 8 bits of\r
+  each Unicode character. It returns Destination.\r
+\r
+  If any Unicode characters in Source contain non-zero value in\r
+  the upper 8 bits, then ASSERT().\r
 \r
   If Destination is NULL, then ASSERT().\r
   If Source is NULL, then ASSERT().\r
   If Source is not aligned on a 16-bit boundary, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
 \r
-  If any Unicode characters in Source contain non-zero value in \r
-  the upper 8 bits, then ASSERT().\r
-  \r
-  If PcdMaximumUnicodeStringLength is not zero, and Source contains \r
-  more than PcdMaximumUnicodeStringLength Unicode characters not including \r
+  If PcdMaximumUnicodeStringLength is not zero, and Source contains\r
+  more than PcdMaximumUnicodeStringLength Unicode characters not including\r
   the Null-terminator, then ASSERT().\r
-  \r
-  If PcdMaximumAsciiStringLength is not zero, and Source contains more \r
-  than PcdMaximumAsciiStringLength Unicode characters not including the \r
+\r
+  If PcdMaximumAsciiStringLength is not zero, and Source contains more\r
+  than PcdMaximumAsciiStringLength Unicode characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  Source        Pointer to a Null-terminated Unicode string.\r
   @param  Destination   Pointer to a Null-terminated ASCII string.\r
 \r
-  @return Destination pointing to the converted ASCII string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR8 *\r
@@ -1092,7 +1088,7 @@ UnicodeStrToAsciiStr (
   @param  Destination Pointer to a Null-terminated ASCII string.\r
   @param  Source      Pointer to a Null-terminated ASCII string.\r
 \r
-  @return Destination pointing to the copied string.\r
+  @return Destination\r
 \r
 **/\r
 CHAR8 *\r
@@ -1124,9 +1120,8 @@ AsciiStrCpy (
 }\r
 \r
 /**\r
-  Copies one Null-terminated ASCII string with a maximum length to another\r
-  Null-terminated ASCII string with a maximum length and returns the new ASCII\r
-  string.\r
+  Copies up to a specified length one Null-terminated ASCII string to another \r
+  Null-terminated ASCII string and returns the new ASCII string.\r
 \r
   This function copies the contents of the ASCII string Source to the ASCII\r
   string Destination, and returns Destination. At most, Length ASCII characters\r
@@ -1146,7 +1141,7 @@ AsciiStrCpy (
   @param  Source      Pointer to a Null-terminated ASCII string.\r
   @param  Length      Maximum number of ASCII characters to copy.\r
 \r
-  @return Destination pointing to the copied string.\r
+  @return Destination\r
 \r
 **/\r
 CHAR8 *\r
@@ -1191,7 +1186,8 @@ AsciiStrnCpy (
   This function returns the number of ASCII characters in the Null-terminated\r
   ASCII string specified by String.\r
 \r
-  If String is NULL, then ASSERT().\r
+  If Length > 0 and Destination is NULL, then ASSERT().\r
+  If Length > 0 and Source is NULL, then ASSERT().\r
   If PcdMaximumAsciiStringLength is not zero and String contains more than\r
   PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
   then ASSERT().\r
@@ -1271,9 +1267,8 @@ AsciiStrSize (
   @param  FirstString   Pointer to a Null-terminated ASCII string.\r
   @param  SecondString  Pointer to a Null-terminated ASCII string.\r
 \r
-  @retval 0      FirstString is identical to SecondString.\r
-  @return The first mismatched ASCII character in SecondString subtracted\r
-          from the first mismatched ASCII character in FirstString.\r
+  @retval ==0      FirstString is identical to SecondString.\r
+  @retval !=0      FirstString is not identical to SecondString.\r
 \r
 **/\r
 INTN\r
@@ -1369,10 +1364,10 @@ InternalAsciiHexCharToUintn (
   @param  FirstString   Pointer to a Null-terminated ASCII string.\r
   @param  SecondString  Pointer to a Null-terminated ASCII string.\r
 \r
-  @retval 0      FirstString is identical to SecondString using case insensitive\r
+  @retval ==0    FirstString is identical to SecondString using case insensitive\r
                  comparisons.\r
-  @return The first mismatched lower case ASCII character in SecondString subtracted\r
-          from the first mismatched lower case ASCII character in FirstString.\r
+  @retval !=0    FirstString is not identical to SecondString using case\r
+                 insensitive comparisons.\r
 \r
 **/\r
 INTN\r
@@ -1414,8 +1409,8 @@ AsciiStriCmp (
   is the first mismatched ASCII character in SecondString subtracted from the\r
   first mismatched ASCII character in FirstString.\r
 \r
-  If FirstString is NULL, then ASSERT().\r
-  If SecondString is NULL, then ASSERT().\r
+  If Length > 0 and FirstString is NULL, then ASSERT().\r
+  If Length > 0 and SecondString is NULL, then ASSERT().\r
   If PcdMaximumAsciiStringLength is not zero and FirstString contains more than\r
   PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
   then ASSERT().\r
@@ -1425,11 +1420,10 @@ AsciiStriCmp (
 \r
   @param  FirstString   Pointer to a Null-terminated ASCII string.\r
   @param  SecondString  Pointer to a Null-terminated ASCII string.\r
-  @param  Length        Maximum number of ASCII characters to compare.\r
-                        \r
-  @retval 0      FirstString is identical to SecondString.\r
-  @return The first mismatched ASCII character in SecondString subtracted from the\r
-          first mismatched ASCII character in FirstString.\r
+  @param  Length        Maximum number of ASCII characters for compare.\r
+\r
+  @retval ==0       FirstString is identical to SecondString.\r
+  @retval !=0       FirstString is not identical to SecondString.\r
 \r
 **/\r
 INTN\r
@@ -1484,7 +1478,7 @@ AsciiStrnCmp (
   @param  Destination Pointer to a Null-terminated ASCII string.\r
   @param  Source      Pointer to a Null-terminated ASCII string.\r
 \r
-  @return Destination pointing to the concatenated ASCII string.\r
+  @return Destination\r
 \r
 **/\r
 CHAR8 *\r
@@ -1505,9 +1499,9 @@ AsciiStrCat (
 }\r
 \r
 /**\r
-  Concatenates one Null-terminated ASCII string with a maximum length to the\r
-  end of another Null-terminated ASCII string, and returns the concatenated\r
-  ASCII string.\r
+  Concatenates up to a specified length one Null-terminated ASCII string to \r
+  the end of another Null-terminated ASCII string, and returns the \r
+  concatenated ASCII string.\r
 \r
   This function concatenates two Null-terminated ASCII strings. The contents\r
   of Null-terminated ASCII string Source are concatenated to the end of Null-\r
@@ -1517,8 +1511,8 @@ AsciiStrCat (
   Destination is returned unmodified. If Source and Destination overlap, then\r
   the results are undefined.\r
 \r
-  If Destination is NULL, then ASSERT().\r
-  If Source is NULL, then ASSERT().\r
+  If Length > 0 and Destination is NULL, then ASSERT().\r
+  If Length > 0 and Source is NULL, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
   If PcdMaximumAsciiStringLength is not zero, and Destination contains more than\r
   PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
@@ -1535,7 +1529,7 @@ AsciiStrCat (
   @param  Length      Maximum number of ASCII characters to concatenate from\r
                       Source.\r
 \r
-  @return Destination pointing to the concatenated ASCII string.\r
+  @return Destination\r
 \r
 **/\r
 CHAR8 *\r
@@ -1557,26 +1551,27 @@ AsciiStrnCat (
 }\r
 \r
 /**\r
-  Returns the first occurance of a Null-terminated ASCII sub-string \r
+  Returns the first occurrence of a Null-terminated ASCII sub-string\r
   in a Null-terminated ASCII string.\r
 \r
-  This function scans the contents of the ASCII string specified by String \r
-  and returns the first occurrence of SearchString. If SearchString is not \r
-  found in String, then NULL is returned. If the length of SearchString is zero, \r
+  This function scans the contents of the ASCII string specified by String\r
+  and returns the first occurrence of SearchString. If SearchString is not\r
+  found in String, then NULL is returned. If the length of SearchString is zero,\r
   then String is returned.\r
-  \r
+\r
   If String is NULL, then ASSERT().\r
   If SearchString is NULL, then ASSERT().\r
 \r
-  If PcdMaximumAsciiStringLength is not zero, and SearchString or \r
-  String contains more than PcdMaximumAsciiStringLength Unicode characters \r
+  If PcdMaximumAsciiStringLength is not zero, and SearchString or\r
+  String contains more than PcdMaximumAsciiStringLength Unicode characters\r
   not including the Null-terminator, then ASSERT().\r
 \r
   @param  String          Pointer to a Null-terminated ASCII string.\r
   @param  SearchString    Pointer to a Null-terminated ASCII string to search for.\r
 \r
   @retval NULL            If the SearchString does not appear in String.\r
-  @return Pointer to the matching sub-string.\r
+  @retval others          If there is a match return the first occurrence of SearchingString.\r
+                          If the length of SearchString is zero,return String.\r
 \r
 **/\r
 CHAR8 *\r
@@ -1625,33 +1620,33 @@ AsciiStrStr (
 }\r
 \r
 /**\r
-  Convert a Null-terminated ASCII decimal string to a value of type \r
+  Convert a Null-terminated ASCII decimal string to a value of type\r
   UINTN.\r
 \r
-  This function returns a value of type UINTN by interpreting the contents \r
-  of the ASCII string String as a decimal number. The format of the input \r
+  This function returns a value of type UINTN by interpreting the contents\r
+  of the ASCII string String as a decimal number. The format of the input\r
   ASCII string String is:\r
-  \r
+\r
                     [spaces] [decimal digits].\r
-  \r
-  The valid decimal digit character is in the range [0-9]. The function will \r
-  ignore the pad space, which includes spaces or tab characters, before the digits. \r
-  The running zero in the beginning of [decimal digits] will be ignored. Then, the \r
-  function stops at the first character that is a not a valid decimal character or \r
+\r
+  The valid decimal digit character is in the range [0-9]. The function will\r
+  ignore the pad space, which includes spaces or tab characters, before the digits.\r
+  The running zero in the beginning of [decimal digits] will be ignored. Then, the\r
+  function stops at the first character that is a not a valid decimal character or\r
   Null-terminator, whichever on comes first.\r
-  \r
+\r
   If String has only pad spaces, then 0 is returned.\r
   If String has no pad spaces or valid decimal digits, then 0 is returned.\r
-  If the number represented by String overflows according to the range defined by \r
+  If the number represented by String overflows according to the range defined by\r
   UINTN, then ASSERT().\r
   If String is NULL, then ASSERT().\r
-  If PcdMaximumAsciiStringLength is not zero, and String contains more than \r
-  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, \r
+  If PcdMaximumAsciiStringLength is not zero, and String contains more than\r
+  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
   then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated ASCII string.\r
+  @param  String          Pointer to a Null-terminated ASCII string.\r
 \r
-  @return The value of type UINTN converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINTN\r
@@ -1702,33 +1697,33 @@ AsciiStrDecimalToUintn (
 \r
 \r
 /**\r
-  Convert a Null-terminated ASCII decimal string to a value of type \r
+  Convert a Null-terminated ASCII decimal string to a value of type\r
   UINT64.\r
 \r
-  This function returns a value of type UINT64 by interpreting the contents \r
-  of the ASCII string String as a decimal number. The format of the input \r
+  This function returns a value of type UINT64 by interpreting the contents\r
+  of the ASCII string String as a decimal number. The format of the input\r
   ASCII string String is:\r
-  \r
+\r
                     [spaces] [decimal digits].\r
-  \r
-  The valid decimal digit character is in the range [0-9]. The function will \r
-  ignore the pad space, which includes spaces or tab characters, before the digits. \r
-  The running zero in the beginning of [decimal digits] will be ignored. Then, the \r
-  function stops at the first character that is a not a valid decimal character or \r
+\r
+  The valid decimal digit character is in the range [0-9]. The function will\r
+  ignore the pad space, which includes spaces or tab characters, before the digits.\r
+  The running zero in the beginning of [decimal digits] will be ignored. Then, the\r
+  function stops at the first character that is a not a valid decimal character or\r
   Null-terminator, whichever on comes first.\r
-  \r
+\r
   If String has only pad spaces, then 0 is returned.\r
   If String has no pad spaces or valid decimal digits, then 0 is returned.\r
-  If the number represented by String overflows according to the range defined by \r
+  If the number represented by String overflows according to the range defined by\r
   UINT64, then ASSERT().\r
   If String is NULL, then ASSERT().\r
-  If PcdMaximumAsciiStringLength is not zero, and String contains more than \r
-  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, \r
+  If PcdMaximumAsciiStringLength is not zero, and String contains more than\r
+  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
   then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated ASCII string.\r
+  @param  String          Pointer to a Null-terminated ASCII string.\r
 \r
-  @return The value of type UINT64 converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINT64\r
@@ -1780,35 +1775,35 @@ AsciiStrDecimalToUint64 (
 /**\r
   Convert a Null-terminated ASCII hexadecimal string to a value of type UINTN.\r
 \r
-  This function returns a value of type UINTN by interpreting the contents of \r
-  the ASCII string String as a hexadecimal number. The format of the input ASCII \r
+  This function returns a value of type UINTN by interpreting the contents of\r
+  the ASCII string String as a hexadecimal number. The format of the input ASCII\r
   string String is:\r
-  \r
+\r
                   [spaces][zeros][x][hexadecimal digits].\r
-                  \r
-  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F]. \r
-  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. If "x" \r
-  appears in the input string, it must be prefixed with at least one 0. The function \r
-  will ignore the pad space, which includes spaces or tab characters, before [zeros], \r
-  [x] or [hexadecimal digits]. The running zero before [x] or [hexadecimal digits] \r
-  will be ignored. Then, the decoding starts after [x] or the first valid hexadecimal \r
-  digit. Then, the function stops at the first character that is a not a valid \r
+\r
+  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F].\r
+  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. If "x"\r
+  appears in the input string, it must be prefixed with at least one 0. The function\r
+  will ignore the pad space, which includes spaces or tab characters, before [zeros],\r
+  [x] or [hexadecimal digits]. The running zero before [x] or [hexadecimal digits]\r
+  will be ignored. Then, the decoding starts after [x] or the first valid hexadecimal\r
+  digit. Then, the function stops at the first character that is a not a valid\r
   hexadecimal character or Null-terminator, whichever on comes first.\r
-  \r
+\r
   If String has only pad spaces, then 0 is returned.\r
   If String has no leading pad spaces, leading zeros or valid hexadecimal digits, then\r
   0 is returned.\r
 \r
-  If the number represented by String overflows according to the range defined by UINTN, \r
+  If the number represented by String overflows according to the range defined by UINTN,\r
   then ASSERT().\r
   If String is NULL, then ASSERT().\r
-  If PcdMaximumAsciiStringLength is not zero, \r
-  and String contains more than PcdMaximumAsciiStringLength ASCII characters not including \r
+  If PcdMaximumAsciiStringLength is not zero,\r
+  and String contains more than PcdMaximumAsciiStringLength ASCII characters not including\r
   the Null-terminator, then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated ASCII string.\r
+  @param  String          Pointer to a Null-terminated ASCII string.\r
 \r
-  @return The value of type UINTN converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINTN\r
@@ -1872,35 +1867,35 @@ AsciiStrHexToUintn (
 /**\r
   Convert a Null-terminated ASCII hexadecimal string to a value of type UINT64.\r
 \r
-  This function returns a value of type UINT64 by interpreting the contents of \r
-  the ASCII string String as a hexadecimal number. The format of the input ASCII \r
+  This function returns a value of type UINT64 by interpreting the contents of\r
+  the ASCII string String as a hexadecimal number. The format of the input ASCII\r
   string String is:\r
-  \r
+\r
                   [spaces][zeros][x][hexadecimal digits].\r
-                  \r
-  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F]. \r
-  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. If "x" \r
-  appears in the input string, it must be prefixed with at least one 0. The function \r
-  will ignore the pad space, which includes spaces or tab characters, before [zeros], \r
-  [x] or [hexadecimal digits]. The running zero before [x] or [hexadecimal digits] \r
-  will be ignored. Then, the decoding starts after [x] or the first valid hexadecimal \r
-  digit. Then, the function stops at the first character that is a not a valid \r
+\r
+  The valid hexadecimal digit character is in the range [0-9], [a-f] and [A-F].\r
+  The prefix "0x" is optional. Both "x" and "X" is allowed in "0x" prefix. If "x"\r
+  appears in the input string, it must be prefixed with at least one 0. The function\r
+  will ignore the pad space, which includes spaces or tab characters, before [zeros],\r
+  [x] or [hexadecimal digits]. The running zero before [x] or [hexadecimal digits]\r
+  will be ignored. Then, the decoding starts after [x] or the first valid hexadecimal\r
+  digit. Then, the function stops at the first character that is a not a valid\r
   hexadecimal character or Null-terminator, whichever on comes first.\r
-  \r
+\r
   If String has only pad spaces, then 0 is returned.\r
   If String has no leading pad spaces, leading zeros or valid hexadecimal digits, then\r
   0 is returned.\r
 \r
-  If the number represented by String overflows according to the range defined by UINT64, \r
+  If the number represented by String overflows according to the range defined by UINT64,\r
   then ASSERT().\r
   If String is NULL, then ASSERT().\r
-  If PcdMaximumAsciiStringLength is not zero, \r
-  and String contains more than PcdMaximumAsciiStringLength ASCII characters not including \r
+  If PcdMaximumAsciiStringLength is not zero,\r
+  and String contains more than PcdMaximumAsciiStringLength ASCII characters not including\r
   the Null-terminator, then ASSERT().\r
 \r
-  @param  String                Pointer to a Null-terminated ASCII string.\r
+  @param  String          Pointer to a Null-terminated ASCII string.\r
 \r
-  @return The value of type UINT64 converted.\r
+  @retval Value translated from String.\r
 \r
 **/\r
 UINT64\r
@@ -1966,30 +1961,30 @@ AsciiStrHexToUint64 (
 \r
 \r
 /**\r
-  Convert one Null-terminated ASCII string to a Null-terminated \r
+  Convert one Null-terminated ASCII string to a Null-terminated\r
   Unicode string and returns the Unicode string.\r
 \r
-  This function converts the contents of the ASCII string Source to the Unicode \r
-  string Destination, and returns Destination.  The function terminates the \r
-  Unicode string Destination by appending a Null-terminator character at the end. \r
-  The caller is responsible to make sure Destination points to a buffer with size \r
+  This function converts the contents of the ASCII string Source to the Unicode\r
+  string Destination, and returns Destination.  The function terminates the\r
+  Unicode string Destination by appending a Null-terminator character at the end.\r
+  The caller is responsible to make sure Destination points to a buffer with size\r
   equal or greater than ((AsciiStrLen (Source) + 1) * sizeof (CHAR16)) in bytes.\r
-  \r
+\r
   If Destination is NULL, then ASSERT().\r
   If Destination is not aligned on a 16-bit boundary, then ASSERT().\r
   If Source is NULL, then ASSERT().\r
   If Source and Destination overlap, then ASSERT().\r
-  If PcdMaximumAsciiStringLength is not zero, and Source contains more than \r
-  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, \r
+  If PcdMaximumAsciiStringLength is not zero, and Source contains more than\r
+  PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator,\r
   then ASSERT().\r
-  If PcdMaximumUnicodeStringLength is not zero, and Source contains more than \r
-  PcdMaximumUnicodeStringLength ASCII characters not including the \r
+  If PcdMaximumUnicodeStringLength is not zero, and Source contains more than\r
+  PcdMaximumUnicodeStringLength ASCII characters not including the\r
   Null-terminator, then ASSERT().\r
 \r
   @param  Source        Pointer to a Null-terminated ASCII string.\r
   @param  Destination   Pointer to a Null-terminated Unicode string.\r
 \r
-  @return Destination pointing to the converted Unicode string.\r
+  @return Destination.\r
 \r
 **/\r
 CHAR16 *\r
@@ -2042,7 +2037,7 @@ AsciiStrToUnicodeStr (
 \r
   @param  Value The 8-bit value to convert to BCD. Range 0..99.\r
 \r
-  @return The BCD value converted.\r
+  @return The BCD value.\r
 \r
 **/\r
 UINT8\r
@@ -2066,7 +2061,7 @@ DecimalToBcd8 (
 \r
   @param  Value The 8-bit BCD value to convert to an 8-bit value.\r
 \r
-  @return The 8-bit decimal value converted.\r
+  @return The 8-bit value is returned.\r
 \r
 **/\r
 UINT8\r
@@ -2092,8 +2087,8 @@ BcdToDecimal8 (
 \r
   @param Nibble     The nibble which is in the low 4 bits of the input byte.\r
 \r
-  @return   The Unicode hexadecimal character.\r
-  \r
+  @retval  CHAR16   The Unicode hexadecimal character.\r
+\r
 **/\r
 CHAR16\r
 EFIAPI\r
@@ -2121,20 +2116,21 @@ NibbleToHexChar (
   the last character in the output string. The one next to first byte will be put into the\r
   character before the last character. This rules applies to the rest of the bytes. The Unicode\r
   character by the last byte will be put into the first character in the output string. For example,\r
-  the input buffer for a 64-bits unsigned integrer 0x12345678abcdef1234 will be converted to\r
+  the input buffer for a 64-bits unsigned integer 0x12345678abcdef1234 will be converted to\r
   a Unicode string equal to L"12345678abcdef1234".\r
 \r
-  @param String                 Pointer to the buffer allocated for the convertion.\r
-  @param StringLen              On input: Pointer to length in bytes of buffer to hold the Unicode string.\r
-                                On output:If return EFI_SUCCESS, pointer to length of Unicode string converted.\r
-                                          If return EFI_BUFFER_TOO_SMALL, pointer to length of string buffer desired.\r
-  @param Buffer                 The pointer to a input buffer.\r
-  @param BufferSizeInBytes      Lenth in bytes of the input buffer.\r
-  \r
-  @retval EFI_SUCCESS           The convertion is successfull. All bytes in Buffer has been convert to the corresponding\r
-                                Unicode character and placed into the right place in String.\r
-  @retval EFI_BUFFER_TOO_SMALL  StringSizeInBytes is smaller than 2 * N + 1the number of bytes required to\r
-                                complete the convertion. \r
+  @param String                        On input, String is pointed to the buffer allocated for the convertion.\r
+  @param StringLen                     The Length of String buffer to hold the output String. The length must include the tailing '\0' character.\r
+                                       The StringLen required to convert a N bytes Buffer will be a least equal to or greater \r
+                                       than 2*N + 1.\r
+  @param Buffer                        The pointer to a input buffer.\r
+  @param BufferSizeInBytes             Length in bytes of the input buffer.\r
+\r
+\r
+  @retval  EFI_SUCCESS                 The convertion is successful. All bytes in Buffer has been convert to the corresponding\r
+                                       Unicode character and placed into the right place in String.\r
+  @retval  EFI_BUFFER_TOO_SMALL        StringSizeInBytes is smaller than 2 * N + 1the number of bytes required to\r
+                                       complete the convertion. \r
 **/\r
 RETURN_STATUS\r
 EFIAPI\r
@@ -2285,16 +2281,17 @@ HexStringToBuf (
   Unicode character is converted to a byte. For example, Unicode character\r
   L'A' will be converted to 0x0A. \r
 \r
-  If Digit is NULL, then ASSERT().\r
-  \r
+  If Digit is NULL, then ASSERT.\r
+\r
   @param  Digit       The output hexadecimal digit.\r
+\r
   @param  Char        The input Unicode character.\r
 \r
   @retval TRUE        Char is in the range of Hexadecimal number. Digit is updated\r
                       to the byte value of the number.\r
   @retval FALSE       Char is not in the range of Hexadecimal number. Digit is keep\r
                       intact.\r
-  \r
+\r
 **/\r
 BOOLEAN\r
 EFIAPI\r
index 3fb98f751a026ee92c335daf3741f092038a119b..872250bac13fd680bf3452468e6a54a94cf42a47 100644 (file)
@@ -24,9 +24,9 @@
   from little endian to big endian or vice versa. The byte swapped value is\r
   returned.\r
 \r
-  @param  Operand A 16-bit unsigned value.\r
+  @param  Value Operand A 16-bit unsigned value.\r
 \r
-  @return The byte swaped Operand.\r
+  @return The byte swapped Operand.\r
 \r
 **/\r
 UINT16\r
index df43b145bd5a6852f80b6106278d233ce5bb4e8c..f1a1b8925e1048490d0dc88d29b3f5b7233013a1 100644 (file)
@@ -24,9 +24,9 @@
   from little endian to big endian or vice versa. The byte swapped value is\r
   returned.\r
 \r
-  @param  Operand A 32-bit unsigned value.\r
+  @param  Value Operand A 32-bit unsigned value.\r
 \r
-  @return The byte swaped Operand.\r
+  @return The byte swapped Operand.\r
 \r
 **/\r
 UINT32\r
index ba6e521adcfb595f41b976fe242f26741de9bc1a..ccbdadf3062846db002b1638c2f0631318e8b714 100644 (file)
@@ -24,9 +24,9 @@
   from little endian to big endian or vice versa. The byte swapped value is\r
   returned.\r
 \r
-  @param  Operand A 64-bit unsigned value.\r
+  @param  Value Operand A 64-bit unsigned value.\r
 \r
-  @return The byte swaped Operand.\r
+  @return The byte swapped Operand.\r
 \r
 **/\r
 UINT64\r
index 1a95026a794483984c3074cfd7436199de1a801e..b84188e61869acdd12aa7f785e38c36350e1dc9d 100644 (file)
@@ -55,7 +55,7 @@ GetSpinLockProperties (
   @param  SpinLock  A pointer to the spin lock to initialize to the released\r
                     state.\r
 \r
-  @return SpinLock initialized in release state.\r
+  @return SpinLock in release state.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -86,7 +86,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock aquired lock.\r
+  @return SpinLock acquired lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -206,7 +206,7 @@ AcquireSpinLockOrFail (
 \r
   @param  SpinLock  A pointer to the spin lock to release.\r
 \r
-  @return SpinLock\r
+  @return SpinLock released lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -280,9 +280,9 @@ InterlockedDecrement (
   Performs an atomic compare exchange operation on a 32-bit unsigned integer.\r
 \r
   Performs an atomic compare exchange operation on the 32-bit unsigned integer\r
-  specified by Value.  If Value is equal to CompareValue, then Value is set to \r
+  specified by Value.  If Value is equal to CompareValue, then Value is set to\r
   ExchangeValue and CompareValue is returned.  If Value is not equal to CompareValue,\r
-  then Value is returned.  The compare exchange operation must be performed using \r
+  then Value is returned.  The compare exchange operation must be performed using\r
   MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
@@ -310,9 +310,9 @@ InterlockedCompareExchange32 (
 /**\r
   Performs an atomic compare exchange operation on a 64-bit unsigned integer.\r
 \r
-  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified \r
-  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and \r
-  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. \r
+  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified\r
+  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and\r
+  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.\r
   The compare exchange operation must be performed using MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
index 0786c12a5992d0d2b5e51df56267e0d06c4e7dd0..b479123863d5b394b73cff75ae5fbe49a5153b36 100644 (file)
@@ -98,7 +98,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock accquired lock.\r
+  @return SpinLock acquired lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -298,9 +298,9 @@ InterlockedDecrement (
   Performs an atomic compare exchange operation on a 32-bit unsigned integer.\r
 \r
   Performs an atomic compare exchange operation on the 32-bit unsigned integer\r
-  specified by Value.  If Value is equal to CompareValue, then Value is set to \r
+  specified by Value.  If Value is equal to CompareValue, then Value is set to\r
   ExchangeValue and CompareValue is returned.  If Value is not equal to CompareValue,\r
-  then Value is returned.  The compare exchange operation must be performed using \r
+  then Value is returned.  The compare exchange operation must be performed using\r
   MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
@@ -328,9 +328,9 @@ InterlockedCompareExchange32 (
 /**\r
   Performs an atomic compare exchange operation on a 64-bit unsigned integer.\r
 \r
-  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified \r
-  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and \r
-  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. \r
+  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified\r
+  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and\r
+  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.\r
   The compare exchange operation must be performed using MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
index 962c61bd3bf872a9027c456f831283a217d55d85..66b211a2b8d53617350dafe692901b374a34a10d 100644 (file)
@@ -66,7 +66,7 @@ GetSpinLockProperties (
   @param  SpinLock  A pointer to the spin lock to initialize to the released\r
                     state.\r
 \r
-  @return SpinLock in released state.\r
+  @return SpinLock in release state.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -101,7 +101,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock aquiring lock.\r
+  @return SpinLock acquired lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -224,7 +224,7 @@ AcquireSpinLockOrFail (
 \r
   @param  SpinLock  A pointer to the spin lock to release.\r
 \r
-  @return SpinLock releasing lock.\r
+  @return SpinLock released lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -301,9 +301,9 @@ InterlockedDecrement (
   Performs an atomic compare exchange operation on a 32-bit unsigned integer.\r
 \r
   Performs an atomic compare exchange operation on the 32-bit unsigned integer\r
-  specified by Value.  If Value is equal to CompareValue, then Value is set to \r
+  specified by Value.  If Value is equal to CompareValue, then Value is set to\r
   ExchangeValue and CompareValue is returned.  If Value is not equal to CompareValue,\r
-  then Value is returned.  The compare exchange operation must be performed using \r
+  then Value is returned.  The compare exchange operation must be performed using\r
   MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
@@ -331,9 +331,9 @@ InterlockedCompareExchange32 (
 /**\r
   Performs an atomic compare exchange operation on a 64-bit unsigned integer.\r
 \r
-  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified \r
-  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and \r
-  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. \r
+  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified\r
+  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and\r
+  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.\r
   The compare exchange operation must be performed using MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
index 7485c1129fc87bb5e51553b893d8ec7d4eaa1484..66e07c1d4ffbfd219f90c344c892cca9ea55335a 100644 (file)
@@ -19,8 +19,8 @@
 /**\r
   Retrieves the current CPU interrupt state.\r
 \r
-  Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
-  currently enabled. Otherwise returns FALSE.\r
+  Returns TRUE is interrupts are currently enabled. Otherwise\r
+  returns FALSE.\r
 \r
   @retval TRUE  CPU interrupts are enabled.\r
   @retval FALSE CPU interrupts are disabled.\r