diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-21 07:42:51 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-21 07:42:51 +0000 |
commit | fb287b565f8677469e6acca1fb19229c4dffaa94 (patch) | |
tree | 4b91682df1051806605975e1b8625b02c7ab2f7c /MdePkg | |
parent | 9199040cb29991c1ee4259a50cab8dd8f1cc96c2 (diff) | |
download | edk2-platforms-fb287b565f8677469e6acca1fb19229c4dffaa94.tar.xz |
Update function header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5534 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Library/PcdLib.h | 134 |
1 files changed, 68 insertions, 66 deletions
diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h index 8db9a0270a..1d409b4773 100644 --- a/MdePkg/Include/Library/PcdLib.h +++ b/MdePkg/Include/Library/PcdLib.h @@ -1,7 +1,15 @@ /** @file
-PCD Library Class Interface Declarations
+PCD Library Class provides PCD usage macro interface for all PCD types. It should be
+included at any module who use PCD.
-Copyright (c) 2006 - 2007, Intel Corporation
+If module use dynamic/dynamicex PCD, module should be linked to PEIM/DXE library
+instance to access that PCD.
+If module uses PatchableInModule type PCD, also need library instance produce LibPatchPcdSetPtr()
+interface.
+For FeatureFlag/Fixed PCD, macro interface is translated to an variable or macro
+which is auto-generated by build tool in module's autogen.h/autogen.c
+
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -113,7 +121,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 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.
+ set values associated with a PCD token.
@retval SKU_ID Return the SKU ID that just be set.
@@ -291,9 +299,9 @@ LibPcdGetEx32 ( 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
- which namespace to retrieve a value from.
- @param[in] TokenNumber The PCD token number to retrieve a current value for.
+ @param[in] Guid Pointer to a 128-bit unique value that designates
+ which namespace to retrieve a value from.
+ @param[in] TokenNumber The PCD token number to retrieve a current value for.
@retval UINT64 Return the UINT64.
@@ -310,9 +318,9 @@ LibPcdGetEx64 ( 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
- which namespace to retrieve a value from.
- @param[in] TokenNumber The PCD token number to retrieve a current value for.
+ @param[in] Guid Pointer to a 128-bit unique value that designates
+ which namespace to retrieve a value from.
+ @param[in] TokenNumber The PCD token number to retrieve a current value for.
@retval VOID* Return the VOID* pointer.
@@ -329,9 +337,9 @@ LibPcdGetExPtr ( 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
- which namespace to retrieve a value from.
- @param[in] TokenNumber The PCD token number to retrieve a current value for.
+ @param[in] Guid Pointer to a 128-bit unique value that designates
+ which namespace to retrieve a value from.
+ @param[in] TokenNumber The PCD token number to retrieve a current value for.
@retval BOOLEAN Return the BOOLEAN.
@@ -348,9 +356,9 @@ LibPcdGetExBool ( 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
- which namespace to retrieve a value from.
- @param[in] TokenNumber The PCD token number to retrieve a current value for.
+ @param[in] Guid Pointer to a 128-bit unique value that designates
+ which namespace to retrieve a value from.
+ @param[in] TokenNumber The PCD token number to retrieve a current value for.
@retval UINTN Return the size.
@@ -367,8 +375,8 @@ LibPcdGetExSize ( Sets the 8-bit value for the token specified by TokenNumber
to the value specified by Value. Value is returned.
- @param[in] TokenNumber The PCD token number to set a current value for.
- @param[in] Value The 8-bit value to set.
+ @param[in] TokenNumber The PCD token number to set a current value for.
+ @param[in] Value The 8-bit value to set.
@retval UINT8 Return the value been set.
@@ -385,8 +393,8 @@ LibPcdSet8 ( Sets the 16-bit value for the token specified by TokenNumber
to the value specified by Value. Value is returned.
- @param[in] TokenNumber The PCD token number to set a current value for.
- @param[in] Value The 16-bit value to set.
+ @param[in] TokenNumber The PCD token number to set a current value for.
+ @param[in] Value The 16-bit value to set.
@retval UINT16 Return the value been set.
@@ -403,8 +411,8 @@ LibPcdSet16 ( Sets the 32-bit value for the token specified by TokenNumber
to the value specified by Value. Value is returned.
- @param[in] TokenNumber The PCD token number to set a current value for.
- @param[in] Value The 32-bit value to set.
+ @param[in] TokenNumber The PCD token number to set a current value for.
+ @param[in] Value The 32-bit value to set.
@retval UINT32 Return the value been set.
@@ -421,8 +429,8 @@ LibPcdSet32 ( Sets the 64-bit value for the token specified by TokenNumber
to the value specified by Value. Value is returned.
- @param[in] TokenNumber The PCD token number to set a current value for.
- @param[in] Value The 64-bit value to set.
+ @param[in] TokenNumber The PCD token number to set a current value for.
+ @param[in] Value The 64-bit value to set.
@retval UINT64 Return the value been set.
@@ -468,8 +476,8 @@ LibPcdSetPtr ( Sets the Boolean value for the token specified by TokenNumber
to the value specified by Value. Value is returned.
- @param[in] TokenNumber The PCD token number to set a current value for.
- @param[in] Value The boolean value to set.
+ @param[in] TokenNumber The PCD token number to set a current value for.
+ @param[in] Value The boolean value to set.
@retval BOOLEAN Return the value been set.
@@ -487,10 +495,10 @@ LibPcdSetBool ( Guid to the value specified by Value. Value is returned.
If Guid 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] Value The 8-bit value to set.
+ @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] Value The 8-bit value to set.
@retval UINT8 Return the value been set.
@@ -509,10 +517,10 @@ LibPcdSetEx8 ( Guid to the value specified by Value. Value is returned.
If Guid 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] Value The 16-bit value to set.
+ @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] Value The 16-bit value to set.
@retval UINT8 Return the value been set.
@@ -531,10 +539,10 @@ LibPcdSetEx16 ( Guid to the value specified by Value. Value is returned.
If Guid 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] Value The 32-bit value to set.
+ @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] Value The 32-bit value to set.
@retval UINT32 Return the value been set.
@@ -553,10 +561,10 @@ LibPcdSetEx32 ( Guid to the value specified by Value. Value is returned.
If Guid 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] Value The 64-bit value to set.
+ @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] Value The 64-bit value to set.
@retval UINT64 Return the value been set.
@@ -581,11 +589,11 @@ LibPcdSetEx64 ( If SizeOfValue is NULL, then ASSERT().
If SizeOfValue > 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.
- @param[in] Buffer A pointer to the buffer to set.
+ @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.
+ @param[in] Buffer A pointer to the buffer to set.
@retval VOID * Return the pinter to the buffer been set.
@@ -605,10 +613,10 @@ LibPcdSetExPtr ( Guid to the value specified by Value. Value is returned.
If Guid 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] Value The Boolean value to set.
+ @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] Value The Boolean value to set.
@retval Boolean Return the value been set.
@@ -641,8 +649,6 @@ LibPcdSetExBool ( @param[in, out] TokenData A pointer to the token data being set.
@param[in] TokenDataSize The size, in bytes, of the data being set.
- @retval VOID
-
**/
typedef
VOID
@@ -660,14 +666,12 @@ VOID If Guid is NULL, then the default token space is used.
If NotificationFunction is NULL, 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.
- @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.
-
- @retval VOID
+ @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.
+ @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
@@ -682,12 +686,10 @@ LibPcdCallbackOnSet ( /**
Disable a notification function that was established with LibPcdCallbackonSet().
- @param[in] Guid Specify the GUID token space.
- @param[in] TokenNumber Specify the token number.
+ @param[in] Guid Specify the GUID token space.
+ @param[in] TokenNumber Specify the token number.
@param[in] NotificationFunction The callback function to be unregistered.
- @retval VOID
-
**/
VOID
EFIAPI
@@ -734,8 +736,8 @@ LibPcdGetNextToken ( - @param[in] Guid Pointer to a 128-bit unique value that designates from which namespace
- to start the search.
+ @param[in] Guid Pointer to a 128-bit unique value that designates from which namespace
+ to start the search.
@retval CONST GUID * The next valid token namespace.
|