TianoCore EDK2 master
|
#include "Setup.h"
Go to the source code of this file.
Entry and initialization module for the browser.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2020 - 2022 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Setup.c.
EFI_STATUS EFIAPI BrowserCallback | ( | IN CONST EFI_FORM_BROWSER2_PROTOCOL * | This, |
IN OUT UINTN * | ResultsDataSize, | ||
IN OUT EFI_STRING | ResultsData, | ||
IN BOOLEAN | RetrieveData, | ||
IN CONST EFI_GUID *VariableGuid | OPTIONAL, | ||
IN CONST CHAR16 *VariableName | OPTIONAL | ||
) |
This routine called this service in the browser to retrieve or set certain uncommitted state information that resides in the open formsets.
This | A pointer to the EFI_FORM_BROWSER2_PROTOCOL instance. |
ResultsDataSize | A pointer to the size of the buffer associated with ResultsData. |
ResultsData | A string returned from an IFR browser or equivalent. The results string will have no routing information in them. |
RetrieveData | A BOOLEAN field which allows an agent to retrieve (if RetrieveData = TRUE) data from the uncommitted browser state information or set (if RetrieveData = FALSE) data in the uncommitted browser state information. |
VariableGuid | An optional field to indicate the target variable GUID name to use. |
VariableName | An optional field to indicate the target human-readable variable name. |
EFI_SUCCESS | The results have been distributed or are awaiting distribution. |
EFI_BUFFER_TOO_SMALL | The ResultsDataSize specified was too small to contain the results data. |
EFI_STATUS BufferToValue | ( | IN OUT FORM_BROWSER_STATEMENT * | Question, |
IN CHAR16 * | Value | ||
) |
VOID CleanAltCfgForForm | ( | IN FORM_BROWSER_FORM * | Form | ) |
VOID CleanAltCfgForFormSet | ( | IN FORM_BROWSER_FORMSET * | FormSet | ) |
VOID CleanBrowserStorage | ( | IN OUT FORM_BROWSER_FORMSET * | FormSet | ) |
BOOLEAN ConfigRequestAdjust | ( | IN BROWSER_STORAGE * | Storage, |
IN CHAR16 * | Request, | ||
IN BOOLEAN | RespString | ||
) |
Adjust the config request info, remove the request elements which already in AllConfigRequest string.
Storage | Form set Storage. |
Request | The input request string. |
RespString | Whether the input is ConfigRequest or ConfigResp format. |
TRUE | Has element not covered by current used elements, need to continue to call ExtractConfig |
FALSE | All elements covered by current used elements. |
EFI_STATUS ConfigRespToStorage | ( | IN BROWSER_STORAGE * | Storage, |
IN CHAR16 * | ConfigResp | ||
) |
UINT32 ConfirmNoSubmitFail | ( | IN EFI_STRING_ID | TitleId, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
UINT32 ConfirmSaveFail | ( | IN EFI_STRING_ID | TitleId, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
EFI_STATUS DeleteString | ( | IN EFI_STRING_ID | StringId, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
EFI_STATUS DiscardForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN BROWSER_SETTING_SCOPE | SettingScope | ||
) |
Discard data based on the input setting scope (Form, FormSet or System).
FormSet | FormSet data structure. |
Form | Form data structure. |
SettingScope | Setting Scope for Discard action. |
EFI_SUCCESS | The function completed successfully. |
EFI_UNSUPPORTED | Unsupport SettingScope. |
BOOLEAN ElementValidation | ( | BROWSER_STORAGE * | BrowserStorage, |
CHAR16 * | RequestElement | ||
) |
Check whether current element in the ConfigReqeust string.
BrowserStorage | Storage which includes ConfigReqeust. |
RequestElement | New element need to check. |
TRUE | The Element is in the ConfigReqeust string. |
FALSE | The Element not in the configReqeust String. |
EFI_STATUS EFIAPI ExecuteAction | ( | IN UINT32 | Action, |
IN UINT16 | DefaultId | ||
) |
Execute the action requested by the Action parameter.
[in] | Action | Execute the request action. |
[in] | DefaultId | The default Id info when need to load default value. Only used when Action is BROWSER_ACTION_DEFAULT. |
EFI_SUCCESS | Execute the request action succss. |
EFI_INVALID_PARAMETER | The input action value is invalid. |
VOID ExtractAltCfgForForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN UINT16 | DefaultId, | ||
IN BROWSER_STORAGE * | BrowserStorage | ||
) |
VOID ExtractAltCfgForFormSet | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN UINT16 | DefaultId, | ||
IN BROWSER_STORAGE * | BrowserStorage | ||
) |
EFI_STATUS ExtractDefault | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN UINT16 | DefaultId, | ||
IN BROWSER_SETTING_SCOPE | SettingScope, | ||
IN BROWSER_GET_DEFAULT_VALUE | GetDefaultValueScope, | ||
IN BROWSER_STORAGE *Storage | OPTIONAL, | ||
IN BOOLEAN | RetrieveValueFirst, | ||
IN BOOLEAN | SkipGetAltCfg | ||
) |
Reset Questions to their initial value or default value in a Form, Formset or System.
GetDefaultValueScope parameter decides which questions will reset to its default value.
FormSet | FormSet data structure. |
Form | Form data structure. |
DefaultId | The Class of the default. |
SettingScope | Setting Scope for Default action. |
GetDefaultValueScope | Get default value scope. |
Storage | Get default value only for this storage. |
RetrieveValueFirst | Whether call the retrieve call back to get the initial value before get default value. |
SkipGetAltCfg | Whether skip the get altcfg string process. |
EFI_SUCCESS | The function completed successfully. |
EFI_UNSUPPORTED | Unsupport SettingScope. |
BOOLEAN FindQuestionFromProgress | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN BROWSER_STORAGE * | Storage, | ||
IN EFI_STRING | Progress, | ||
OUT FORM_BROWSER_FORM ** | RetForm, | ||
OUT FORM_BROWSER_STATEMENT ** | RetQuestion | ||
) |
Base on the return Progress string to find the form.
Base on the first return Offset/Width (Name) string to find the form which keep this string.
FormSet | FormSet data structure. |
Storage | Storage which has this Progress string. |
Progress | The Progress string which has the first fail string. |
RetForm | The return form for this progress string. |
RetQuestion | The return question for the error progress string. |
TRUE | Find the error form and statement for this error progress string. |
FALSE | Not find the error form. |
VOID GetBitsQuestionValue | ( | IN FORM_BROWSER_STATEMENT * | Question, |
IN UINT8 * | Buffer | ||
) |
EFI_STATUS GetDefaultValueFromAltCfg | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN OUT FORM_BROWSER_STATEMENT * | Question | ||
) |
EFI_FORM_ID GetFirstFormId | ( | IN EFI_HII_HANDLE | HiiHandle, |
IN EFI_GUID * | FormSetGuid | ||
) |
FORM_BROWSER_FORMSET * GetFormSetFromHiiHandle | ( | EFI_HII_HANDLE | Handle | ) |
BROWSER_HOT_KEY * GetHotKeyFromRegisterList | ( | IN EFI_INPUT_KEY * | KeyData | ) |
EFI_STATUS GetIfrBinaryData | ( | IN EFI_HII_HANDLE | Handle, |
IN OUT EFI_GUID * | FormSetGuid, | ||
OUT UINTN * | BinaryLength, | ||
OUT UINT8 ** | BinaryData | ||
) |
Fetch the Ifr binary data 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). |
BinaryLength | The length of the FormSet IFR binary. |
BinaryData | The buffer designed to receive the FormSet. |
EFI_SUCCESS | Buffer filled with the requested FormSet. BufferLength was updated. |
EFI_INVALID_PARAMETER | The handle is unknown. |
EFI_NOT_FOUND | A form or FormSet on the requested handle cannot be found with the requested FormId. |
CHAR16 * GetOffsetFromConfigResp | ( | IN FORM_BROWSER_STATEMENT * | Question, |
IN CHAR16 * | ConfigResp | ||
) |
EFI_STATUS GetQuestionDefault | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN FORM_BROWSER_STATEMENT * | Question, | ||
IN UINT16 | DefaultId | ||
) |
EFI_STATUS GetQuestionValue | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN OUT FORM_BROWSER_STATEMENT * | Question, | ||
IN GET_SET_QUESTION_VALUE_WITH | GetValueFrom | ||
) |
Get Question's current Value.
FormSet | FormSet data structure. |
Form | Form data structure. |
Question | Question to be initialized. |
GetValueFrom | Where to get value, may from editbuffer, buffer or hii driver. |
EFI_SUCCESS | The function completed successfully. |
VOID GetSyncRestoreConfigRequest | ( | IN BROWSER_STORAGE * | Storage, |
IN EFI_STRING | ConfigRequest, | ||
IN EFI_STRING | Progress, | ||
OUT EFI_STRING * | RestoreConfigRequest, | ||
OUT EFI_STRING * | SyncConfigRequest | ||
) |
Base on the return Progress string to get the SyncConfigRequest and RestoreConfigRequest for form and formset.
Storage | Storage which has this Progress string. |
ConfigRequest | The ConfigRequest string. |
Progress | The Progress string which has the first fail string. |
RestoreConfigRequest | Return the RestoreConfigRequest string. |
SyncConfigRequest | Return the SyncConfigRequest string. |
CHAR16 * GetToken | ( | IN EFI_STRING_ID | Token, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
EFI_STATUS GetValueByName | ( | IN BROWSER_STORAGE * | Storage, |
IN CHAR16 * | Name, | ||
IN OUT CHAR16 ** | Value, | ||
IN GET_SET_QUESTION_VALUE_WITH | GetValueFrom | ||
) |
Get Value for given Name from a NameValue Storage.
Storage | The NameValue Storage. |
Name | The Name. |
Value | The retured Value. |
GetValueFrom | Where to get source value, from EditValue or Value. |
EFI_SUCCESS | Value found for given Name. |
EFI_NOT_FOUND | No such Name found in NameValue storage. |
VOID EFIAPI HiiToLower | ( | IN EFI_STRING | ConfigString | ) |
VOID InitializeCurrentSetting | ( | IN OUT FORM_BROWSER_FORMSET * | FormSet | ) |
EFI_STATUS InitializeFormSet | ( | IN EFI_HII_HANDLE | Handle, |
IN OUT EFI_GUID * | FormSetGuid, | ||
OUT FORM_BROWSER_FORMSET * | FormSet | ||
) |
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. |
EFI_STATUS EFIAPI InitializeSetup | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
BOOLEAN EFIAPI IsBrowserDataModified | ( | VOID | ) |
BOOLEAN IsHiiHandleInBrowserContext | ( | EFI_HII_HANDLE | Handle | ) |
BOOLEAN IsQuestionValueChanged | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN OUT FORM_BROWSER_STATEMENT * | Question, | ||
IN GET_SET_QUESTION_VALUE_WITH | GetValueFrom | ||
) |
Validate whether this question's value has changed.
FormSet | FormSet data structure. |
Form | Form data structure. |
Question | Question to be initialized. |
GetValueFrom | Where to get value, may from editbuffer, buffer or hii driver. |
TRUE | Question's value has changed. |
FALSE | Question's value has not changed |
BOOLEAN EFIAPI IsResetRequired | ( | VOID | ) |
VOID LoadAllHiiFormset | ( | VOID | ) |
EFI_STATUS LoadFormConfig | ( | IN OUT UI_MENU_SELECTION * | Selection, |
IN FORM_BROWSER_FORMSET * | FormSet, | ||
IN FORM_BROWSER_FORM * | Form | ||
) |
Initialize Question's Edit copy from Storage.
Selection | Selection contains the information about the Selection, form and formset to be displayed. Selection action may be updated in retrieve callback. If Selection is NULL, only initialize Question value. |
FormSet | FormSet data structure. |
Form | Form data structure. |
EFI_SUCCESS | The function completed successfully. |
EFI_STATUS LoadFormSetConfig | ( | IN OUT UI_MENU_SELECTION * | Selection, |
IN FORM_BROWSER_FORMSET * | FormSet | ||
) |
Initialize Question's Edit copy from Storage for the whole Formset.
Selection | Selection contains the information about the Selection, form and formset to be displayed. Selection action may be updated in retrieve callback. If Selection is NULL, only initialize Question value. |
FormSet | FormSet data structure. |
EFI_SUCCESS | The function completed successfully. |
VOID LoadStorage | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORMSET_STORAGE * | Storage | ||
) |
EFI_STRING_ID NewString | ( | IN CHAR16 * | String, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
EFI_STATUS NoSubmitCheck | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN OUT FORM_BROWSER_FORM ** | CurrentForm, | ||
OUT FORM_BROWSER_STATEMENT ** | Statement | ||
) |
EFI_STATUS EFIAPI PasswordCheck | ( | IN FORM_DISPLAY_ENGINE_FORM * | Form, |
IN FORM_DISPLAY_ENGINE_STATEMENT * | Statement, | ||
IN EFI_STRING PasswordString | OPTIONAL | ||
) |
Perform Password check. Passwork may be encrypted by driver that requires the specific check.
Form | Form where Password Statement is in. |
Statement | Password statement |
PasswordString | Password string to be checked. It may be NULL. NULL means to restore password. "" string can be used to checked whether old password does exist. |
UINT32 PopupErrorMessage | ( | IN UINT32 | BrowserStatus, |
IN EFI_HII_HANDLE | HiiHandle, | ||
IN EFI_IFR_OP_HEADER *OpCode | OPTIONAL, | ||
IN CHAR16 * | ErrorString | ||
) |
EFI_STATUS ProcessStorage | ( | IN OUT UINTN * | ResultsDataSize, |
IN OUT EFI_STRING * | ResultsData, | ||
IN BOOLEAN | RetrieveData, | ||
IN BROWSER_STORAGE * | Storage | ||
) |
Get or set data to the storage.
ResultsDataSize | The size of the buffer associatedwith ResultsData. |
ResultsData | A string returned from an IFR browser or equivalent. The results string will have no routing information in them. |
RetrieveData | A BOOLEAN field which allows an agent to retrieve (if RetrieveData = TRUE) data from the uncommitted browser state information or set (if RetrieveData = FALSE) data in the uncommitted browser state information. |
Storage | The pointer to the storage. |
EFI_SUCCESS | The results have been distributed or are awaiting distribution. |
VOID EFIAPI RegiserExitHandler | ( | IN EXIT_HANDLER | Handler | ) |
Register Exit handler function. When more than one handler function is registered, the latter one will override the previous one. When NULL handler is specified, the previous Exit handler will be unregistered.
[in] | Handler | Pointer to handler function. |
EFI_STATUS EFIAPI RegisterHotKey | ( | IN EFI_INPUT_KEY * | KeyData, |
IN UINT32 | Action, | ||
IN UINT16 | DefaultId, | ||
IN EFI_STRING HelpString | OPTIONAL | ||
) |
Register the hot key with its browser action, or unregistered the hot key. Only support hot key that is not printable character (control key, function key, etc.). If the action value is zero, the hot key will be unregistered if it has been registered. If the same hot key has been registered, the new action and help string will override the previous ones.
[in] | KeyData | A pointer to a buffer that describes the keystroke information for the hot key. Its type is EFI_INPUT_KEY to be supported by all ConsoleIn devices. |
[in] | Action | Action value that describes what action will be trigged when the hot key is pressed. |
[in] | DefaultId | Specifies the type of defaults to retrieve, which is only for DEFAULT action. |
[in] | HelpString | Help string that describes the hot key information. Its value may be NULL for the unregistered hot key. |
EFI_SUCCESS | Hot key is registered or unregistered. |
EFI_INVALID_PARAMETER | KeyData is NULL or HelpString is NULL on register. |
EFI_NOT_FOUND | KeyData is not found to be unregistered. |
EFI_UNSUPPORTED | Key represents a printable character. It is conflicted with Browser. |
EFI_ALREADY_STARTED | Key already been registered for one hot key. |
VOID RemoveConfigRequest | ( | FORMSET_STORAGE * | Storage, |
CHAR16 * | ConfigRequest | ||
) |
VOID RemoveElement | ( | IN OUT BROWSER_STORAGE * | Storage, |
IN CHAR16 * | RequestElement | ||
) |
VOID RestoreBrowserContext | ( | VOID | ) |
Restore globals used by previous call to SendForm().
VOID SaveBrowserContext | ( | VOID | ) |
Save globals used by previous call to SendForm(). SendForm() may be called from HiiConfigAccess.Callback(), this will cause SendForm() be reentried. So, save globals of previous call to SendForm() and restore them upon exit.
UINT32 EFIAPI SaveReminder | ( | VOID | ) |
Create reminder to let user to choose save or discard the changed browser data. Caller can use it to actively check the changed browser data.
BROWSER_NO_CHANGES | No browser data is changed. |
BROWSER_SAVE_CHANGES | The changed browser data is saved. |
BROWSER_DISCARD_CHANGES | The changed browser data is discard. |
BROWSER_KEEP_CURRENT | Browser keep current changes. |
VOID SendDiscardInfoToDriver | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form | ||
) |
EFI_STATUS EFIAPI SendForm | ( | IN CONST EFI_FORM_BROWSER2_PROTOCOL * | This, |
IN EFI_HII_HANDLE * | Handles, | ||
IN UINTN | HandleCount, | ||
IN EFI_GUID *FormSetGuid | OPTIONAL, | ||
IN UINT16 FormId | OPTIONAL, | ||
IN CONST EFI_SCREEN_DESCRIPTOR *ScreenDimensions | OPTIONAL, | ||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest | OPTIONAL | ||
) |
This is the routine which an external caller uses to direct the browser where to obtain it's information.
This | The Form Browser protocol instanse. |
Handles | A pointer to an array of Handles. If HandleCount > 1 we display a list of the formsets for the handles specified. |
HandleCount | The number of Handles specified in Handle. |
FormSetGuid | This field points to the EFI_GUID which must match the Guid field in the EFI_IFR_FORM_SET op-code for the specified forms-based package. If FormSetGuid is NULL, then this function will display the first found forms package. |
FormId | This field specifies which EFI_IFR_FORM to render as the first displayable page. If this field has a value of 0x0000, then the forms browser will render the specified forms in their encoded order. |
ScreenDimensions | Points to recommended form dimensions, including any non-content area, in characters. |
ActionRequest | Points to the action recommended by the form. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | One of the parameters has an invalid value. |
EFI_NOT_FOUND | No valid forms could be found to display. |
VOID SetBitsQuestionValue | ( | IN FORM_BROWSER_STATEMENT * | Question, |
IN OUT UINT8 * | Buffer, | ||
IN UINT32 | Value | ||
) |
EFI_STATUS SetQuestionValue | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN OUT FORM_BROWSER_STATEMENT * | Question, | ||
IN GET_SET_QUESTION_VALUE_WITH | SetValueTo | ||
) |
Save Question Value to edit copy(cached) or Storage(uncached).
FormSet | FormSet data structure. |
Form | Form data structure. |
Question | Pointer to the Question. |
SetValueTo | Update the question value to editbuffer , buffer or hii driver. |
EFI_SUCCESS | The function completed successfully. |
EFI_STATUS EFIAPI SetScope | ( | IN BROWSER_SETTING_SCOPE | Scope | ) |
Configure what scope the hot key will impact. All hot keys have the same scope. The mixed hot keys with the different level are not supported. If no scope is set, the default scope will be FormSet level. After all registered hot keys are removed, previous Scope can reset to another level.
[in] | Scope | Scope level to be set. |
EFI_SUCCESS | Scope is set correctly. |
EFI_INVALID_PARAMETER | Scope is not the valid value specified in BROWSER_SETTING_SCOPE. |
EFI_UNSPPORTED | Scope level is different from current one that the registered hot keys have. |
EFI_STATUS SetValueByName | ( | IN BROWSER_STORAGE * | Storage, |
IN CHAR16 * | Name, | ||
IN CHAR16 * | Value, | ||
IN GET_SET_QUESTION_VALUE_WITH | SetValueTo, | ||
OUT NAME_VALUE_NODE ** | ReturnNode | ||
) |
Set Value of given Name in a NameValue Storage.
Storage | The NameValue Storage. |
Name | The Name. |
Value | The Value to set. |
SetValueTo | Whether update editValue or Value. |
ReturnNode | The node use the input name. |
EFI_SUCCESS | Value found for given Name. |
EFI_NOT_FOUND | No such Name found in NameValue storage. |
EFI_STATUS StorageToConfigResp | ( | IN BROWSER_STORAGE * | Storage, |
IN CHAR16 ** | ConfigResp, | ||
IN CHAR16 * | ConfigRequest, | ||
IN BOOLEAN | GetEditBuf | ||
) |
Convert setting of Buffer Storage or NameValue Storage to <ConfigResp>.
Storage | The Storage to be conveted. |
ConfigResp | The returned <ConfigResp>. |
ConfigRequest | The ConfigRequest string. |
GetEditBuf | Get the data from editbuffer or buffer. |
EFI_SUCCESS | Convert success. |
EFI_INVALID_PARAMETER | Incorrect storage type. |
VOID SubmitCallback | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form | ||
) |
VOID SubmitCallbackForForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form | ||
) |
EFI_STATUS SubmitForForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form | ||
) |
EFI_STATUS SubmitForFormSet | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN BOOLEAN | SkipProcessFail | ||
) |
Submit data for a formset.
FormSet | FormSet data structure. |
SkipProcessFail | Whether skip to process the save failed storage. If submit formset is called when do system level save, set this value to true and process the failed formset together. if submit formset is called when do formset level save, set the value to false and process the failed storage right after process all storages for this formset. |
EFI_SUCCESS | The function completed successfully. |
EFI_UNSUPPORTED | Unsupport SettingScope. |
EFI_STATUS SubmitForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN BROWSER_SETTING_SCOPE | SettingScope | ||
) |
Submit data based on the input Setting level (Form, FormSet or System).
FormSet | FormSet data structure. |
Form | Form data structure. |
SettingScope | Setting Scope for Submit action. |
EFI_SUCCESS | The function completed successfully. |
EFI_UNSUPPORTED | Unsupport SettingScope. |
EFI_STATUS SubmitForSystem | ( | VOID | ) |
EFI_STATUS SynchronizeStorage | ( | OUT BROWSER_STORAGE * | Storage, |
IN CHAR16 * | ConfigRequest, | ||
IN BOOLEAN | SyncOrRestore | ||
) |
Fill storage's edit copy with settings requested from Configuration Driver.
Storage | The storage which need to sync. |
ConfigRequest | The config request string which used to sync storage. |
SyncOrRestore | Sync the buffer to editbuffer or Restore the editbuffer to buffer if TRUE, copy the editbuffer to the buffer. if FALSE, copy the buffer to the editbuffer. |
EFI_SUCCESS | The function completed successfully. |
VOID SyncStatusForFormSet | ( | IN OUT FORM_BROWSER_FORMSET * | NewFormSet, |
IN FORM_BROWSER_FORMSET * | OldFormSet | ||
) |
VOID SyncStatusForQuestion | ( | IN OUT FORM_BROWSER_FORMSET * | NewFormSet, |
IN FORM_BROWSER_STATEMENT * | OldQuestion | ||
) |
FORM_ENTRY_INFO * UiAddMenuList | ( | IN EFI_HII_HANDLE | HiiHandle, |
IN EFI_GUID * | FormSetGuid, | ||
IN UINT16 | FormId, | ||
IN UINT16 | QuestionId | ||
) |
Create a menu with specified formset GUID and form ID, and add it as a child of the given parent menu.
HiiHandle | Hii handle related to this formset. |
FormSetGuid | The Formset Guid of menu to be added. |
FormId | The Form ID of menu to be added. |
QuestionId | The question id of this menu to be added. |
VOID UiCopyMenuList | ( | OUT LIST_ENTRY * | NewMenuListHead, |
IN LIST_ENTRY * | CurrentMenuListHead | ||
) |
FORM_ENTRY_INFO * UiFindMenuList | ( | IN EFI_HII_HANDLE | HiiHandle, |
IN EFI_GUID * | FormSetGuid, | ||
IN UINT16 | FormId | ||
) |
FORM_ENTRY_INFO * UiFindParentMenu | ( | IN FORM_ENTRY_INFO * | CurrentMenu, |
IN BROWSER_SETTING_SCOPE | SettingLevel | ||
) |
Find parent menu for current menu.
CurrentMenu | Current Menu |
SettingLevel | Whether find parent menu in Form Level or Formset level. In form level, just find the parent menu; In formset level, find the parent menu which has different formset guid value. |
The | parent menu for current menu. |
VOID UiFreeMenuList | ( | LIST_ENTRY * | MenuListHead | ) |
VOID UpdateFlagForForm | ( | IN BOOLEAN | SetFlag, |
IN FORM_BROWSER_FORMSET * | FormSet, | ||
IN FORM_BROWSER_FORM * | Form | ||
) |
BOOLEAN ValidateFormSet | ( | FORM_BROWSER_FORMSET * | FormSet | ) |
BOOLEAN ValidateHiiHandle | ( | EFI_HII_HANDLE | HiiHandle | ) |
EFI_STATUS ValidateQuestion | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN FORM_BROWSER_STATEMENT * | Question, | ||
IN UINTN | Type | ||
) |
EFI_STATUS ValueChangedValidation | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN FORM_BROWSER_STATEMENT * | Question | ||
) |
Perform question check.
If one question has more than one check, process form high priority to low. Only one error info will be popup.
FormSet | FormSet data structure. |
Form | Form data structure. |
Question | The Question to be validated. |
EFI_SUCCESS | Form validation pass. |
other | Form validation failed. |
VOID ValueChangeResetFlagUpdate | ( | IN BOOLEAN | SetFlag, |
IN FORM_BROWSER_FORMSET * | FormSet, | ||
IN FORM_BROWSER_FORM * | Form | ||
) |
QUESTION_OPTION * ValueToOption | ( | IN FORM_BROWSER_STATEMENT * | Question, |
IN EFI_HII_VALUE * | OptionValue | ||
) |
EXIT_HANDLER ExitHandlerFunction = NULL |
LIST_ENTRY gBrowserContextList = INITIALIZE_LIST_HEAD_VARIABLE (gBrowserContextList) |
LIST_ENTRY gBrowserFormSetList = INITIALIZE_LIST_HEAD_VARIABLE (gBrowserFormSetList) |
LIST_ENTRY gBrowserHotKeyList = INITIALIZE_LIST_HEAD_VARIABLE (gBrowserHotKeyList) |
LIST_ENTRY gBrowserSaveFailFormSetList = INITIALIZE_LIST_HEAD_VARIABLE (gBrowserSaveFailFormSetList) |
LIST_ENTRY gBrowserStorageList = INITIALIZE_LIST_HEAD_VARIABLE (gBrowserStorageList) |
|
extern |
Definition at line 22 of file Presentation.c.
|
extern |
Definition at line 18 of file Presentation.c.
|
extern |
Definition at line 15 of file Presentation.c.
|
extern |
Definition at line 14 of file Presentation.c.
EDKII_FORM_DISPLAY_ENGINE_PROTOCOL* mFormDisplay |
EFI_HII_CONFIG_ROUTING_PROTOCOL* mHiiConfigRouting |
EFI_HII_DATABASE_PROTOCOL* mHiiDatabase |
EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL* mPathFromText |
SETUP_DRIVER_PRIVATE_DATA mPrivateData |
FORM_BROWSER_FORMSET* mSystemLevelFormSet |