36#define PcdToken(TokenName) _PCD_TOKEN_##TokenName
50#define FeaturePcdGet(TokenName) _PCD_GET_MODE_BOOL_##TokenName
64#define FixedPcdGet8(TokenName) _PCD_VALUE_##TokenName
78#define FixedPcdGet16(TokenName) _PCD_VALUE_##TokenName
92#define FixedPcdGet32(TokenName) _PCD_VALUE_##TokenName
106#define FixedPcdGet64(TokenName) _PCD_VALUE_##TokenName
120#define FixedPcdGetBool(TokenName) _PCD_VALUE_##TokenName
134#define FixedPcdGetPtr(TokenName) ((VOID *)_PCD_VALUE_##TokenName)
148#define PatchPcdGet8(TokenName) _gPcd_BinaryPatch_##TokenName
162#define PatchPcdGet16(TokenName) _gPcd_BinaryPatch_##TokenName
176#define PatchPcdGet32(TokenName) _gPcd_BinaryPatch_##TokenName
190#define PatchPcdGet64(TokenName) _gPcd_BinaryPatch_##TokenName
204#define PatchPcdGetBool(TokenName) _gPcd_BinaryPatch_##TokenName
218#define PatchPcdGetPtr(TokenName) ((VOID *)_gPcd_BinaryPatch_##TokenName)
233#define PatchPcdSet8(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
248#define PatchPcdSet16(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
263#define PatchPcdSet32(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
278#define PatchPcdSet64(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
293#define PatchPcdSetBool(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
316#define PatchPcdSetPtr(TokenName, Size, Buffer) \
317 LibPatchPcdSetPtrAndSize ( \
318 (VOID *)_gPcd_BinaryPatch_##TokenName, \
319 &_gPcd_BinaryPatch_Size_##TokenName, \
320 (UINTN)_PCD_PATCHABLE_##TokenName##_SIZE, \
336#define PcdGet8(TokenName) _PCD_GET_MODE_8_##TokenName
349#define PcdGet16(TokenName) _PCD_GET_MODE_16_##TokenName
362#define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName
375#define PcdGet64(TokenName) _PCD_GET_MODE_64_##TokenName
388#define PcdGetPtr(TokenName) _PCD_GET_MODE_PTR_##TokenName
401#define PcdGetBool(TokenName) _PCD_GET_MODE_BOOL_##TokenName
414#define FixedPcdGetSize(TokenName) _PCD_SIZE_##TokenName
427#define PatchPcdGetSize(TokenName) _gPcd_BinaryPatch_Size_##TokenName
440#define PcdGetSize(TokenName) _PCD_GET_MODE_SIZE_##TokenName
455#define PcdGetExSize(Guid, TokenName) LibPcdGetExSize ((Guid), PcdTokenEx(Guid,TokenName))
469#define PcdSet8S(TokenName, Value) _PCD_SET_MODE_8_S_##TokenName ((Value))
483#define PcdSet16S(TokenName, Value) _PCD_SET_MODE_16_S_##TokenName ((Value))
497#define PcdSet32S(TokenName, Value) _PCD_SET_MODE_32_S_##TokenName ((Value))
511#define PcdSet64S(TokenName, Value) _PCD_SET_MODE_64_S_##TokenName ((Value))
534#define PcdSetPtrS(TokenName, SizeOfBuffer, Buffer) \
535 _PCD_SET_MODE_PTR_S_##TokenName ((SizeOfBuffer), (Buffer))
549#define PcdSetBoolS(TokenName, Value) _PCD_SET_MODE_BOOL_S_##TokenName ((Value))
564#define PcdTokenEx(Guid, TokenName) _PCD_TOKEN_EX_##TokenName(Guid)
582#define PcdGetEx8(Guid, TokenName) LibPcdGetEx8 ((Guid), PcdTokenEx(Guid,TokenName))
600#define PcdGetEx16(Guid, TokenName) LibPcdGetEx16 ((Guid), PcdTokenEx(Guid,TokenName))
618#define PcdGetEx32(Guid, TokenName) LibPcdGetEx32 ((Guid), PcdTokenEx(Guid,TokenName))
636#define PcdGetEx64(Guid, TokenName) LibPcdGetEx64 ((Guid), PcdTokenEx(Guid,TokenName))
654#define PcdGetExPtr(Guid, TokenName) LibPcdGetExPtr ((Guid), PcdTokenEx(Guid,TokenName))
672#define PcdGetExBool(Guid, TokenName) LibPcdGetExBool ((Guid), PcdTokenEx(Guid,TokenName))
691#define PcdSetEx8S(Guid, TokenName, Value) LibPcdSetEx8S ((Guid), PcdTokenEx(Guid,TokenName), (Value))
710#define PcdSetEx16S(Guid, TokenName, Value) LibPcdSetEx16S ((Guid), PcdTokenEx(Guid,TokenName), (Value))
729#define PcdSetEx32S(Guid, TokenName, Value) LibPcdSetEx32S ((Guid), PcdTokenEx(Guid,TokenName), (Value))
748#define PcdSetEx64S(Guid, TokenName, Value) LibPcdSetEx64S ((Guid), PcdTokenEx(Guid,TokenName), (Value))
775#define PcdSetExPtrS(Guid, TokenName, SizeOfBuffer, Buffer) \
776 LibPcdSetExPtrS ((Guid), PcdTokenEx(Guid,TokenName), (SizeOfBuffer), (Buffer))
795#define PcdSetExBoolS(Guid, TokenName, Value) \
796 LibPcdSetExBoolS ((Guid), PcdTokenEx(Guid,TokenName), (Value))
1366 IN OUT VOID *TokenData,
1486 OUT VOID *PatchVariable,
1518 OUT VOID *PatchVariable,
1552 OUT VOID *PatchVariable,
1587 OUT VOID *PatchVariable,
EFI_STATUS EFIAPI NotificationFunction(IN EFI_KEY_DATA *KeyData)
VOID EFIAPI LibPcdCallbackOnSet(IN CONST GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_CALLBACK NotificationFunction)
RETURN_STATUS EFIAPI LibPcdSetEx16S(IN CONST GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
RETURN_STATUS EFIAPI LibPcdSet8S(IN UINTN TokenNumber, IN UINT8 Value)
RETURN_STATUS EFIAPI LibPatchPcdSetPtrS(OUT VOID *PatchVariable, IN UINTN MaximumDatumSize, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
UINTN EFIAPI LibPcdGetNextToken(IN CONST GUID *Guid OPTIONAL, IN UINTN TokenNumber)
UINT32 EFIAPI LibPcdGetEx32(IN CONST GUID *Guid, IN UINTN TokenNumber)
UINT8 EFIAPI LibPcdGetEx8(IN CONST GUID *Guid, IN UINTN TokenNumber)
VOID EFIAPI LibPcdGetInfoEx(IN CONST GUID *Guid, IN UINTN TokenNumber, OUT PCD_INFO *PcdInfo)
RETURN_STATUS EFIAPI LibPatchPcdSetPtrAndSizeS(OUT VOID *PatchVariable, OUT UINTN *SizeOfPatchVariable, IN UINTN MaximumDatumSize, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
UINT16 EFIAPI LibPcdGet16(IN UINTN TokenNumber)
UINT64 EFIAPI LibPcdGetEx64(IN CONST GUID *Guid, IN UINTN TokenNumber)
UINT16 EFIAPI LibPcdGetEx16(IN CONST GUID *Guid, IN UINTN TokenNumber)
VOID(EFIAPI * PCD_CALLBACK)(IN CONST GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)
RETURN_STATUS EFIAPI LibPcdSetExPtrS(IN CONST GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
VOID EFIAPI LibPcdGetInfo(IN UINTN TokenNumber, OUT PCD_INFO *PcdInfo)
UINTN EFIAPI LibPcdGetSize(IN UINTN TokenNumber)
RETURN_STATUS EFIAPI LibPcdSetPtrS(IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
UINT64 EFIAPI LibPcdGet64(IN UINTN TokenNumber)
UINTN EFIAPI LibPcdGetSku(VOID)
GUID *EFIAPI LibPcdGetNextTokenSpace(IN CONST GUID *TokenSpaceGuid)
RETURN_STATUS EFIAPI LibPcdSetEx8S(IN CONST GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
RETURN_STATUS EFIAPI LibPcdSetExBoolS(IN CONST GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
RETURN_STATUS EFIAPI LibPcdSetEx64S(IN CONST GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
VOID *EFIAPI LibPatchPcdSetPtrAndSize(OUT VOID *PatchVariable, OUT UINTN *SizeOfPatchVariable, IN UINTN MaximumDatumSize, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
UINT8 EFIAPI LibPcdGet8(IN UINTN TokenNumber)
VOID *EFIAPI LibPatchPcdSetPtr(OUT VOID *PatchVariable, IN UINTN MaximumDatumSize, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
RETURN_STATUS EFIAPI LibPcdSet32S(IN UINTN TokenNumber, IN UINT32 Value)
RETURN_STATUS EFIAPI LibPcdSet16S(IN UINTN TokenNumber, IN UINT16 Value)
VOID EFIAPI LibPcdCancelCallback(IN CONST GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_CALLBACK NotificationFunction)
UINT32 EFIAPI LibPcdGet32(IN UINTN TokenNumber)
RETURN_STATUS EFIAPI LibPcdSetEx32S(IN CONST GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
VOID *EFIAPI LibPcdGetExPtr(IN CONST GUID *Guid, IN UINTN TokenNumber)
VOID *EFIAPI LibPcdGetPtr(IN UINTN TokenNumber)
RETURN_STATUS EFIAPI LibPcdSet64S(IN UINTN TokenNumber, IN UINT64 Value)
UINTN EFIAPI LibPcdGetExSize(IN CONST GUID *Guid, IN UINTN TokenNumber)
UINTN EFIAPI LibPcdSetSku(IN UINTN SkuId)
BOOLEAN EFIAPI LibPcdGetBool(IN UINTN TokenNumber)
RETURN_STATUS EFIAPI LibPcdSetBoolS(IN UINTN TokenNumber, IN BOOLEAN Value)
BOOLEAN EFIAPI LibPcdGetExBool(IN CONST GUID *Guid, IN UINTN TokenNumber)