TianoCore EDK2 master
Loading...
Searching...
No Matches
VarCheckHiiLibCommon.c File Reference
#include <Uefi.h>
#include <Library/DebugLib.h>
#include "VarCheckHii.h"
#include "VarCheckHiiLibCommon.h"

Go to the source code of this file.

Functions

VOID VarCheckHiiInternalDumpHex (IN UINTN Indent, IN UINTN Offset, IN UINTN DataSize, IN VOID *UserData)
 
BOOLEAN VarCheckHiiQuestion (IN VAR_CHECK_HII_QUESTION_HEADER *HiiQuestion, IN VOID *Data, IN UINTN DataSize)
 
EFI_STATUS EFIAPI CheckHiiVariableCommon (IN VAR_CHECK_HII_VARIABLE_HEADER *HiiVariableBin, IN UINTN HiiVariableBinSize, IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
 

Variables

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

Detailed Description

Var Check Hii Lib Common logic Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file VarCheckHiiLibCommon.c.

Function Documentation

◆ CheckHiiVariableCommon()

EFI_STATUS EFIAPI CheckHiiVariableCommon ( IN VAR_CHECK_HII_VARIABLE_HEADER HiiVariableBin,
IN UINTN  HiiVariableBinSize,
IN CHAR16 *  VariableName,
IN EFI_GUID VendorGuid,
IN UINT32  Attributes,
IN UINTN  DataSize,
IN VOID *  Data 
)

SetVariable check handler HII.

Parameters
[in]HiiVariableBinVariable BIN.
[in]HiiVariableBinSizeThe size of Variable BIN.
[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 271 of file VarCheckHiiLibCommon.c.

◆ VarCheckHiiInternalDumpHex()

VOID VarCheckHiiInternalDumpHex ( 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 22 of file VarCheckHiiLibCommon.c.

◆ VarCheckHiiQuestion()

BOOLEAN VarCheckHiiQuestion ( IN VAR_CHECK_HII_QUESTION_HEADER HiiQuestion,
IN VOID *  Data,
IN UINTN  DataSize 
)

Var Check Hii Question.

Parameters
[in]HiiQuestionPointer to Hii Question
[in]DataData pointer.
[in]DataSizeSize of Data to set.
Return values
TRUECheck pass
FALSECheck fail.

Definition at line 73 of file VarCheckHiiLibCommon.c.

Variable Documentation

◆ mEfiVariableCheckHiiHandle

EFI_HANDLE mEfiVariableCheckHiiHandle = NULL

Definition at line 11 of file VarCheckHiiLibCommon.c.

◆ mVarCheckHiiHex

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

Definition at line 12 of file VarCheckHiiLibCommon.c.