831 OUT VOID *PatchVariable,
837 ASSERT (PatchVariable !=
NULL);
838 ASSERT (SizeOfBuffer !=
NULL);
840 if (*SizeOfBuffer > 0) {
841 ASSERT (Buffer !=
NULL);
844 if ((*SizeOfBuffer > MaximumDatumSize) ||
847 *SizeOfBuffer = MaximumDatumSize;
851 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
853 return (VOID *)Buffer;
882 OUT VOID *PatchVariable,
888 ASSERT (PatchVariable !=
NULL);
889 ASSERT (SizeOfBuffer !=
NULL);
891 if (*SizeOfBuffer > 0) {
892 ASSERT (Buffer !=
NULL);
895 if ((*SizeOfBuffer > MaximumDatumSize) ||
898 *SizeOfBuffer = MaximumDatumSize;
902 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
935 OUT VOID *PatchVariable,
942 ASSERT (PatchVariable !=
NULL);
943 ASSERT (SizeOfPatchVariable !=
NULL);
944 ASSERT (SizeOfBuffer !=
NULL);
946 if (*SizeOfBuffer > 0) {
947 ASSERT (Buffer !=
NULL);
950 if ((*SizeOfBuffer > MaximumDatumSize) ||
953 *SizeOfBuffer = MaximumDatumSize;
957 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
958 *SizeOfPatchVariable = *SizeOfBuffer;
960 return (VOID *)Buffer;
991 OUT VOID *PatchVariable,
998 ASSERT (PatchVariable !=
NULL);
999 ASSERT (SizeOfPatchVariable !=
NULL);
1000 ASSERT (SizeOfBuffer !=
NULL);
1002 if (*SizeOfBuffer > 0) {
1003 ASSERT (Buffer !=
NULL);
1006 if ((*SizeOfBuffer > MaximumDatumSize) ||
1009 *SizeOfBuffer = MaximumDatumSize;
1013 CopyMem (PatchVariable, Buffer, *SizeOfBuffer);
1014 *SizeOfPatchVariable = *SizeOfBuffer;
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_STATUS EFIAPI NotificationFunction(IN EFI_KEY_DATA *KeyData)
#define RETURN_INVALID_PARAMETER
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)
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)
VOID(EFIAPI * PCD_CALLBACK)(IN CONST GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)