9#ifndef _PEI_PCD_SERVICE_H_
10#define _PEI_PCD_SERVICE_H_
34#define PCD_SERVICE_PEIM_VERSION 7
39#if (PCD_SERVICE_PEIM_VERSION != PCD_PEI_SERVICE_DRIVER_VERSION)
40 #error "Please make sure the version of PCD PEIM Service and the generated PCD PEI Database match."
969 UINT32 LocalTokenNumberAlias;
1037 IN UINTN LocalTokenNumberTableIdx,
1056 IN UINTN LocalTokenNumberTableIdx,
1077 IN UINTN LocalTokenNumberTableIdx,
EFI_STATUS ExSetWorker(IN UINTN ExTokenNumber, IN CONST EFI_GUID *Guid, IN VOID *Data, IN OUT UINTN *Size, IN BOOLEAN PtrType)
EFI_STATUS ExSetValueWorker(IN UINTN ExTokenNumber, IN CONST EFI_GUID *Guid, IN VOID *Data, IN UINTN SetSize)
UINTN GetExPcdTokenNumber(IN CONST EFI_GUID *Guid, IN UINT32 ExTokenNumber)
BOOLEAN SetPtrTypeSize(IN UINTN LocalTokenNumberTableIdx, IN OUT UINTN *CurrentSize)
VOID * GetWorker(IN UINTN TokenNumber, IN UINTN GetSize)
VOID * ExGetWorker(IN CONST EFI_GUID *Guid, IN UINTN ExTokenNumber, IN UINTN GetSize)
UINTN GetPtrTypeSize(IN UINTN LocalTokenNumberTableIdx, OUT UINTN *MaxSize)
EFI_STATUS SetValueWorker(IN UINTN TokenNumber, IN VOID *Data, IN UINTN Size)
EFI_STATUS SetWorker(IN UINTN TokenNumber, IN VOID *Data, IN OUT UINTN *Size, IN BOOLEAN PtrType)
PEI_PCD_DATABASE * GetPcdDatabase(VOID)
EFI_STATUS EFIAPI PeiPcdSetPtr(IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
UINT8 EFIAPI PeiPcdGet8Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdGetNextTokenSpace(IN OUT CONST EFI_GUID **Guid)
UINTN EFIAPI PeiPcdGetSizeEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
VOID EFIAPI PeiPcdSetSku(IN UINTN SkuId)
UINT64 EFIAPI PeiPcdGet64(IN UINTN TokenNumber)
VOID *EFIAPI PeiPcdGetPtr(IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdSet64Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
EFI_STATUS EFIAPI PeiPcdGetNextToken(IN CONST EFI_GUID *Guid OPTIONAL, IN OUT UINTN *TokenNumber)
EFI_STATUS EFIAPI PeiPcdSetBool(IN UINTN TokenNumber, IN BOOLEAN Value)
UINT8 EFIAPI PeiPcdGet8(IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdSet8Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
UINT32 EFIAPI PeiPcdGet32Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdSet8(IN UINTN TokenNumber, IN UINT8 Value)
EFI_STATUS EFIAPI PeiPcdSetBoolEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
EFI_STATUS EFIAPI PeiPcdSetPtrEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
PEI_PCD_DATABASE * BuildPcdDatabase(IN EFI_PEI_FILE_HANDLE FileHandle)
EFI_STATUS EFIAPI PeiPcdSet32(IN UINTN TokenNumber, IN UINT32 Value)
EFI_STATUS EFIAPI PeiPcdSet16(IN UINTN TokenNumber, IN UINT16 Value)
EFI_STATUS EFIAPI PeiPcdSet32Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
EFI_STATUS EFIAPI PeiRegisterCallBackOnSet(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PPI_CALLBACK CallBackFunction)
BOOLEAN EFIAPI PeiPcdGetBoolEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdSet16Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
UINT16 EFIAPI PeiPcdGet16Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
UINT64 EFIAPI PeiPcdGet64Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS PeiRegisterCallBackWorker(IN UINTN TokenNumber, IN CONST EFI_GUID *Guid OPTIONAL, IN PCD_PPI_CALLBACK CallBackFunction, IN BOOLEAN Register)
EFI_STATUS EFIAPI PcdUnRegisterCallBackOnSet(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PPI_CALLBACK CallBackFunction)
BOOLEAN EFIAPI PeiPcdGetBool(IN UINTN TokenNumber)
UINTN GetSizeTableIndex(IN UINTN LocalTokenNumberTableIdx, IN PEI_PCD_DATABASE *Database)
UINTN EFIAPI PeiPcdGetSize(IN UINTN TokenNumber)
UINT32 EFIAPI PeiPcdGet32(IN UINTN TokenNumber)
VOID *EFIAPI PeiPcdGetPtrEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
UINT16 EFIAPI PeiPcdGet16(IN UINTN TokenNumber)
EFI_STATUS EFIAPI PeiPcdSet64(IN UINTN TokenNumber, IN UINT64 Value)
UINTN EFIAPI PeiGetPcdInfoGetSku(VOID)
EFI_STATUS EFIAPI PeiGetPcdInfoGetInfoEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
EFI_STATUS EFIAPI PeiGetPcdInfoGetInfo(IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
EFI_STATUS PeiGetPcdInfo(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
VOID * EFI_PEI_FILE_HANDLE
VOID(EFIAPI * PCD_PPI_CALLBACK)(IN CONST EFI_GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)