9#ifndef _PCD_DXE_SERVICE_H_
10#define _PCD_DXE_SERVICE_H_
36#define PCD_SERVICE_DXE_VERSION 7
41#if (PCD_SERVICE_DXE_VERSION != PCD_DXE_SERVICE_DRIVER_VERSION)
42 #error "Please make sure the version of PCD DXE Service and the generated PCD DXE Database match."
45extern UINTN mVpdBaseAddress;
808#define CR_FNENTRY_FROM_LISTNODE(Record, Type, Field) BASE_CR(Record, Type, Field)
972 IN UINT16 *VariableName,
973 OUT UINT8 **VariableData,
996 IN UINT16 *VariableName,
997 IN UINT32 SetAttributes,
1073 IN UINT32 ExTokenNumber
1122 IN UINTN LocalTokenNumberTableIdx,
1138 IN UINTN LocalTokenNumberTableIdx,
1174extern UINT32 mPcdTotalTokenCount;
1175extern UINT32 mPeiLocalTokenCount;
1176extern UINT32 mDxeLocalTokenCount;
1177extern UINT32 mPeiNexTokenCount;
1178extern UINT32 mDxeNexTokenCount;
1179extern UINT32 mPeiExMapppingTableSize;
1180extern UINT32 mDxeExMapppingTableSize;
1181extern UINT32 mPeiGuidTableSize;
1182extern UINT32 mDxeGuidTableSize;
1184extern BOOLEAN mPeiExMapTableEmpty;
1185extern BOOLEAN mDxeExMapTableEmpty;
1186extern BOOLEAN mPeiDatabaseEmpty;
1188extern EFI_GUID **TmpTokenSpaceBuffer;
1189extern UINTN TmpTokenSpaceBufferCount;
EFI_STATUS DxeGetPcdInfo(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
EFI_STATUS ExSetWorker(IN UINTN ExTokenNumber, IN CONST EFI_GUID *Guid, IN VOID *Data, IN OUT UINTN *Size, IN BOOLEAN PtrType)
EFI_STATUS DxeRegisterCallBackWorker(IN UINTN TokenNumber, IN CONST EFI_GUID *Guid OPTIONAL, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
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)
EFI_STATUS EFIAPI DxePcdSet16Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
BOOLEAN EFIAPI DxePcdGetBool(IN UINTN TokenNumber)
BOOLEAN SetPtrTypeSize(IN UINTN LocalTokenNumberTableIdx, IN OUT UINTN *CurrentSize)
BOOLEAN EFIAPI DxePcdGetBoolEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI DxePcdGetNextToken(IN CONST EFI_GUID *Guid OPTIONAL, IN OUT UINTN *TokenNumber)
UINTN EFIAPI DxePcdGetSize(IN UINTN TokenNumber)
EFI_STATUS EFIAPI DxePcdSet32(IN UINTN TokenNumber, IN UINT32 Value)
UINT32 EFIAPI DxePcdGet32(IN UINTN TokenNumber)
EFI_STATUS DxeUnRegisterCallBackWorker(IN UINTN TokenNumber, IN CONST EFI_GUID *Guid OPTIONAL, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
VOID * GetWorker(IN UINTN TokenNumber, IN UINTN GetSize)
EFI_STATUS EFIAPI DxePcdSet32Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
EFI_STATUS EFIAPI DxePcdSet16(IN UINTN TokenNumber, IN UINT16 Value)
EFI_LOCK mPcdDatabaseLock
EFI_STATUS EFIAPI DxeGetPcdInfoGetInfoEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
UINTN EFIAPI DxeGetPcdInfoGetSku(VOID)
EFI_STATUS EFIAPI DxePcdSetBool(IN UINTN TokenNumber, IN BOOLEAN Value)
EFI_STATUS EFIAPI DxePcdSet8(IN UINTN TokenNumber, IN UINT8 Value)
EFI_STATUS GetHiiVariable(IN EFI_GUID *VariableGuid, IN UINT16 *VariableName, OUT UINT8 **VariableData, OUT UINTN *VariableSize)
VOID BuildPcdDxeDataBase(VOID)
VOID * ExGetWorker(IN CONST EFI_GUID *Guid, IN UINTN ExTokenNumber, IN UINTN GetSize)
UINT8 EFIAPI DxePcdGet8Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS SetHiiVariable(IN EFI_GUID *VariableGuid, IN UINT16 *VariableName, IN UINT32 SetAttributes, IN CONST VOID *Data, IN UINTN DataSize, IN UINTN Offset)
EFI_STATUS EFIAPI DxeUnRegisterCallBackOnSet(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
EFI_STATUS ExGetNextTokeNumber(IN CONST EFI_GUID *Guid, IN OUT UINTN *TokenNumber, IN EFI_GUID *GuidTable, IN UINTN SizeOfGuidTable, IN DYNAMICEX_MAPPING *ExMapTable, IN UINTN SizeOfExMapTable)
EFI_STATUS EFIAPI DxePcdSet64(IN UINTN TokenNumber, IN UINT64 Value)
EFI_STATUS EFIAPI DxeGetPcdInfoGetInfo(IN UINTN TokenNumber, OUT EFI_PCD_INFO *PcdInfo)
EFI_STATUS EFIAPI DxePcdSetPtrEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
VOID EFIAPI DxePcdSetSku(IN UINTN SkuId)
VOID *EFIAPI DxePcdGetPtrEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
UINTN GetPtrTypeSize(IN UINTN LocalTokenNumberTableIdx, OUT UINTN *MaxSize)
VOID EFIAPI VariableLockCallBack(IN EFI_EVENT Event, IN VOID *Context)
UINT32 EFIAPI DxePcdGet32Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
UINT8 EFIAPI DxePcdGet8(IN UINTN TokenNumber)
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)
VOID *EFIAPI DxePcdGetPtr(IN UINTN TokenNumber)
UINT16 EFIAPI DxePcdGet16Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI DxePcdSet64Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
UINT64 EFIAPI DxePcdGet64Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS EFIAPI DxePcdGetNextTokenSpace(IN OUT CONST EFI_GUID **Guid)
UINTN EFIAPI DxePcdGetSizeEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
EFI_STATUS UpdatePcdDatabase(IN SKU_ID SkuId, IN BOOLEAN IsPeiDb)
EFI_STATUS EFIAPI DxeRegisterCallBackOnSet(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
EFI_STATUS EFIAPI DxePcdSetPtr(IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
EFI_STATUS EFIAPI DxePcdSetBoolEx(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
EFI_STATUS EFIAPI DxePcdSet8Ex(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
UINT64 EFIAPI DxePcdGet64(IN UINTN TokenNumber)
UINT16 EFIAPI DxePcdGet16(IN UINTN TokenNumber)
VOID(EFIAPI * PCD_PROTOCOL_CALLBACK)(IN CONST EFI_GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)