Re-defined PCD_INVALID_TOKEN_NUMBER in header files of PCD Ppi&Protocol, since it will be added into PCD Spec. Removed PCD_INVALID_TOKEN_NUMBER from Pcd Library class, since it wasn't defined in MDE Spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6164 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-10-21 05:05:48 +00:00
parent 6e53646837
commit 19fd6450a3
3 changed files with 50 additions and 67 deletions

View File

@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef __PCD_LIB_H__
#define __PCD_LIB_H__
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
#define PCD_MAX_SKU_ID 0x100
#define PcdToken(TokenName) _PCD_TOKEN_##TokenName

View File

@ -18,6 +18,8 @@
#define PCD_PPI_GUID \
{ 0x6e81c58, 0x4ad7, 0x44bc, { 0x83, 0x90, 0xf1, 0x2, 0x65, 0xf7, 0x24, 0x80 } }
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
/**
Sets the SKU value for subsequent calls to set or get PCD token values.
@ -448,9 +450,6 @@ EFI_STATUS
IN UINT64 Value
);
/**
Sets a value of a specified size for a given PCD token.
@ -459,7 +458,7 @@ EFI_STATUS
If it is not, an error will be returned.
@param[in] TokenNumber The PCD token number.
@param[in, out] SizeOfBuffer A pointer to the length of the value being set for the PCD token.
@param[in, out] SizeOfValue A pointer to the length of the value being set for the PCD token.
On input, if the SizeOfValue is greater than the maximum size supported
for this TokenNumber then the output value of SizeOfValue will reflect
the maximum size supported for this TokenNumber.
@ -476,17 +475,9 @@ typedef
EFI_STATUS
(EFIAPI *PCD_PPI_SET_POINTER)(
IN UINTN TokenNumber,
IN OUT UINTN *SizeOfBuffer,
IN OUT UINTN *SizeOfValue,
IN VOID *Buffer
);
///EFI_STATUS
///(EFIAPI *PCD_PPI_SET_POINTER) (
///IN PCD_TOKEN_NUMBER TokenNumber,
///IN UINTN SizeOfValue,
///IN VOID *Buffer
/// );
/**
Sets an Boolean value for a given PCD token.
@ -635,7 +626,7 @@ EFI_STATUS
@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, out] SizeOfBuffer A pointer to the length of the value being set for the PCD token.
@param[in, out] SizeOfValue A pointer to the length of the value being set for the PCD token.
On input, if the SizeOfValue is greater than the maximum size supported
for this TokenNumber then the output value of SizeOfValue will reflect
the maximum size supported for this TokenNumber.
@ -653,19 +644,9 @@ EFI_STATUS
(EFIAPI *PCD_PPI_SET_EX_POINTER)(
IN CONST EFI_GUID *Guid,
IN UINTN TokenNumber,
IN OUT UINTN *SizeOfBuffer,
IN OUT UINTN *SizeOfValue,
IN VOID *Buffer
);
/// different with PCD Spec 0.54
///EFI_STATUS
///(EFIAPI *PCD_PPI_SET_EX_POINTER) (
/// IN CONST EFI_GUID *Guid,
/// IN PCD_TOKEN_NUMBER TokenNumber,
/// IN UINTN SizeOfValue,
/// IN VOID *Buffer
/// );
///
/**
Sets an Boolean value for a given PCD token.

View File

@ -20,6 +20,9 @@ extern EFI_GUID gPcdProtocolGuid;
#define PCD_PROTOCOL_GUID \
{ 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }
#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
/**
Sets the SKU value for subsequent calls to set or get PCD token values.