288 ASSERT (Guid !=
NULL);
314 ASSERT (Guid !=
NULL);
337 ASSERT (Guid !=
NULL);
363 ASSERT (Guid !=
NULL);
388 ASSERT (Guid !=
NULL);
414 ASSERT (Guid !=
NULL);
439 ASSERT (Guid !=
NULL);
561 ASSERT (SizeOfBuffer !=
NULL);
563 if (*SizeOfBuffer > 0) {
564 ASSERT (Buffer !=
NULL);
567 return (
GetPcdPpiPointer ())->SetPtr (TokenNumber, SizeOfBuffer, (VOID *)Buffer);
616 ASSERT (Guid !=
NULL);
645 ASSERT (Guid !=
NULL);
674 ASSERT (Guid !=
NULL);
703 ASSERT (Guid !=
NULL);
739 ASSERT (Guid !=
NULL);
741 ASSERT (SizeOfBuffer !=
NULL);
743 if (*SizeOfBuffer > 0) {
744 ASSERT (Buffer !=
NULL);
774 ASSERT (Guid !=
NULL);
875 ASSERT (!EFI_ERROR (Status) || TokenNumber == 0);
901 return (
GUID *)TokenSpaceGuid;
930 OUT VOID *PatchVariable,
936 ASSERT (PatchVariable !=
NULL);
937 ASSERT (SizeOfBuffer !=
NULL);
939 if (*SizeOfBuffer > 0) {
940 ASSERT (Buffer !=
NULL);
943 if ((*SizeOfBuffer > MaximumDatumSize) ||
946 *SizeOfBuffer = MaximumDatumSize;
950 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
952 return (VOID *)Buffer;
981 OUT VOID *PatchVariable,
987 ASSERT (PatchVariable !=
NULL);
988 ASSERT (SizeOfBuffer !=
NULL);
990 if (*SizeOfBuffer > 0) {
991 ASSERT (Buffer !=
NULL);
994 if ((*SizeOfBuffer > MaximumDatumSize) ||
997 *SizeOfBuffer = MaximumDatumSize;
1001 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
1034 OUT VOID *PatchVariable,
1041 ASSERT (PatchVariable !=
NULL);
1042 ASSERT (SizeOfPatchVariable !=
NULL);
1043 ASSERT (SizeOfBuffer !=
NULL);
1045 if (*SizeOfBuffer > 0) {
1046 ASSERT (Buffer !=
NULL);
1049 if ((*SizeOfBuffer > MaximumDatumSize) ||
1052 *SizeOfBuffer = MaximumDatumSize;
1056 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
1057 *SizeOfPatchVariable = *SizeOfBuffer;
1059 return (VOID *)Buffer;
1090 OUT VOID *PatchVariable,
1097 ASSERT (PatchVariable !=
NULL);
1098 ASSERT (SizeOfPatchVariable !=
NULL);
1099 ASSERT (SizeOfBuffer !=
NULL);
1101 if (*SizeOfBuffer > 0) {
1102 ASSERT (Buffer !=
NULL);
1105 if ((*SizeOfBuffer > MaximumDatumSize) ||
1108 *SizeOfBuffer = MaximumDatumSize;
1112 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
1113 *SizeOfPatchVariable = *SizeOfBuffer;
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_STATUS EFIAPI NotificationFunction(IN EFI_KEY_DATA *KeyData)
EFI_STATUS EFIAPI PeiServicesLocatePpi(IN CONST EFI_GUID *Guid, IN UINTN Instance, IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, IN OUT VOID **Ppi)
#define RETURN_INVALID_PARAMETER
#define ASSERT_EFI_ERROR(StatusParameter)
VOID(EFIAPI * PCD_CALLBACK)(IN CONST GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)
VOID EFIAPI LibPcdCallbackOnSet(IN CONST GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_CALLBACK NotificationFunction)
PCD_PPI * GetPcdPpiPointer(VOID)
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)
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)
EFI_GET_PCD_INFO_PPI * GetPiPcdInfoPpiPointer(VOID)
UINT8 EFIAPI LibPcdGet8(IN UINTN TokenNumber)
VOID *EFIAPI LibPatchPcdSetPtr(OUT VOID *PatchVariable, IN UINTN MaximumDatumSize, IN OUT UINTN *SizeOfBuffer, IN CONST VOID *Buffer)
GET_PCD_INFO_PPI * GetPcdInfoPpiPointer(VOID)
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)
EFI_PEI_PCD_PPI * GetPiPcdPpiPointer(VOID)
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)
EFI_GET_PCD_INFO_PPI_GET_INFO GetInfo
EFI_GET_PCD_INFO_PPI_GET_SKU GetSku
GET_PCD_INFO_PPI_GET_INFO GetInfo