TianoCore EDK2 master
|
#include <Library/VarCheckLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DxeServicesLib.h>
#include "VarCheckPcdStructure.h"
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_HEADER * | mVarCheckPcdBin = NULL |
UINTN | mVarCheckPcdBinSize = 0 |
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.
VOID EFIAPI LocateVarCheckPcdBin | ( | VOID | ) |
Locate VarCheckPcdBin.
Definition at line 424 of file VarCheckPcdLibNullClass.c.
EFI_STATUS EFIAPI SetVariableCheckHandlerPcd | ( | IN CHAR16 * | VariableName, |
IN EFI_GUID * | VendorGuid, | ||
IN UINT32 | Attributes, | ||
IN UINTN | DataSize, | ||
IN VOID * | Data | ||
) |
SetVariable check handler PCD.
[in] | VariableName | Name of Variable to set. |
[in] | VendorGuid | Variable vendor GUID. |
[in] | Attributes | Attribute value of the variable. |
[in] | DataSize | Size of Data to set. |
[in] | Data | Data pointer. |
EFI_SUCCESS | The SetVariable check result was success. |
EFI_SECURITY_VIOLATION | Check fail. |
Definition at line 178 of file VarCheckPcdLibNullClass.c.
VOID VarCheckPcdInternalDumpHex | ( | IN UINTN | Indent, |
IN UINTN | Offset, | ||
IN UINTN | DataSize, | ||
IN VOID * | UserData | ||
) |
Dump some hexadecimal data.
[in] | Indent | How many spaces to indent the output. |
[in] | Offset | The offset of the dump. |
[in] | DataSize | The size in bytes of UserData. |
[in] | UserData | The data to dump. |
Definition at line 32 of file VarCheckPcdLibNullClass.c.
EFI_STATUS EFIAPI VarCheckPcdLibNullClassConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Constructor function of VarCheckPcdLib to register var check PCD handler.
[in] | ImageHandle | The firmware allocated handle for the EFI image. |
[in] | SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The constructor executed correctly. |
Definition at line 478 of file VarCheckPcdLibNullClass.c.
BOOLEAN VarCheckPcdValidData | ( | IN VAR_CHECK_PCD_VALID_DATA_HEADER * | PcdValidData, |
IN VOID * | Data, | ||
IN UINTN | DataSize | ||
) |
Var Check Pcd ValidData.
[in] | PcdValidData | Pointer to Pcd ValidData |
[in] | Data | Data pointer. |
[in] | DataSize | Size of Data to set. |
TRUE | Check pass |
FALSE | Check fail. |
Definition at line 86 of file VarCheckPcdLibNullClass.c.
VAR_CHECK_PCD_VARIABLE_HEADER* mVarCheckPcdBin = NULL |
Definition at line 160 of file VarCheckPcdLibNullClass.c.
UINTN mVarCheckPcdBinSize = 0 |
Definition at line 161 of file VarCheckPcdLibNullClass.c.
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.