/** @file\r
Private functions used by PCD DXE driver.\r
\r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <Protocol/PiPcd.h>\r
#include <Protocol/PcdInfo.h>\r
#include <Protocol/PiPcdInfo.h>\r
+#include <Protocol/VarCheck.h>\r
+#include <Protocol/VariableLock.h>\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiLib.h>\r
// Please make sure the PCD Serivce DXE Version is consistent with\r
// the version of the generated DXE PCD Database by build tool.\r
//\r
-#define PCD_SERVICE_DXE_VERSION 4\r
+#define PCD_SERVICE_DXE_VERSION 5\r
\r
//\r
// PCD_DXE_SERVICE_DRIVER_VERSION is defined in Autogen.h.\r
\r
@param VariableGuid Guid of variable which stored value of a HII-type PCD.\r
@param VariableName Unicode name of variable which stored value of a HII-type PCD.\r
+ @param SetAttributes Attributes bitmask to set for the variable.\r
@param Data Value want to be set.\r
@param DataSize Size of value\r
@param Offset Value offset of HII-type PCD in variable.\r
SetHiiVariable (\r
IN EFI_GUID *VariableGuid,\r
IN UINT16 *VariableName,\r
+ IN UINT32 SetAttributes,\r
IN CONST VOID *Data,\r
IN UINTN DataSize,\r
IN UINTN Offset\r
IN OUT UINTN *CurrentSize\r
);\r
\r
+/**\r
+ VariableLockProtocol callback\r
+ to lock the variables referenced by DynamicHii PCDs with RO property set in *.dsc.\r
+\r
+ @param[in] Event Event whose notification function is being invoked.\r
+ @param[in] Context Pointer to the notification function's context.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+VariableLockCallBack (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *Context\r
+ );\r
+\r
extern PCD_DATABASE mPcdDatabase;\r
\r
extern UINT32 mPcdTotalTokenCount; \r