]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/PcdLib.h
Code Scrub
[mirror_edk2.git] / MdePkg / Include / Library / PcdLib.h
index 6298ce8a05775351bff53c4f53aff1a29254a2a0..a7013ca402d4fadf8fb23231e0e0ebf146440d06 100644 (file)
@@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __PCD_LIB_H__\r
 #define __PCD_LIB_H__\r
 \r
-#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)\r
 #define PCD_MAX_SKU_ID           0x100\r
 \r
 #define PcdToken(TokenName)                 _PCD_TOKEN_##TokenName\r
@@ -444,19 +443,19 @@ LibPcdSet64 (
 \r
 /**\r
   Sets a buffer for the token specified by TokenNumber to the value \r
-  specified by Buffer and SizeOfValue.  Buffer is returned.  \r
-  If SizeOfValue is greater than the maximum size support by TokenNumber, \r
-  then set SizeOfValue to the maximum size supported by TokenNumber and \r
+  specified by Buffer and SizeOfBuffer.  Buffer is returned.  \r
+  If SizeOfBuffer is greater than the maximum size support by TokenNumber, \r
+  then set SizeOfBuffer to the maximum size supported by TokenNumber and \r
   return NULL to indicate that the set operation was not actually performed.  \r
 \r
-  If SizeOfValue is set to MAX_ADDRESS, then SizeOfValue must be set to the \r
+  If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to the \r
   maximum size supported by TokenName and NULL must be returned.\r
   \r
-  If SizeOfValue is NULL, then ASSERT().\r
-  If SizeOfValue > 0 and Buffer is NULL, then ASSERT().\r
+  If SizeOfBuffer is NULL, then ASSERT().\r
+  If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().\r
   \r
   @param[in]      TokenNumber   The PCD token number to set a current value for.\r
-  @param[in,out]  SizeOfBuffer  The size, in bytes, of Buffer.\r
+  @param[in, out] SizeOfBuffer  The size, in bytes, of Buffer.\r
   @param[in]      Buffer        Value A pointer to the buffer to set.\r
 \r
   @return Return the pointer for the buffer been set.\r
@@ -579,14 +578,14 @@ LibPcdSetEx64 (
 \r
 /**\r
   Sets a buffer for the token specified by TokenNumber to the value specified by \r
-  Buffer and SizeOfValue.  Buffer is returned.  If SizeOfValue is greater than \r
-  the maximum size support by TokenNumber, then set SizeOfValue to the maximum size \r
+  Buffer and SizeOfBuffer.  Buffer is returned.  If SizeOfBuffer is greater than \r
+  the maximum size support by TokenNumber, then set SizeOfBuffer to the maximum size \r
   supported by TokenNumber and return NULL to indicate that the set operation \r
   was not actually performed. \r
   \r
   If Guid is NULL, then ASSERT().\r
-  If SizeOfValue is NULL, then ASSERT().\r
-  If SizeOfValue > 0 and Buffer is NULL, then ASSERT().\r
+  If SizeOfBuffer is NULL, then ASSERT().\r
+  If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().\r
   \r
   @param[in]  Guid              Pointer to a 128-bit unique value that \r
                                 designates which namespace to set a value from.\r
@@ -750,15 +749,15 @@ LibPcdGetNextTokenSpace (
 \r
 /**\r
   Sets the PCD entry specified by PatchVariable to the value specified by Buffer \r
-  and SizeOfValue.  Buffer is returned.  If SizeOfValue is greater than \r
-  MaximumDatumSize, then set SizeOfValue to MaximumDatumSize and return \r
+  and SizeOfBuffer.  Buffer is returned.  If SizeOfBuffer is greater than \r
+  MaximumDatumSize, then set SizeOfBuffer to MaximumDatumSize and return \r
   NULL to indicate that the set operation was not actually performed.  \r
-  If SizeOfValue is set to MAX_ADDRESS, then SizeOfValue must be set to \r
+  If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to \r
   MaximumDatumSize and NULL must be returned.\r
   \r
   If PatchVariable is NULL, then ASSERT().\r
-  If SizeOfValue is NULL, then ASSERT().\r
-  If SizeOfValue > 0 and Buffer is NULL, then ASSERT().\r
+  If SizeOfBuffer is NULL, then ASSERT().\r
+  If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().\r
 \r
   @param[in] PatchVariable      A pointer to the global variable in a module that is \r
                                 the target of the set operation.\r