TianoCore EDK2 master
|
Go to the source code of this file.
Typedefs | |
typedef union _HII_DEPENDENCY_EXPRESSION | HII_DEPENDENCY_EXPRESSION |
typedef struct _HII_STATEMENT | HII_STATEMENT |
Enumerations | |
enum | EXPRESS_RESULT { ExpressFalse = 0 , ExpressGrayOut , ExpressSuppress , ExpressDisable , ExpressFalse = 0 , ExpressGrayOut , ExpressSuppress , ExpressDisable } |
enum | EXPRESS_LEVEL { ExpressNone = 0 , ExpressForm , ExpressStatement , ExpressOption , ExpressNone = 0 , ExpressForm , ExpressStatement , ExpressOption } |
enum | GET_SET_QUESTION_VALUE_WITH { GetSetValueWithEditBuffer = 0 , GetSetValueWithBuffer , GetSetValueWithHiiDriver , GetSetValueWithBothBuffer , GetSetValueWithMax , GetSetValueWithBuffer = 0 , GetSetValueWithHiiDriver , GetSetValueWithBoth , GetSetValueWithMax } |
Definitions of RedfishPlatformConfigLib.
Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_DISABLE_IF 4 |
Definition at line 25 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_GRAY_OUT_IF 2 |
Definition at line 23 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_INCONSISTENT_IF 0 |
Definition at line 21 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_NO_SUBMIT_IF 1 |
Definition at line 22 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_READ 7 |
Definition at line 28 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_RULE 6 |
Definition at line 27 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_SUPPRESS_IF 3 |
Definition at line 24 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_VALUE 5 |
Definition at line 26 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_WARNING_IF 9 |
Definition at line 30 of file HiiUtilityLib.h.
#define EFI_HII_EXPRESSION_WRITE 8 |
Definition at line 29 of file HiiUtilityLib.h.
#define EFI_HII_VARSTORE_BUFFER 0 |
Definition at line 32 of file HiiUtilityLib.h.
#define EFI_HII_VARSTORE_EFI_VARIABLE 2 |
Definition at line 34 of file HiiUtilityLib.h.
#define EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER 3 |
Definition at line 35 of file HiiUtilityLib.h.
#define EFI_HII_VARSTORE_NAME_VALUE 1 |
Definition at line 33 of file HiiUtilityLib.h.
#define HII_EXPRESSION_FROM_LINK | ( | a | ) | CR (a, HII_EXPRESSION, Link, HII_EXPRESSION_SIGNATURE) |
Definition at line 752 of file HiiUtilityLib.h.
#define HII_EXPRESSION_LIST_SIGNATURE SIGNATURE_32 ('F', 'E', 'X', 'R') |
Definition at line 763 of file HiiUtilityLib.h.
#define HII_EXPRESSION_OPCODE_FROM_LINK | ( | a | ) | CR (a, HII_EXPRESSION_OPCODE, Link, HII_EXPRESSION_OPCODE_SIGNATURE) |
Definition at line 718 of file HiiUtilityLib.h.
#define HII_EXPRESSION_OPCODE_SIGNATURE SIGNATURE_32 ('E', 'X', 'O', 'P') |
Definition at line 717 of file HiiUtilityLib.h.
#define HII_EXPRESSION_SIGNATURE SIGNATURE_32 ('F', 'E', 'X', 'P') |
Definition at line 751 of file HiiUtilityLib.h.
Definition at line 958 of file HiiUtilityLib.h.
#define HII_FORM_SIGNATURE SIGNATURE_32 ('F', 'F', 'R', 'M') |
Definition at line 957 of file HiiUtilityLib.h.
#define HII_FORMSET_DEFAULTSTORE_FROM_LINK | ( | a | ) | CR (a, HII_FORMSET_DEFAULTSTORE, Link, HII_FORMSET_DEFAULTSTORE_SIGNATURE) |
Definition at line 831 of file HiiUtilityLib.h.
#define HII_FORMSET_DEFAULTSTORE_SIGNATURE SIGNATURE_32 ('F', 'D', 'F', 'S') |
Definition at line 830 of file HiiUtilityLib.h.
#define HII_FORMSET_FROM_LINK | ( | a | ) | CR (a, HII_FORMSET, Link, HII_FORMSET_SIGNATURE) |
Definition at line 991 of file HiiUtilityLib.h.
#define HII_FORMSET_SIGNATURE SIGNATURE_32 ('H', 'I', 'F', 'S') |
Definition at line 990 of file HiiUtilityLib.h.
#define HII_NAME_VALUE_NODE_FROM_LINK | ( | a | ) | CR (a, HII_NAME_VALUE_NODE, Link, HII_NAME_VALUE_NODE_SIGNATURE) |
Definition at line 48 of file HiiUtilityLib.h.
#define HII_NAME_VALUE_NODE_SIGNATURE SIGNATURE_32 ('N', 'V', 'S', 'T') |
Definition at line 47 of file HiiUtilityLib.h.
#define HII_QUESTION_DEFAULT_FROM_LINK | ( | a | ) | CR (a, HII_QUESTION_DEFAULT, Link, HII_QUESTION_DEFAULT_SIGNATURE) |
Definition at line 796 of file HiiUtilityLib.h.
#define HII_QUESTION_DEFAULT_SIGNATURE SIGNATURE_32 ('Q', 'D', 'F', 'T') |
Definition at line 795 of file HiiUtilityLib.h.
#define HII_QUESTION_OPTION_FROM_LINK | ( | a | ) | CR (a, HII_QUESTION_OPTION, Link, HII_QUESTION_OPTION_SIGNATURE) |
Definition at line 817 of file HiiUtilityLib.h.
#define HII_QUESTION_OPTION_SIGNATURE SIGNATURE_32 ('Q', 'O', 'P', 'T') |
Definition at line 798 of file HiiUtilityLib.h.
#define HII_STATEMENT_FROM_LINK | ( | a | ) | CR (a, HII_STATEMENT, Link, HII_STATEMENT_SIGNATURE) |
Definition at line 930 of file HiiUtilityLib.h.
#define HII_STATEMENT_SIGNATURE SIGNATURE_32 ('H', 'S', 'T', 'A') |
Definition at line 929 of file HiiUtilityLib.h.
#define HII_STORAGE_FROM_LINK | ( | a | ) | CR (a, HII_FORMSET_STORAGE, Link, HII_STORAGE_SIGNATURE) |
Definition at line 99 of file HiiUtilityLib.h.
#define HII_STORAGE_SIGNATURE SIGNATURE_32 ('B', 'S', 'T', 'G') |
Definition at line 98 of file HiiUtilityLib.h.
#define STANDARD_MAP_FORM_TYPE 0x01 |
Form
Definition at line 935 of file HiiUtilityLib.h.
typedef union _HII_DEPENDENCY_EXPRESSION HII_DEPENDENCY_EXPRESSION |
Definition at line 165 of file HiiUtilityLib.h.
typedef struct _HII_STATEMENT HII_STATEMENT |
Statement (Question)
Definition at line 871 of file HiiUtilityLib.h.
enum EXPRESS_LEVEL |
Definition of EXPRESS_LEVEL
Definition at line 114 of file HiiUtilityLib.h.
enum EXPRESS_RESULT |
Definition of EXPRESS_RESULT
Definition at line 104 of file HiiUtilityLib.h.
Get/set question value from/to.
Definition at line 996 of file HiiUtilityLib.h.
EFI_STATUS CreateFormSetFromHiiHandle | ( | IN EFI_HII_HANDLE | Handle, |
IN OUT EFI_GUID * | FormSetGuid, | ||
OUT HII_FORMSET * | FormSet | ||
) |
Initialize the internal data structure of a FormSet.
[in] | Handle | PackageList Handle |
[in,out] | FormSetGuid | On input, GUID or class GUID of a formset. If not specified (NULL or zero GUID), take the first FormSet with class GUID EFI_HII_PLATFORM_SETUP_FORMSET_GUID found in package list. On output, GUID of the formset found(if not NULL). |
[out] | FormSet | FormSet data structure. |
EFI_SUCCESS | The function completed successfully. |
EFI_NOT_FOUND | The specified FormSet could not be found. |
Initialize the internal data structure of a FormSet.
Handle | PackageList Handle |
FormSetGuid | On input, GUID or class GUID of a formset. If not specified (NULL or zero GUID), take the first FormSet with class GUID EFI_HII_PLATFORM_SETUP_FORMSET_GUID found in package list. On output, GUID of the formset found(if not NULL). |
FormSet | FormSet data structure. |
EFI_SUCCESS | The function completed successfully. |
EFI_NOT_FOUND | The specified FormSet could not be found. |
Definition at line 30 of file HiiUtilityLib.c.
VOID DestroyFormSet | ( | IN OUT HII_FORMSET * | FormSet | ) |
Free resources allocated for a FormSet.
[in,out] | FormSet | Pointer of the FormSet |
Definition at line 165 of file HiiUtilityLib.c.
EXPRESS_RESULT EvaluateExpressionList | ( | IN HII_EXPRESSION_LIST * | ExpList, |
IN BOOLEAN | Evaluate, | ||
IN HII_FORMSET *FormSet | OPTIONAL, | ||
IN HII_FORM *Form | OPTIONAL | ||
) |
Return the result of the expression list. Check the expression list and return the highest priority express result. Priority: DisableIf > SuppressIf > GrayOutIf > FALSE
[in] | ExpList | The input expression list. |
[in] | Evaluate | Whether need to evaluate the expression first. |
[in] | FormSet | FormSet associated with this expression. |
[in] | Form | Form associated with this expression. |
EXPRESS_RESULT | Return the higher priority express result. DisableIf > SuppressIf > GrayOutIf > FALSE |
Definition at line 1380 of file HiiExpression.c.
EFI_STATUS EvaluateHiiExpression | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form, | ||
IN OUT HII_EXPRESSION * | Expression | ||
) |
Evaluate the result of a HII expression.
If Expression is NULL, then ASSERT.
[in] | FormSet | FormSet associated with this expression. |
[in] | Form | Form associated with this expression. |
[in,out] | Expression | Expression to be evaluated. |
EFI_SUCCESS | The expression evaluated successfully |
EFI_NOT_FOUND | The Question which referenced by a QuestionId could not be found. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
EFI_ACCESS_DENIED | The pop operation underflowed the stack |
EFI_INVALID_PARAMETER | Syntax error with the Expression |
Evaluate the result of a HII expression.
If Expression is NULL, then ASSERT.
[in] | FormSet | FormSet associated with this expression. |
[in] | Form | Form associated with this expression. |
[in,out] | Expression | Expression to be evaluated. |
EFI_SUCCESS | The expression evaluated successfully. |
EFI_NOT_FOUND | The Question which referenced by a QuestionId could not be found. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
EFI_ACCESS_DENIED | The pop operation underflowed the stack. |
EFI_INVALID_PARAMETER | Syntax error with the Expression. |
EFI_INVALID_PARAMETER | Formset, Form or Expression is NULL. |
Definition at line 3912 of file HiiUtilityInternal.c.
EFI_STATUS GetHiiExpressionDependency | ( | IN HII_EXPRESSION * | Expression | ) |
Retrieve dependencies within an expression. These dependencies can express how this expression will be evaluated.
[in] | Expression | Expression to retrieve dependencies. |
EFI_SUCCESS | The dependencies were successfully retrieved. |
EFI_OUT_OF_RESOURCES | There is not enough system memory. |
EFI_STATUS GetQuestionDefault | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form, | ||
IN HII_STATEMENT * | Question, | ||
IN UINT16 | DefaultId, | ||
OUT HII_STATEMENT_VALUE * | DefaultValue | ||
) |
Get default value of question.
[in] | FormSet | The form set. |
[in] | Form | The form. |
[in] | Question | The question. |
[in] | DefaultId | The Class of the default. |
[out] | DefaultValue | The default value of given question. |
EFI_SUCCESS | Question is reset to default value. |
Definition at line 5425 of file HiiUtilityInternal.c.
EFI_STATUS GetQuestionValue | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form, | ||
IN OUT HII_STATEMENT * | Question, | ||
IN GET_SET_QUESTION_VALUE_WITH | GetValueFrom | ||
) |
Get Question's current Value.
[in] | FormSet | FormSet data structure. |
[in] | Form | Form data structure. |
[out] | Question | Question to be initialized. |
[in] | GetValueFrom | Where to get value, may from editbuffer, buffer or hii driver. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Formset, Form or Question is NULL. |
Get Question's current Value.
[in] | FormSet | FormSet data structure. |
[in] | Form | Form data structure. |
[in,out] | Question | Question to be initialized. |
[in] | GetValueFrom | Where to get value, may from editbuffer, buffer or hii driver. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Formset, Form or Question is NULL. |
Definition at line 1460 of file HiiUtilityInternal.c.
VOID InitializeFormSet | ( | IN OUT HII_FORMSET * | FormSet | ) |
Initialize a Formset and get current setting for Questions.
[in,out] | FormSet | FormSet data structure. |
Initialize a Formset and get current setting for Questions.
FormSet | FormSet data structure. |
Definition at line 114 of file HiiUtilityLib.c.
HII_STATEMENT_VALUE * RetrieveQuestion | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form, | ||
IN OUT HII_STATEMENT * | Question | ||
) |
Get Question's current Value from storage.
[in] | FormSet | FormSet data structure. |
[in] | Form | Form data structure. |
[in,out] | Question | Question to be initialized. |
Definition at line 532 of file HiiUtilityLib.c.
EFI_STATUS SetQuestionValue | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form, | ||
IN OUT HII_STATEMENT * | Question, | ||
IN HII_STATEMENT_VALUE * | QuestionValue | ||
) |
Save Question Value to the memory, but not to storage.
[in] | FormSet | FormSet data structure. |
[in] | Form | Form data structure. |
[in,out] | Question | Pointer to the Question. |
[in] | QuestionValue | New Question Value to be set. |
EFI_SUCCESS | The question value has been set successfully. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
Definition at line 325 of file HiiUtilityLib.c.
EFI_STATUS SubmitForm | ( | IN HII_FORMSET * | FormSet, |
IN HII_FORM * | Form | ||
) |
Submit data for a form.
[in] | FormSet | FormSet which contains the Form. |
[in] | Form | Form to submit. |
EFI_SUCCESS | The function completed successfully. |
Others | Other errors occur. |
Definition at line 242 of file HiiUtilityLib.c.