updated definitions of PCD PPI/Protocol per latest UEFI Spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10134 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2010-03-01 06:14:46 +00:00
parent be04587c86
commit d6b58d3219
3 changed files with 197 additions and 193 deletions

View File

@ -12,7 +12,7 @@
This protocol allows access to data through size-granular APIs and provides a mechanism for a This protocol allows access to data through size-granular APIs and provides a mechanism for a
firmware component to monitor specific settings and be alerted when a setting is changed. firmware component to monitor specific settings and be alerted when a setting is changed.
Copyright (c) 2009, Intel Corporation Copyright (c) 2009 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -67,7 +67,7 @@ VOID
**/ **/
typedef typedef
UINT8 UINT8
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_8)( (EFIAPI *EFI_PEI_PCD_PPI_GET_8)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -83,7 +83,7 @@ UINT8
**/ **/
typedef typedef
UINT16 UINT16
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_16)( (EFIAPI *EFI_PEI_PCD_PPI_GET_16)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -99,7 +99,7 @@ UINT16
**/ **/
typedef typedef
UINT32 UINT32
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_32)( (EFIAPI *EFI_PEI_PCD_PPI_GET_32)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -115,7 +115,7 @@ UINT32
**/ **/
typedef typedef
UINT64 UINT64
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_64)( (EFIAPI *EFI_PEI_PCD_PPI_GET_64)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -130,7 +130,7 @@ UINT64
**/ **/
typedef typedef
VOID * VOID *
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_POINTER)( (EFIAPI *EFI_PEI_PCD_PPI_GET_POINTER)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -146,7 +146,7 @@ VOID *
**/ **/
typedef typedef
BOOLEAN BOOLEAN
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_BOOLEAN)( (EFIAPI *EFI_PEI_PCD_PPI_GET_BOOLEAN)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -162,7 +162,7 @@ BOOLEAN
**/ **/
typedef typedef
UINTN UINTN
(EFIAPI *EFI_PEI_PCD_PPI_GET_EX_SIZE)( (EFIAPI *EFI_PEI_PCD_PPI_GET_SIZE)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -185,7 +185,7 @@ UINTN
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_8)( (EFIAPI *EFI_PEI_PCD_PPI_SET_8)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT8 Value IN UINT8 Value
@ -209,7 +209,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_16)( (EFIAPI *EFI_PEI_PCD_PPI_SET_16)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT16 Value IN UINT16 Value
@ -233,7 +233,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_32)( (EFIAPI *EFI_PEI_PCD_PPI_SET_32)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT32 Value IN UINT32 Value
@ -257,7 +257,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_64)( (EFIAPI *EFI_PEI_PCD_PPI_SET_64)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT64 Value IN UINT64 Value
@ -271,7 +271,9 @@ EFI_STATUS
@param[in] Guid The 128-bit unique value that designates which namespace to extract the value from. @param[in] Guid The 128-bit unique value that designates which namespace to extract the value from.
@param[in] TokenNumber The PCD token number. @param[in] TokenNumber The PCD token number.
@param[in] SizeOfValue The length of the Value being set for the PCD token. @param[in] SizeOfValue The length of the value being set for the PCD token. If too large of a length is
specified, upon return from this function the value of SizeOfValue will reflect the
maximum size for the PCD token.
@param[in] Buffer A pointer to the buffer containing the value to set for the PCD token. @param[in] Buffer A pointer to the buffer containing the value to set for the PCD token.
@retval EFI_SUCCESS The PCD service has set the value requested @retval EFI_SUCCESS The PCD service has set the value requested
@ -282,7 +284,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_POINTER)( (EFIAPI *EFI_PEI_PCD_PPI_SET_POINTER)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN OUT UINTN *SizeOfValue, IN OUT UINTN *SizeOfValue,
@ -307,7 +309,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_SET_EX_BOOLEAN)( (EFIAPI *EFI_PEI_PCD_PPI_SET_BOOLEAN)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN BOOLEAN Value IN BOOLEAN Value
@ -315,11 +317,11 @@ EFI_STATUS
typedef typedef
VOID VOID
(EFIAPI *EFI_PCD_PPI_CALLBACK)( (EFIAPI *EFI_PEI_PCD_PPI_CALLBACK)(
IN EFI_GUID *Guid OPTIONAL, IN EFI_GUID *Guid OPTIONAL,
IN UINTN CallBackToken, IN UINTN CallBackToken,
IN VOID *TokenData, IN OUT VOID *TokenData,
IN UINTN TokenDatSize IN UINTN TokenDatSize
); );
/** /**
@ -338,9 +340,9 @@ VOID
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_CALLBACK_ON_SET)( (EFIAPI *EFI_PEI_PCD_PPI_CALLBACK_ON_SET)(
IN CONST EFI_GUID *Guid OPTIONAL, IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN CallBackToken, IN UINTN CallBackToken,
IN EFI_PCD_PPI_CALLBACK CallBackFunction IN EFI_PEI_PCD_PPI_CALLBACK CallBackFunction
); );
/** /**
@ -360,9 +362,9 @@ EFI_STATUS
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PEI_PCD_PPI_CANCEL_CALLBACK)( (EFIAPI *EFI_PEI_PCD_PPI_CANCEL_CALLBACK)(
IN CONST EFI_GUID *Guid OPTIONAL, IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN CallBackToken, IN UINTN CallBackToken,
IN EFI_PCD_PPI_CALLBACK CallBackFunction IN EFI_PEI_PCD_PPI_CALLBACK CallBackFunction
); );
/** /**
@ -408,19 +410,19 @@ EFI_STATUS
typedef struct { typedef struct {
EFI_PEI_PCD_PPI_SET_SKU SetSku; EFI_PEI_PCD_PPI_SET_SKU SetSku;
EFI_PEI_PCD_PPI_GET_EX_8 GetEx8; EFI_PEI_PCD_PPI_GET_8 GetEx8;
EFI_PEI_PCD_PPI_GET_EX_16 GetEx16; EFI_PEI_PCD_PPI_GET_16 GetEx16;
EFI_PEI_PCD_PPI_GET_EX_32 GetEx32; EFI_PEI_PCD_PPI_GET_32 GetEx32;
EFI_PEI_PCD_PPI_GET_EX_64 GetEx64; EFI_PEI_PCD_PPI_GET_64 GetEx64;
EFI_PEI_PCD_PPI_GET_EX_POINTER GetExPtr; EFI_PEI_PCD_PPI_GET_POINTER GetExPtr;
EFI_PEI_PCD_PPI_GET_EX_BOOLEAN GetExBool; EFI_PEI_PCD_PPI_GET_BOOLEAN GetExBool;
EFI_PEI_PCD_PPI_GET_EX_SIZE GetExSize; EFI_PEI_PCD_PPI_GET_SIZE GetExSize;
EFI_PEI_PCD_PPI_SET_EX_8 SetEx8; EFI_PEI_PCD_PPI_SET_8 SetEx8;
EFI_PEI_PCD_PPI_SET_EX_16 SetEx16; EFI_PEI_PCD_PPI_SET_16 SetEx16;
EFI_PEI_PCD_PPI_SET_EX_32 SetEx32; EFI_PEI_PCD_PPI_SET_32 SetEx32;
EFI_PEI_PCD_PPI_SET_EX_64 SetEx64; EFI_PEI_PCD_PPI_SET_64 SetEx64;
EFI_PEI_PCD_PPI_SET_EX_POINTER SetExPtr; EFI_PEI_PCD_PPI_SET_POINTER SetExPtr;
EFI_PEI_PCD_PPI_SET_EX_BOOLEAN SetExBool; EFI_PEI_PCD_PPI_SET_BOOLEAN SetExBool;
EFI_PEI_PCD_PPI_CALLBACK_ON_SET CallbackOnSet; EFI_PEI_PCD_PPI_CALLBACK_ON_SET CallbackOnSet;
EFI_PEI_PCD_PPI_CANCEL_CALLBACK CancelCallback; EFI_PEI_PCD_PPI_CANCEL_CALLBACK CancelCallback;
EFI_PEI_PCD_PPI_GET_NEXT_TOKEN GetNextToken; EFI_PEI_PCD_PPI_GET_NEXT_TOKEN GetNextToken;

View File

@ -12,7 +12,7 @@
This protocol allows access to data through size-granular APIs and provides a mechanism for a This protocol allows access to data through size-granular APIs and provides a mechanism for a
firmware component to monitor specific settings and be alerted when a setting is changed. firmware component to monitor specific settings and be alerted when a setting is changed.
Copyright (c) 2009, Intel Corporation Copyright (c) 2009 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -67,7 +67,7 @@ VOID
**/ **/
typedef typedef
UINT8 UINT8
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_8)( (EFIAPI *EFI_PCD_PROTOCOL_GET_8)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -83,7 +83,7 @@ UINT8
**/ **/
typedef typedef
UINT16 UINT16
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_16)( (EFIAPI *EFI_PCD_PROTOCOL_GET_16)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -99,7 +99,7 @@ UINT16
**/ **/
typedef typedef
UINT32 UINT32
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_32)( (EFIAPI *EFI_PCD_PROTOCOL_GET_32)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -116,7 +116,7 @@ UINT32
**/ **/
typedef typedef
UINT64 UINT64
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_64)( (EFIAPI *EFI_PCD_PROTOCOL_GET_64)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -133,7 +133,7 @@ UINT64
**/ **/
typedef typedef
VOID * VOID *
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_POINTER)( (EFIAPI *EFI_PCD_PROTOCOL_GET_POINTER)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -149,7 +149,7 @@ VOID *
**/ **/
typedef typedef
BOOLEAN BOOLEAN
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_BOOLEAN)( (EFIAPI *EFI_PCD_PROTOCOL_GET_BOOLEAN)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -165,7 +165,7 @@ BOOLEAN
**/ **/
typedef typedef
UINTN UINTN
(EFIAPI *EFI_PCD_PROTOCOL_GET_EX_SIZE)( (EFIAPI *EFI_PCD_PROTOCOL_GET_SIZE)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber IN UINTN TokenNumber
); );
@ -188,7 +188,7 @@ UINTN
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_8)( (EFIAPI *EFI_PCD_PROTOCOL_SET_8)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT8 Value IN UINT8 Value
@ -212,7 +212,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_16)( (EFIAPI *EFI_PCD_PROTOCOL_SET_16)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT16 Value IN UINT16 Value
@ -236,7 +236,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_32)( (EFIAPI *EFI_PCD_PROTOCOL_SET_32)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT32 Value IN UINT32 Value
@ -260,7 +260,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_64)( (EFIAPI *EFI_PCD_PROTOCOL_SET_64)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINT64 Value IN UINT64 Value
@ -274,7 +274,9 @@ EFI_STATUS
@param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value. @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value.
@param[in] TokenNumber The PCD token number. @param[in] TokenNumber The PCD token number.
@param[in] SizeOfValue The length of the value being set for the PCD token. @param[in] SizeOfValue The length of the value being set for the PCD token. If too large of a length is
specified, upon return from this function the value of SizeOfValue will
reflect the maximum size for the PCD token.
@param[in] Buffer A pointer to the buffer containing the value to set for the PCD token. @param[in] Buffer A pointer to the buffer containing the value to set for the PCD token.
@retval EFI_SUCCESS The PCD service has set the value requested @retval EFI_SUCCESS The PCD service has set the value requested
@ -285,10 +287,10 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_POINTER)( (EFIAPI *EFI_PCD_PROTOCOL_SET_POINTER)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN UINTN *SizeOfValue, IN OUT UINTN *SizeOfValue,
IN VOID *Buffer IN VOID *Buffer
); );
@ -310,7 +312,7 @@ EFI_STATUS
**/ **/
typedef typedef
EFI_STATUS EFI_STATUS
(EFIAPI *EFI_PCD_PROTOCOL_SET_EX_BOOLEAN)( (EFIAPI *EFI_PCD_PROTOCOL_SET_BOOLEAN)(
IN CONST EFI_GUID *Guid, IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber, IN UINTN TokenNumber,
IN BOOLEAN Value IN BOOLEAN Value
@ -319,10 +321,10 @@ EFI_STATUS
typedef typedef
VOID VOID
(EFIAPI *EFI_PCD_PROTOCOL_CALLBACK)( (EFIAPI *EFI_PCD_PROTOCOL_CALLBACK)(
IN EFI_GUID *Guid OPTIONAL, IN EFI_GUID *Guid OPTIONAL,
IN UINTN CallBackToken, IN UINTN CallBackToken,
IN VOID *TokenData, IN OUT VOID *TokenData,
IN UINTN TokenDataSize IN UINTN TokenDataSize
); );
/** /**
@ -400,19 +402,19 @@ EFI_STATUS
typedef struct _EFI_PCD_PROTOCOL { typedef struct _EFI_PCD_PROTOCOL {
EFI_PCD_PROTOCOL_SET_SKU SetSku; EFI_PCD_PROTOCOL_SET_SKU SetSku;
EFI_PCD_PROTOCOL_GET_EX_8 Get8Ex; EFI_PCD_PROTOCOL_GET_8 Get8Ex;
EFI_PCD_PROTOCOL_GET_EX_16 Get16Ex; EFI_PCD_PROTOCOL_GET_16 Get16Ex;
EFI_PCD_PROTOCOL_GET_EX_32 Get32Ex; EFI_PCD_PROTOCOL_GET_32 Get32Ex;
EFI_PCD_PROTOCOL_GET_EX_64 Get64Ex; EFI_PCD_PROTOCOL_GET_64 Get64Ex;
EFI_PCD_PROTOCOL_GET_EX_POINTER GetPtrEx; EFI_PCD_PROTOCOL_GET_POINTER GetPtrEx;
EFI_PCD_PROTOCOL_GET_EX_BOOLEAN GetBoolEx; EFI_PCD_PROTOCOL_GET_BOOLEAN GetBoolEx;
EFI_PCD_PROTOCOL_GET_EX_SIZE GetSizeEx; EFI_PCD_PROTOCOL_GET_SIZE GetSizeEx;
EFI_PCD_PROTOCOL_SET_EX_8 Set8Ex; EFI_PCD_PROTOCOL_SET_8 Set8Ex;
EFI_PCD_PROTOCOL_SET_EX_16 Set16Ex; EFI_PCD_PROTOCOL_SET_16 Set16Ex;
EFI_PCD_PROTOCOL_SET_EX_32 Set32Ex; EFI_PCD_PROTOCOL_SET_32 Set32Ex;
EFI_PCD_PROTOCOL_SET_EX_64 Set64Ex; EFI_PCD_PROTOCOL_SET_64 Set64Ex;
EFI_PCD_PROTOCOL_SET_EX_POINTER SetPtrEx; EFI_PCD_PROTOCOL_SET_POINTER SetPtrEx;
EFI_PCD_PROTOCOL_SET_EX_BOOLEAN SetBoolEx; EFI_PCD_PROTOCOL_SET_BOOLEAN SetBoolEx;
EFI_PCD_PROTOCOL_CALLBACK_ON_SET CallbackOnSet; EFI_PCD_PROTOCOL_CALLBACK_ON_SET CallbackOnSet;
EFI_PCD_PROTOCOL_CANCEL_CALLBACK CancelCallback; EFI_PCD_PROTOCOL_CANCEL_CALLBACK CancelCallback;
EFI_PCD_PROTOCOL_GET_NEXT_TOKEN GetNextToken; EFI_PCD_PROTOCOL_GET_NEXT_TOKEN GetNextToken;

View File

@ -893,7 +893,7 @@ LibPcdCallbackOnSet (
ASSERT (NotificationFunction != NULL); ASSERT (NotificationFunction != NULL);
Status = (GetPiPcdPpiPointer ())->CallbackOnSet (Guid, TokenNumber, (EFI_PCD_PPI_CALLBACK) NotificationFunction); Status = (GetPiPcdPpiPointer ())->CallbackOnSet (Guid, TokenNumber, (EFI_PEI_PCD_PPI_CALLBACK) NotificationFunction);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
@ -927,7 +927,7 @@ LibPcdCancelCallback (
ASSERT (NotificationFunction != NULL); ASSERT (NotificationFunction != NULL);
Status = (GetPiPcdPpiPointer ())->CancelCallback (Guid, TokenNumber, (EFI_PCD_PPI_CALLBACK) NotificationFunction); Status = (GetPiPcdPpiPointer ())->CancelCallback (Guid, TokenNumber, (EFI_PEI_PCD_PPI_CALLBACK) NotificationFunction);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);