|
|
|
@@ -57,11 +57,14 @@ PcdLibConstructor (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.
|
|
|
|
|
If SkuId is not less than PCD_MAX_SKU_ID, then ASSERT().
|
|
|
|
|
This function provides a means by which SKU support can be established in the PCD infrastructure.
|
|
|
|
|
|
|
|
|
|
@param[in] SkuId System SKU ID. The SKU value that will be used when the PCD service will retrieve and
|
|
|
|
|
set values.
|
|
|
|
|
Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.
|
|
|
|
|
|
|
|
|
|
@param[in] SkuId The SKU value that will be used when the PCD service will retrieve and
|
|
|
|
|
set values associated with a PCD token.
|
|
|
|
|
|
|
|
|
|
If SkuId >= 0x100, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@return Return the SKU ID that just be set.
|
|
|
|
|
|
|
|
|
@@ -82,6 +85,8 @@ LibPcdSetSku (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 8-bit value for the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -101,6 +106,8 @@ LibPcdGet8 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 16-bit value for the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -120,6 +127,8 @@ LibPcdGet16 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 32-bit value for the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -139,6 +148,8 @@ LibPcdGet32 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 64-bit value for the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -158,6 +169,8 @@ LibPcdGet64 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the pointer to the buffer of the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -177,6 +190,8 @@ LibPcdGetPtr (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the Boolean value of the token specified by TokenNumber.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
@@ -196,7 +211,7 @@ LibPcdGetBool (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Returns the size of the token specified by TokenNumber.
|
|
|
|
|
This function provides a means by which to retrieve the size of a given PCD token.
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to retrieve a current value for.
|
|
|
|
|
|
|
|
|
@@ -215,7 +230,10 @@ LibPcdGetSize (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 8-bit value for the token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -239,7 +257,10 @@ LibPcdGetEx8 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 16-bit value for the token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -288,7 +309,10 @@ LibPcdGetEx32 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the 64-bit value for the token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -313,7 +337,10 @@ LibPcdGetEx64 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Returns the pointer to the token specified by TokenNumber and Guid.
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the pointer to the buffer of token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -338,7 +365,10 @@ LibPcdGetExPtr (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the Boolean value of the token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -363,7 +393,10 @@ LibPcdGetExBool (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to retrieve the size of a given PCD token.
|
|
|
|
|
|
|
|
|
|
Returns the size of the token specified by TokenNumber and Guid.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates
|
|
|
|
@@ -388,9 +421,10 @@ LibPcdGetExSize (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 8-bit value for the token specified by TokenNumber
|
|
|
|
|
to the value specified by Value. Value is returned.
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in] Value The 8-bit value to set.
|
|
|
|
@@ -417,9 +451,10 @@ LibPcdSet8 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 16-bit value for the token specified by TokenNumber
|
|
|
|
|
to the value specified by Value. Value is returned.
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in] Value The 16-bit value to set.
|
|
|
|
@@ -446,9 +481,10 @@ LibPcdSet16 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 32-bit value for the token specified by TokenNumber
|
|
|
|
|
to the value specified by Value. Value is returned.
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in] Value The 32-bit value to set.
|
|
|
|
@@ -474,9 +510,10 @@ LibPcdSet32 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 64-bit value for the token specified by TokenNumber
|
|
|
|
|
to the value specified by Value. Value is returned.
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in] Value The 64-bit value to set.
|
|
|
|
@@ -503,22 +540,22 @@ LibPcdSet64 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Sets a buffer for the token specified by TokenNumber to
|
|
|
|
|
the value specified by Buffer and SizeOfBuffer. Buffer to
|
|
|
|
|
be set is returned. The content of the buffer could be
|
|
|
|
|
overwritten if a Callback on SET is registered with this
|
|
|
|
|
TokenNumber.
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
If SizeOfBuffer is greater than the maximum
|
|
|
|
|
size support by TokenNumber, then set SizeOfBuffer to the
|
|
|
|
|
maximum size supported by TokenNumber and return NULL to
|
|
|
|
|
indicate that the set operation was not actually performed.
|
|
|
|
|
Sets a buffer for the token specified by TokenNumber to the value
|
|
|
|
|
specified by Buffer and SizeOfBuffer. Buffer is returned.
|
|
|
|
|
If SizeOfBuffer is greater than the maximum size support by TokenNumber,
|
|
|
|
|
then set SizeOfBuffer to the maximum size supported by TokenNumber and
|
|
|
|
|
return NULL to indicate that the set operation was not actually performed.
|
|
|
|
|
|
|
|
|
|
If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to the
|
|
|
|
|
maximum size supported by TokenName and NULL must be returned.
|
|
|
|
|
|
|
|
|
|
If SizeOfBuffer is NULL, then ASSERT().
|
|
|
|
|
If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in, out] SizeOfBuffer The size, in bytes, of Buffer.
|
|
|
|
|
In out, returns actual size of buff is set.
|
|
|
|
|
@param[in] Buffer A pointer to the buffer to set.
|
|
|
|
|
|
|
|
|
|
@return Return the pointer for the buffer been set.
|
|
|
|
@@ -552,9 +589,10 @@ LibPcdSetPtr (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the Boolean value for the token specified by TokenNumber
|
|
|
|
|
to the value specified by Value. Value is returned.
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in] Value The boolean value to set.
|
|
|
|
@@ -581,10 +619,12 @@ LibPcdSetBool (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 8-bit value for the token specified by TokenNumber and
|
|
|
|
|
Guid to the value specified by Value. Value is returned.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that
|
|
|
|
|
designates which namespace to set a value from.
|
|
|
|
@@ -616,10 +656,12 @@ LibPcdSetEx8 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 16-bit value for the token specified by TokenNumber and
|
|
|
|
|
Guid to the value specified by Value. Value is returned.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that
|
|
|
|
|
designates which namespace to set a value from.
|
|
|
|
@@ -651,10 +693,12 @@ LibPcdSetEx16 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 32-bit value for the token specified by TokenNumber and
|
|
|
|
|
Guid to the value specified by Value. Value is returned.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that
|
|
|
|
|
designates which namespace to set a value from.
|
|
|
|
@@ -686,6 +730,8 @@ LibPcdSetEx32 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the 64-bit value for the token specified by TokenNumber and
|
|
|
|
|
Guid to the value specified by Value. Value is returned.
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
@@ -720,19 +766,22 @@ LibPcdSetEx64 (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets a buffer for the token specified by TokenNumber to the value specified by
|
|
|
|
|
Buffer and SizeOfBuffer. Buffer is returned. If SizeOfBuffer is greater than
|
|
|
|
|
the maximum size support by TokenNumber, then set SizeOfBuffer to the maximum size
|
|
|
|
|
supported by TokenNumber and return NULL to indicate that the set operation
|
|
|
|
|
was not actually performed.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
If SizeOfBuffer is NULL, then ASSERT().
|
|
|
|
|
If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that
|
|
|
|
|
designates which namespace to set a value from.
|
|
|
|
|
@param[in] TokenNumber The PCD token number to set a current value for.
|
|
|
|
|
@param[in, out] SizeOfBuffer The size, in bytes, of Buffer.
|
|
|
|
|
In out, returns actual size of buffer is set.
|
|
|
|
|
@param[in] Buffer A pointer to the buffer to set.
|
|
|
|
|
|
|
|
|
|
@return Return the pinter to the buffer been set.
|
|
|
|
@@ -769,10 +818,12 @@ LibPcdSetExPtr (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
This function provides a means by which to set a value for a given PCD token.
|
|
|
|
|
|
|
|
|
|
Sets the Boolean value for the token specified by TokenNumber and
|
|
|
|
|
Guid to the value specified by Value. Value is returned.
|
|
|
|
|
|
|
|
|
|
If Guid is NULL, then ASSERT().
|
|
|
|
|
If fail to set pcd value, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that
|
|
|
|
|
designates which namespace to set a value from.
|
|
|
|
@@ -804,11 +855,13 @@ LibPcdSetExBool (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Set up a notification function that is called when a specified token is set.
|
|
|
|
|
|
|
|
|
|
When the token specified by TokenNumber and Guid is set,
|
|
|
|
|
then notification function specified by NotificationFunction is called.
|
|
|
|
|
If Guid is NULL, then the default token space is used.
|
|
|
|
|
|
|
|
|
|
If NotificationFunction is NULL, then ASSERT().
|
|
|
|
|
If fail to set callback function, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates which
|
|
|
|
|
namespace to set a value from. If NULL, then the default
|
|
|
|
@@ -816,6 +869,7 @@ LibPcdSetExBool (
|
|
|
|
|
@param[in] TokenNumber The PCD token number to monitor.
|
|
|
|
|
@param[in] NotificationFunction The function to call when the token
|
|
|
|
|
specified by Guid and TokenNumber is set.
|
|
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
VOID
|
|
|
|
|
EFIAPI
|
|
|
|
@@ -840,8 +894,12 @@ LibPcdCallbackOnSet (
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Disable a notification function that was established with LibPcdCallbackonSet().
|
|
|
|
|
|
|
|
|
|
Disable a notification function that was previously established with LibPcdCallbackOnSet().
|
|
|
|
|
|
|
|
|
|
If NotificationFunction is NULL, then ASSERT().
|
|
|
|
|
If fail to cancel callback function, then ASSERT_EFI_ERROR().
|
|
|
|
|
If LibPcdCallbackOnSet() was not previously called with Guid, TokenNumber,
|
|
|
|
|
and NotificationFunction, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Specify the GUID token space.
|
|
|
|
|
@param[in] TokenNumber Specify the token number.
|
|
|
|
@@ -870,13 +928,15 @@ LibPcdCancelCallback (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Retrieves the next token in a token space.
|
|
|
|
|
|
|
|
|
|
Retrieves the next PCD token number from the token space specified by Guid.
|
|
|
|
|
If Guid is NULL, then the default token space is used. If TokenNumber is 0,
|
|
|
|
|
then the first token number is returned. Otherwise, the token number that
|
|
|
|
|
follows TokenNumber in the token space is returned. If TokenNumber is the last
|
|
|
|
|
token number in the token space, then 0 is returned. If TokenNumber is not 0 and
|
|
|
|
|
is not in the token space specified by Guid, then ASSERT().
|
|
|
|
|
If Fail to get next token, then ASSERT_EFI_ERROR().
|
|
|
|
|
token number in the token space, then 0 is returned.
|
|
|
|
|
|
|
|
|
|
If TokenNumber is not 0 and is not in the token space specified by Guid, then ASSERT().
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates which namespace
|
|
|
|
|
to set a value from. If NULL, then the default token space is used.
|
|
|
|
@@ -914,7 +974,8 @@ LibPcdGetNextToken (
|
|
|
|
|
then NULL is returned.
|
|
|
|
|
|
|
|
|
|
If Guid is not NULL and is not a valid token space in the current platform, then ASSERT().
|
|
|
|
|
If fail to get next token space, then ASSERT_EFI_ERROR().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@param[in] Guid Pointer to a 128-bit unique value that designates from which namespace
|
|
|
|
|
to start the search.
|
|
|
|
@@ -939,6 +1000,8 @@ LibPcdGetNextTokenSpace (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Sets a value of a patchable PCD entry that is type pointer.
|
|
|
|
|
|
|
|
|
|
Sets the PCD entry specified by PatchVariable to the value specified by Buffer
|
|
|
|
|
and SizeOfBuffer. Buffer is returned. If SizeOfBuffer is greater than
|
|
|
|
|
MaximumDatumSize, then set SizeOfBuffer to MaximumDatumSize and return
|
|
|
|
@@ -954,12 +1017,10 @@ LibPcdGetNextTokenSpace (
|
|
|
|
|
the target of the set operation.
|
|
|
|
|
@param[in] MaximumDatumSize The maximum size allowed for the PCD entry specified by PatchVariable.
|
|
|
|
|
@param[in, out] SizeOfBuffer A pointer to the size, in bytes, of Buffer.
|
|
|
|
|
In out, returns actual size of buffer is set.
|
|
|
|
|
@param[in] Buffer A pointer to the buffer to used to set the target variable.
|
|
|
|
|
|
|
|
|
|
@return Return the pointer to the buffer been set.
|
|
|
|
|
@retval NULL If SizeOfBuffer is set to MAX_ADDRESS or larger than MaximumDatumSize,
|
|
|
|
|
then SizeOfBuffer must be set to MaximumDatumSize and NULL must be returned.
|
|
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
VOID *
|
|
|
|
|
EFIAPI
|
|
|
|
|