TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | VAR_CHECK_HII_VARIABLE_NODE |
Macros | |
#define | VAR_CHECK_HII_VARIABLE_NODE_SIGNATURE SIGNATURE_32 ('V', 'C', 'H', 'V') |
#define | VAR_CHECK_HII_VARIABLE_FROM_LINK(a) CR (a, VAR_CHECK_HII_VARIABLE_NODE, Link, VAR_CHECK_HII_VARIABLE_NODE_SIGNATURE) |
Variables | |
VAR_CHECK_HII_VARIABLE_HEADER * | mVarCheckHiiBin = NULL |
UINTN | mVarCheckHiiBinSize = 0 |
LIST_ENTRY | mVarCheckHiiList = INITIALIZE_LIST_HEAD_VARIABLE (mVarCheckHiiList) |
CHAR16 * | mVarName = NULL |
UINTN | mMaxVarNameSize = 0 |
Var Check Hii bin generation.
Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VarCheckHiiGen.c.
#define VAR_CHECK_HII_VARIABLE_FROM_LINK | ( | a | ) | CR (a, VAR_CHECK_HII_VARIABLE_NODE, Link, VAR_CHECK_HII_VARIABLE_NODE_SIGNATURE) |
Definition at line 27 of file VarCheckHiiGen.c.
#define VAR_CHECK_HII_VARIABLE_NODE_SIGNATURE SIGNATURE_32 ('V', 'C', 'H', 'V') |
Definition at line 16 of file VarCheckHiiGen.c.
Build VarCheckHiiBin.
[out] | Size | Pointer to VarCheckHii size. |
Definition at line 1516 of file VarCheckHiiGen.c.
VOID CreateHiiVariableNode | ( | IN EFI_IFR_VARSTORE_EFI * | IfrEfiVarStore | ) |
Create Hii Variable node.
[in] | IfrEfiVarStore | Pointer to EFI VARSTORE. |
Definition at line 1247 of file VarCheckHiiGen.c.
VOID DestroyHiiVariableNode | ( | VOID | ) |
Destroy Hii Variable node.
Definition at line 1478 of file VarCheckHiiGen.c.
VOID DestroyVarStoreId | ( | VOID | ) |
Destroy var store id in the Hii Variable node after parsing one Hii Package.
Definition at line 1220 of file VarCheckHiiGen.c.
VAR_CHECK_HII_VARIABLE_NODE * FindHiiVariableNode | ( | IN CHAR16 * | Name, |
IN EFI_GUID * | Guid | ||
) |
Find Hii variable node by name and GUID.
[in] | Name | Pointer to variable name. |
[in] | Guid | Pointer to vendor GUID. |
Definition at line 1151 of file VarCheckHiiGen.c.
VAR_CHECK_HII_VARIABLE_NODE * FindHiiVariableNodeByVarStoreId | ( | IN EFI_VARSTORE_ID | VarStoreId | ) |
Find Hii variable node by var store id.
[in] | VarStoreId | Var store id. |
Definition at line 1184 of file VarCheckHiiGen.c.
VOID GetOneOfOption | ( | IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader, |
OUT UINTN * | Count, | ||
OUT UINT8 * | Width, | ||
OUT VOID *OptionBuffer | OPTIONAL | ||
) |
Get OneOf option data.
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
[out] | Count | Pointer to option count. |
[out] | Width | Pointer to option width. |
[out] | OptionBuffer | Pointer to option buffer. |
Definition at line 796 of file VarCheckHiiGen.c.
VOID * InternalVarCheckAllocatePool | ( | IN EFI_MEMORY_TYPE | MemoryType, |
IN UINTN | AllocationSize | ||
) |
Allocates a buffer of a certain pool type.
Allocates the number bytes specified by AllocationSize of a certain pool type and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned.
MemoryType | The type of memory to allocate. |
AllocationSize | The number of bytes to allocate. |
Definition at line 391 of file VarCheckHiiGen.c.
Allocates and zeros a buffer of type EfiBootServicesData.
Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned.
AllocationSize | The number of bytes to allocate and zero. |
Definition at line 421 of file VarCheckHiiGen.c.
VOID EFIAPI InternalVarCheckFreePool | ( | IN VOID * | Buffer | ) |
Frees a buffer that was previously allocated with one of the pool allocation functions in the Memory Allocation Library.
Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the pool allocation services of the Memory Allocation Library. If it is not possible to free pool resources, then this function will perform no actions.
If Buffer was not allocated with a pool allocation function in the Memory Allocation Library, then ASSERT().
Buffer | The pointer to the buffer to free. |
Definition at line 451 of file VarCheckHiiGen.c.
VOID * InternalVarCheckReallocatePool | ( | IN UINTN | OldSize, |
IN UINTN | NewSize, | ||
IN VOID *OldBuffer | OPTIONAL | ||
) |
Reallocates a buffer of type EfiBootServicesData.
Allocates and zeros the number bytes specified by NewSize from memory of type EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and NewSize bytes are copied from OldBuffer to the newly allocated buffer, and OldBuffer is freed. A pointer to the newly allocated buffer is returned. If NewSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
OldSize | The size, in bytes, of OldBuffer. |
NewSize | The size, in bytes, of the buffer to reallocate. |
OldBuffer | The buffer to copy to the allocated buffer. This is an optional parameter that may be NULL. |
Definition at line 483 of file VarCheckHiiGen.c.
VOID MergeHiiQuestion | ( | IN OUT VAR_CHECK_HII_VARIABLE_NODE * | HiiVariableNode, |
IN VAR_CHECK_HII_QUESTION_HEADER * | HiiQuestion, | ||
IN BOOLEAN | FromFv | ||
) |
Merge Hii Question.
[in,out] | HiiVariableNode | Pointer to Hii Variable node. |
[in] | HiiQuestion | Pointer to Hii Question. |
[in] | FromFv | Hii Question from FV. |
Definition at line 509 of file VarCheckHiiGen.c.
VOID ParseHiiQuestion | ( | IN VAR_CHECK_HII_VARIABLE_NODE * | HiiVariableNode, |
IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader, | ||
IN BOOLEAN | FromFv, | ||
IN BOOLEAN | StoredInBitField | ||
) |
Parse and create Hii Question node.
[in] | HiiVariableNode | Pointer to Hii Variable node. |
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
[in] | FromFv | Hii Question from FV. |
[in] | StoredInBitField | Whether the Question is stored in bit field Storage. |
Definition at line 1092 of file VarCheckHiiGen.c.
VAR_CHECK_HII_QUESTION_HEADER * ParseHiiQuestionCheckBox | ( | IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader, |
IN BOOLEAN | StoredInBitField | ||
) |
Parse Hii Question CheckBox.
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
[in] | StoredInBitField | Whether the CheckBox is stored in bit field Storage. |
return Pointer to Hii Question.
Definition at line 966 of file VarCheckHiiGen.c.
VAR_CHECK_HII_QUESTION_HEADER * ParseHiiQuestionNumeric | ( | IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader, |
IN BOOLEAN | StoredInBitField | ||
) |
Parse Hii Question Numeric.
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
[in] | StoredInBitField | Whether the Numeric is stored in bit field Storage. |
return Pointer to Hii Question.
Definition at line 1001 of file VarCheckHiiGen.c.
VAR_CHECK_HII_QUESTION_HEADER * ParseHiiQuestionOneOf | ( | IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader, |
IN BOOLEAN | StoredInBitField | ||
) |
Parse Hii Question Oneof.
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
[in] | StoredInBitField | Whether the OneOf is stored in bit field Storage. |
return Pointer to Hii Question.
Definition at line 907 of file VarCheckHiiGen.c.
VAR_CHECK_HII_QUESTION_HEADER * ParseHiiQuestionOrderedList | ( | IN EFI_IFR_OP_HEADER * | IfrOpCodeHeader | ) |
Parse Hii Question OrderedList.
[in] | IfrOpCodeHeader | Pointer to Ifr OpCode header. |
return Pointer to Hii Question.
Definition at line 1052 of file VarCheckHiiGen.c.
VOID ParseHiiVariable | ( | IN VOID * | HiiPackage | ) |
Parse and create Hii Variable node list.
[in] | HiiPackage | Pointer to Hii Package. |
Definition at line 1312 of file VarCheckHiiGen.c.
VOID EFIAPI VarCheckHiiGen | ( | VOID | ) |
Generate VarCheckHiiBin from Hii Database and FV.
Definition at line 1617 of file VarCheckHiiGen.c.
Var Check Parse Hii Database.
[in] | HiiDatabase | Pointer to Hii Database. |
[in] | HiiDatabaseSize | Hii Database size. |
Definition at line 1447 of file VarCheckHiiGen.c.
Var Check Parse Hii Package.
[in] | HiiPackage | Pointer to Hii Package. |
[in] | FromFv | Hii Package from FV. |
Definition at line 1366 of file VarCheckHiiGen.c.
UINTN mMaxVarNameSize = 0 |
Definition at line 30 of file VarCheckHiiGen.c.
VAR_CHECK_HII_VARIABLE_HEADER* mVarCheckHiiBin = NULL |
Definition at line 12 of file VarCheckHiiGen.c.
UINTN mVarCheckHiiBinSize = 0 |
Definition at line 13 of file VarCheckHiiGen.c.
LIST_ENTRY mVarCheckHiiList = INITIALIZE_LIST_HEAD_VARIABLE (mVarCheckHiiList) |
Definition at line 14 of file VarCheckHiiGen.c.
CHAR16* mVarName = NULL |
Definition at line 29 of file VarCheckHiiGen.c.