TianoCore EDK2 master
|
#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' } |
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.
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.
[in] | HiiVariableBin | Variable BIN. |
[in] | HiiVariableBinSize | The size of Variable BIN. |
[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 271 of file VarCheckHiiLibCommon.c.
VOID VarCheckHiiInternalDumpHex | ( | 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 22 of file VarCheckHiiLibCommon.c.
BOOLEAN VarCheckHiiQuestion | ( | IN VAR_CHECK_HII_QUESTION_HEADER * | HiiQuestion, |
IN VOID * | Data, | ||
IN UINTN | DataSize | ||
) |
Var Check Hii Question.
[in] | HiiQuestion | Pointer to Hii Question |
[in] | Data | Data pointer. |
[in] | DataSize | Size of Data to set. |
TRUE | Check pass |
FALSE | Check fail. |
Definition at line 73 of file VarCheckHiiLibCommon.c.
EFI_HANDLE mEfiVariableCheckHiiHandle = NULL |
Definition at line 11 of file VarCheckHiiLibCommon.c.
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.