TianoCore EDK2 master
Loading...
Searching...
No Matches
VarCheckPcdLibNullClass.c File Reference

Go to the source code of this file.

Functions

VOID VarCheckPcdInternalDumpHex (IN UINTN Indent, IN UINTN Offset, IN UINTN DataSize, IN VOID *UserData)
 
BOOLEAN VarCheckPcdValidData (IN VAR_CHECK_PCD_VALID_DATA_HEADER *PcdValidData, IN VOID *Data, IN UINTN DataSize)
 
EFI_STATUS EFIAPI SetVariableCheckHandlerPcd (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
 
VOID EFIAPI LocateVarCheckPcdBin (VOID)
 
EFI_STATUS EFIAPI VarCheckPcdLibNullClassConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mVarCheckPcdHex [] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }
 
VAR_CHECK_PCD_VARIABLE_HEADERmVarCheckPcdBin = NULL
 
UINTN mVarCheckPcdBinSize = 0
 

Detailed Description

Var Check PCD handler.

Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file VarCheckPcdLibNullClass.c.

Function Documentation

◆ LocateVarCheckPcdBin()

VOID EFIAPI LocateVarCheckPcdBin ( VOID  )

Locate VarCheckPcdBin.

Definition at line 424 of file VarCheckPcdLibNullClass.c.

◆ SetVariableCheckHandlerPcd()

EFI_STATUS EFIAPI SetVariableCheckHandlerPcd ( IN CHAR16 *  VariableName,
IN EFI_GUID VendorGuid,
IN UINT32  Attributes,
IN UINTN  DataSize,
IN VOID *  Data 
)

SetVariable check handler PCD.

Parameters
[in]VariableNameName of Variable to set.
[in]VendorGuidVariable vendor GUID.
[in]AttributesAttribute value of the variable.
[in]DataSizeSize of Data to set.
[in]DataData pointer.
Return values
EFI_SUCCESSThe SetVariable check result was success.
EFI_SECURITY_VIOLATIONCheck fail.

Definition at line 178 of file VarCheckPcdLibNullClass.c.

◆ VarCheckPcdInternalDumpHex()

VOID VarCheckPcdInternalDumpHex ( IN UINTN  Indent,
IN UINTN  Offset,
IN UINTN  DataSize,
IN VOID *  UserData 
)

Dump some hexadecimal data.

Parameters
[in]IndentHow many spaces to indent the output.
[in]OffsetThe offset of the dump.
[in]DataSizeThe size in bytes of UserData.
[in]UserDataThe data to dump.

Definition at line 32 of file VarCheckPcdLibNullClass.c.

◆ VarCheckPcdLibNullClassConstructor()

EFI_STATUS EFIAPI VarCheckPcdLibNullClassConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Constructor function of VarCheckPcdLib to register var check PCD handler.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor executed correctly.

Definition at line 478 of file VarCheckPcdLibNullClass.c.

◆ VarCheckPcdValidData()

BOOLEAN VarCheckPcdValidData ( IN VAR_CHECK_PCD_VALID_DATA_HEADER PcdValidData,
IN VOID *  Data,
IN UINTN  DataSize 
)

Var Check Pcd ValidData.

Parameters
[in]PcdValidDataPointer to Pcd ValidData
[in]DataData pointer.
[in]DataSizeSize of Data to set.
Return values
TRUECheck pass
FALSECheck fail.

Definition at line 86 of file VarCheckPcdLibNullClass.c.

Variable Documentation

◆ mVarCheckPcdBin

VAR_CHECK_PCD_VARIABLE_HEADER* mVarCheckPcdBin = NULL

Definition at line 160 of file VarCheckPcdLibNullClass.c.

◆ mVarCheckPcdBinSize

UINTN mVarCheckPcdBinSize = 0

Definition at line 161 of file VarCheckPcdLibNullClass.c.

◆ mVarCheckPcdHex

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mVarCheckPcdHex[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }

Definition at line 20 of file VarCheckPcdLibNullClass.c.