summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Setup.c')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Setup.c222
1 files changed, 111 insertions, 111 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index c2cfa5c5c8..922219a58e 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -1,7 +1,7 @@
/** @file
Entry and initialization module for the browser.
-Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -152,7 +152,7 @@ GetFirstFormId (
**/
FORM_ENTRY_INFO *
UiFindMenuList (
- IN EFI_HII_HANDLE HiiHandle,
+ IN EFI_HII_HANDLE HiiHandle,
IN EFI_GUID *FormSetGuid,
IN UINT16 FormId
)
@@ -168,7 +168,7 @@ UiFindMenuList (
while (!IsNull (&mPrivateData.FormBrowserEx2.FormViewHistoryHead, Link)) {
MenuList = FORM_ENTRY_INFO_FROM_LINK (Link);
Link = GetNextNode (&mPrivateData.FormBrowserEx2.FormViewHistoryHead, Link);
-
+
//
// If already find the menu, free the menus behind it.
//
@@ -208,7 +208,7 @@ UiFindMenuList (
@param CurrentMenu Current Menu
@param SettingLevel Whether find parent menu in Form Level or Formset level.
- In form level, just find the parent menu;
+ In form level, just find the parent menu;
In formset level, find the parent menu which has different
formset guid value.
@@ -228,7 +228,7 @@ UiFindParentMenu (
if (CurrentMenu == NULL) {
return NULL;
}
-
+
ParentMenu = NULL;
Link = &CurrentMenu->Link;
@@ -285,7 +285,7 @@ UiFreeMenuList (
/**
Copy current Menu list to the new menu list.
-
+
@param NewMenuListHead New create Menu list.
@param CurrentMenuListHead Current Menu list.
@@ -622,7 +622,7 @@ SendForm (
distribution.
**/
-EFI_STATUS
+EFI_STATUS
ProcessStorage (
IN OUT UINTN *ResultsDataSize,
IN OUT EFI_STRING *ResultsData,
@@ -696,8 +696,8 @@ ProcessStorage (
}
/**
- This routine called this service in the browser to retrieve or set certain uncommitted
- state information that resides in the open formsets.
+ This routine called this service in the browser to retrieve or set certain uncommitted
+ state information that resides in the open formsets.
@param This A pointer to the EFI_FORM_BROWSER2_PROTOCOL
instance.
@@ -801,7 +801,7 @@ BrowserCallback (
//
// Different formsets may have same varstore, so here just set the flag
// not exit the circle.
- //
+ //
Found = TRUE;
break;
}
@@ -826,7 +826,7 @@ BrowserCallback (
}
FormsetStorage = FORMSET_STORAGE_FROM_LINK (Link);
-
+
Status = ProcessStorage (&TotalSize, &ResultsData, RetrieveData, FormsetStorage->BrowserStorage);
if (EFI_ERROR (Status)) {
return Status;
@@ -837,7 +837,7 @@ BrowserCallback (
Status = TotalSize <= *ResultsDataSize ? EFI_SUCCESS : EFI_BUFFER_TOO_SMALL;
*ResultsDataSize = TotalSize;
}
-
+
return Status;
}
@@ -936,7 +936,7 @@ InitializeSetup (
&mPrivateData.FormBrowserEx2
);
ASSERT_EFI_ERROR (Status);
-
+
Status = gBS->InstallProtocolInterface (
&mPrivateData.Handle,
&gEdkiiFormBrowserExProtocolGuid,
@@ -962,7 +962,7 @@ InitializeSetup (
&Registration
);
}
-
+
return EFI_SUCCESS;
}
@@ -1465,7 +1465,7 @@ BufferToValue (
Buffer = NULL;
IsString = (BOOLEAN) ((Question->HiiValue.Type == EFI_IFR_TYPE_STRING) ? TRUE : FALSE);
- if (Question->Storage->Type == EFI_HII_VARSTORE_BUFFER ||
+ if (Question->Storage->Type == EFI_HII_VARSTORE_BUFFER ||
Question->Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER) {
IsBufferStorage = TRUE;
} else {
@@ -1620,17 +1620,17 @@ GetQuestionValue (
FreePool (Question->ValueExpression->Result.Buffer);
}
Question->HiiValue.Type = Question->ValueExpression->Result.Type;
- CopyMem (&Question->HiiValue.Value, &Question->ValueExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
+ CopyMem (&Question->HiiValue.Value, &Question->ValueExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
}
return Status;
}
-
+
//
// Get question value by read expression.
//
if (Question->ReadExpression != NULL && Form->FormType == STANDARD_MAP_FORM_TYPE) {
Status = EvaluateExpression (FormSet, Form, Question->ReadExpression);
- if (!EFI_ERROR (Status) &&
+ if (!EFI_ERROR (Status) &&
((Question->ReadExpression->Result.Type < EFI_IFR_TYPE_OTHER) || (Question->ReadExpression->Result.Type == EFI_IFR_TYPE_BUFFER))) {
//
// Only update question value to the valid result.
@@ -1647,7 +1647,7 @@ GetQuestionValue (
FreePool (Question->ReadExpression->Result.Buffer);
}
Question->HiiValue.Type = Question->ReadExpression->Result.Type;
- CopyMem (&Question->HiiValue.Value, &Question->ReadExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
+ CopyMem (&Question->HiiValue.Value, &Question->ReadExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
return EFI_SUCCESS;
}
}
@@ -1748,7 +1748,7 @@ GetQuestionValue (
Dst = (UINT8 *) &Question->HiiValue.Value;
}
- if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
+ if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER) {
IsBufferStorage = TRUE;
} else {
@@ -1933,7 +1933,7 @@ SetQuestionValue (
if (Question->ValueExpression != NULL) {
return Status;
}
-
+
//
// Before set question value, evaluate its write expression.
//
@@ -2028,7 +2028,7 @@ SetQuestionValue (
Src = (UINT8 *) &Question->HiiValue.Value;
}
- if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
+ if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER) {
IsBufferStorage = TRUE;
} else {
@@ -2199,7 +2199,7 @@ SetQuestionValue (
return Status;
}
FreePool (ConfigResp);
-
+
//
// Sync storage, from editbuffer to buffer.
//
@@ -2322,9 +2322,9 @@ ValidateQuestion (
}
/**
- Perform question check.
-
- If one question has more than one check, process form high priority to low.
+ Perform question check.
+
+ If one question has more than one check, process form high priority to low.
Only one error info will be popup.
@param FormSet FormSet data structure.
@@ -2425,7 +2425,7 @@ NoSubmitCheck (
@param Storage The storage which need to sync.
@param ConfigRequest The config request string which used to sync storage.
- @param SyncOrRestore Sync the buffer to editbuffer or Restore the
+ @param 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.
@@ -2452,7 +2452,7 @@ SynchronizeStorage (
Status = EFI_SUCCESS;
Result = NULL;
- if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
+ if (Storage->Type == EFI_HII_VARSTORE_BUFFER ||
(Storage->Type == EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER)) {
BufferSize = Storage->Size;
@@ -2787,7 +2787,7 @@ UpdateFlagForForm (
if ((Question->QuestionFlags & EFI_IFR_FLAG_RECONNECT_REQUIRED) != 0) {
gFlagReconnect = TRUE;
}
- }
+ }
}
}
@@ -2796,7 +2796,7 @@ UpdateFlagForForm (
Also clean ValueChanged flag for all statements.
Form level or formset level, only one.
-
+
@param SetFlag Whether need to set the Reset Flag.
@param FormSet FormSet data structure.
@param Form Form data structure.
@@ -2806,7 +2806,7 @@ VOID
ValueChangeResetFlagUpdate (
IN BOOLEAN SetFlag,
IN FORM_BROWSER_FORMSET *FormSet,
- IN FORM_BROWSER_FORM *Form
+ IN FORM_BROWSER_FORM *Form
)
{
FORM_BROWSER_FORM *CurrentForm;
@@ -2827,8 +2827,8 @@ ValueChangeResetFlagUpdate (
}
/**
- Base on the return Progress string to find the form.
-
+ 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.
@@ -3109,9 +3109,9 @@ ConfirmSaveFail (
ASSERT (StringBuffer != NULL);
UnicodeSPrint (
- StringBuffer,
- 24 * sizeof (CHAR16) + StrSize (FormTitle),
- L"Submit Fail For Form: %s.",
+ StringBuffer,
+ 24 * sizeof (CHAR16) + StrSize (FormTitle),
+ L"Submit Fail For Form: %s.",
FormTitle
);
@@ -3148,9 +3148,9 @@ ConfirmNoSubmitFail (
ASSERT (StringBuffer != NULL);
UnicodeSPrint (
- StringBuffer,
- 24 * sizeof (CHAR16) + StrSize (FormTitle),
- L"NO_SUBMIT_IF error For Form: %s.",
+ StringBuffer,
+ 24 * sizeof (CHAR16) + StrSize (FormTitle),
+ L"NO_SUBMIT_IF error For Form: %s.",
FormTitle
);
@@ -3251,7 +3251,7 @@ DiscardForm (
while (!IsNull (&FormSet->FormListHead, Link)) {
Form = FORM_BROWSER_FORM_FROM_LINK (Link);
Link = GetNextNode (&FormSet->FormListHead, Link);
-
+
//
// Call callback with Changed type to inform the driver.
//
@@ -3292,7 +3292,7 @@ DiscardForm (
mSystemLevelFormSet = OldFormSet;
}
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
/**
@@ -3441,9 +3441,9 @@ SubmitForForm (
@param FormSet FormSet data structure.
@param 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 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.
@@ -3478,7 +3478,7 @@ SubmitForFormSet (
return EFI_SUCCESS;
}
- Form = NULL;
+ Form = NULL;
Status = NoSubmitCheck (FormSet, &Form, &Question);
if (EFI_ERROR (Status)) {
if (SkipProcessFail) {
@@ -3639,7 +3639,7 @@ SubmitForFormSet (
//
// 5. Update the NV flag.
- //
+ //
ValueChangeResetFlagUpdate(TRUE, FormSet, NULL);
//
@@ -3690,7 +3690,7 @@ SubmitForSystem (
//
// Remove maintain backup list after save except for the current using FormSet.
- //
+ //
if (!IsHiiHandleInBrowserContext (LocalFormSet->HiiHandle)) {
CleanBrowserStorage(LocalFormSet);
RemoveEntryList (&LocalFormSet->Link);
@@ -3937,7 +3937,7 @@ GetOffsetFromConfigResp (
RequestElement += StrLen (Question->BlockName) + StrLen (L"&VALUE=");
return RequestElement;
}
-
+
//
// 2. Change all hex digits in Question->BlockName to lower and compare again.
//
@@ -3973,7 +3973,7 @@ GetDefaultValueFromAltCfg (
IN FORM_BROWSER_FORM *Form,
IN OUT FORM_BROWSER_STATEMENT *Question
)
-{
+{
BROWSER_STORAGE *Storage;
FORMSET_STORAGE *FormSetStorage;
CHAR16 *ConfigResp;
@@ -4039,7 +4039,7 @@ INTN
GetDefaultIdForCallBack (
UINTN DefaultId
)
-{
+{
if (DefaultId == EFI_HII_DEFAULT_CLASS_STANDARD) {
return EFI_BROWSER_ACTION_DEFAULT_STANDARD;
} else if (DefaultId == EFI_HII_DEFAULT_CLASS_MANUFACTURING) {
@@ -4240,7 +4240,7 @@ GetQuestionDefault (
// There are Five ways to specify default value for a Question:
// 1, use call back function (highest priority)
// 2, use ExtractConfig function
- // 3, use nested EFI_IFR_DEFAULT
+ // 3, use nested EFI_IFR_DEFAULT
// 4, set flags of EFI_ONE_OF_OPTION (provide Standard and Manufacturing default)
// 5, set flags of EFI_IFR_CHECKBOX (provide Standard and Manufacturing default) (lowest priority)
//
@@ -4291,7 +4291,7 @@ ReGetDefault:
//
// Get default value from altcfg string.
//
- if (ConfigAccess != NULL) {
+ if (ConfigAccess != NULL) {
Status = GetDefaultValueFromAltCfg(FormSet, Form, Question);
if (!EFI_ERROR (Status)) {
return Status;
@@ -4328,7 +4328,7 @@ ReGetDefault:
FreePool (Default->ValueExpression->Result.Buffer);
}
HiiValue->Type = Default->ValueExpression->Result.Type;
- CopyMem (&HiiValue->Value, &Default->ValueExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
+ CopyMem (&HiiValue->Value, &Default->ValueExpression->Result.Value, sizeof (EFI_IFR_TYPE_VALUE));
} else {
//
// Default value is embedded in EFI_IFR_DEFAULT
@@ -4467,7 +4467,7 @@ ReGetDefault:
}
break;
default:
- break;
+ break;
}
} else {
if ((HiiValue->Value.u64 < Question->Minimum) || (HiiValue->Value.u64 > Question->Maximum)) {
@@ -4776,7 +4776,7 @@ CleanAltCfgForFormSet (
/**
Reset Questions to their initial value or default value in a Form, Formset or System.
- GetDefaultValueScope parameter decides which questions will reset
+ GetDefaultValueScope parameter decides which questions will reset
to its default value.
@param FormSet FormSet data structure.
@@ -5067,7 +5067,7 @@ IsQuestionValueChanged (
/**
Initialize Question's Edit copy from Storage.
- @param Selection Selection contains the information about
+ @param 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.
@@ -5087,7 +5087,7 @@ LoadFormConfig (
EFI_STATUS Status;
LIST_ENTRY *Link;
FORM_BROWSER_STATEMENT *Question;
-
+
Link = GetFirstNode (&Form->StatementListHead);
while (!IsNull (&Form->StatementListHead, Link)) {
Question = FORM_BROWSER_STATEMENT_FROM_LINK (Link);
@@ -5117,7 +5117,7 @@ LoadFormConfig (
/**
Initialize Question's Edit copy from Storage for the whole Formset.
- @param Selection Selection contains the information about
+ @param 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.
@@ -5153,7 +5153,7 @@ LoadFormSetConfig (
//
// Finished question initialization.
- //
+ //
FormSet->QuestionInited = TRUE;
return EFI_SUCCESS;
@@ -5189,8 +5189,8 @@ RemoveElement (
DestStr = NewStr;
NewStr += StrLen (RequestElement);
CopyMem (DestStr, NewStr, StrSize (NewStr));
-
- Storage->SpareStrLen += StrLen (RequestElement);
+
+ Storage->SpareStrLen += StrLen (RequestElement);
}
/**
@@ -5235,7 +5235,7 @@ RemoveConfigRequest (
if (Storage->BrowserStorage->Type == EFI_HII_VARSTORE_NAME_VALUE) {
RequestElement = StrStr (ConfigRequest, L"PATH");
ASSERT (RequestElement != NULL);
- RequestElement = StrStr (RequestElement, SearchKey);
+ RequestElement = StrStr (RequestElement, SearchKey);
} else {
RequestElement = StrStr (ConfigRequest, SearchKey);
}
@@ -5305,7 +5305,7 @@ CleanBrowserStorage (
RemoveConfigRequest (Storage, Storage->ConfigRequest);
} else if (Storage->BrowserStorage->Type == EFI_HII_VARSTORE_BUFFER ||
Storage->BrowserStorage->Type == EFI_HII_VARSTORE_NAME_VALUE) {
- if (Storage->BrowserStorage->ConfigRequest != NULL) {
+ if (Storage->BrowserStorage->ConfigRequest != NULL) {
FreePool (Storage->BrowserStorage->ConfigRequest);
Storage->BrowserStorage->ConfigRequest = NULL;
}
@@ -5324,7 +5324,7 @@ CleanBrowserStorage (
@retval FALSE The Element not in the configReqeust String.
**/
-BOOLEAN
+BOOLEAN
ElementValidation (
BROWSER_STORAGE *BrowserStorage,
CHAR16 *RequestElement
@@ -5391,7 +5391,7 @@ AppendConfigRequest (
@retval FALSE All elements covered by current used elements.
**/
-BOOLEAN
+BOOLEAN
ConfigRequestAdjust (
IN BROWSER_STORAGE *Storage,
IN CHAR16 *Request,
@@ -5440,7 +5440,7 @@ ConfigRequestAdjust (
if (Storage->Type == EFI_HII_VARSTORE_NAME_VALUE) {
RequestElement = StrStr (ConfigRequest, L"PATH");
ASSERT (RequestElement != NULL);
- RequestElement = StrStr (RequestElement, SearchKey);
+ RequestElement = StrStr (RequestElement, SearchKey);
} else {
RequestElement = StrStr (ConfigRequest, SearchKey);
}
@@ -5476,7 +5476,7 @@ ConfigRequestAdjust (
*NextRequestElement = L'\0';
}
}
-
+
if (!ElementValidation (Storage, RequestElement)) {
//
// Add this element to the Storage->BrowserStorage->AllRequestElement.
@@ -5545,7 +5545,7 @@ LoadStorage (
}
//
- // Just update the ConfigRequest, if storage already initialized.
+ // Just update the ConfigRequest, if storage already initialized.
//
if (Storage->BrowserStorage->Initialized) {
ConfigRequestAdjust(Storage->BrowserStorage, Storage->ConfigRequest, FALSE);
@@ -5569,9 +5569,9 @@ LoadStorage (
ConfigRequest = AllocateZeroPool (StrLen);
ASSERT (ConfigRequest != NULL);
UnicodeSPrint (
- ConfigRequest,
- StrLen,
- L"%s&OFFSET=0&WIDTH=%04x",
+ ConfigRequest,
+ StrLen,
+ L"%s&OFFSET=0&WIDTH=%04x",
Storage->ConfigHdr,
Storage->BrowserStorage->Size);
} else {
@@ -5601,7 +5601,7 @@ LoadStorage (
if (StrPtr != NULL) {
*StrPtr = L'\0';
}
-
+
Status = ConfigRespToStorage (Storage->BrowserStorage, Result);
FreePool (Result);
}
@@ -5609,7 +5609,7 @@ LoadStorage (
Storage->BrowserStorage->ConfigRequest = AllocateCopyPool (StrSize (Storage->ConfigRequest), Storage->ConfigRequest);
//
- // Input NULL for ConfigRequest field means sync all fields from editbuffer to buffer.
+ // Input NULL for ConfigRequest field means sync all fields from editbuffer to buffer.
//
SynchronizeStorage(Storage->BrowserStorage, NULL, TRUE);
@@ -5737,7 +5737,7 @@ InitializeCurrentSetting (
//
// Extract default from IFR binary for no storage questions.
- //
+ //
ExtractDefault (FormSet, NULL, EFI_HII_DEFAULT_CLASS_STANDARD, FormSetLevel, GetDefaultForNoStorage, NULL, TRUE, FALSE);
//
@@ -5989,7 +5989,7 @@ InitializeFormSet (
/**
- Save globals used by previous call to SendForm(). SendForm() may be called from
+ 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.
@@ -6134,13 +6134,13 @@ RestoreBrowserContext (
/**
Find the matched FormSet context in the backup maintain list based on HiiHandle.
-
+
@param Handle The Hii Handle.
-
+
@return the found FormSet context. If no found, NULL will return.
**/
-FORM_BROWSER_FORMSET *
+FORM_BROWSER_FORMSET *
GetFormSetFromHiiHandle (
EFI_HII_HANDLE Handle
)
@@ -6159,15 +6159,15 @@ GetFormSetFromHiiHandle (
return FormSet;
}
}
-
+
return NULL;
}
/**
Check whether the input HII handle is the FormSet that is being used.
-
+
@param Handle The Hii Handle.
-
+
@retval TRUE HII handle is being used.
@retval FALSE HII handle is not being used.
@@ -6201,20 +6201,20 @@ IsHiiHandleInBrowserContext (
}
Link = GetNextNode (&gBrowserContextList, Link);
}
-
+
return FALSE;
}
/**
- Perform Password check.
+ Perform Password check.
Passwork may be encrypted by driver that requires the specific check.
-
+
@param Form Form where Password Statement is in.
@param Statement Password statement
@param 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.
-
+
@return Status Status of Password check.
**/
EFI_STATUS
@@ -6245,7 +6245,7 @@ PasswordCheck (
//
return EFI_UNSUPPORTED;
}
-
+
//
// Prepare password string in HII database
//
@@ -6279,7 +6279,7 @@ PasswordCheck (
/**
Find the registered HotKey based on KeyData.
-
+
@param[in] KeyData A pointer to a buffer that describes the keystroke
information for the hot key.
@@ -6301,7 +6301,7 @@ GetHotKeyFromRegisterList (
}
Link = GetNextNode (&gBrowserHotKeyList, Link);
}
-
+
return NULL;
}
@@ -6310,11 +6310,11 @@ GetHotKeyFromRegisterList (
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.
-
- @param[in] Scope Scope level to be set.
-
+
+ @param[in] Scope Scope level to be set.
+
@retval EFI_SUCCESS Scope is set correctly.
- @retval EFI_INVALID_PARAMETER Scope is not the valid value specified in BROWSER_SETTING_SCOPE.
+ @retval EFI_INVALID_PARAMETER Scope is not the valid value specified in BROWSER_SETTING_SCOPE.
@retval EFI_UNSPPORTED Scope level is different from current one that the registered hot keys have.
**/
@@ -6347,15 +6347,15 @@ SetScope (
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.
-
+
@param[in] KeyData A pointer to a buffer that describes the keystroke
- information for the hot key. Its type is EFI_INPUT_KEY to
+ information for the hot key. Its type is EFI_INPUT_KEY to
be supported by all ConsoleIn devices.
- @param[in] Action Action value that describes what action will be trigged when the hot key is pressed.
+ @param[in] Action Action value that describes what action will be trigged when the hot key is pressed.
@param[in] DefaultId Specifies the type of defaults to retrieve, which is only for DEFAULT action.
@param[in] HelpString Help string that describes the hot key information.
Its value may be NULL for the unregistered hot key.
-
+
@retval EFI_SUCCESS Hot key is registered or unregistered.
@retval EFI_INVALID_PARAMETER KeyData is NULL or HelpString is NULL on register.
@retval EFI_NOT_FOUND KeyData is not found to be unregistered.
@@ -6376,7 +6376,7 @@ RegisterHotKey (
//
// Check input parameters.
//
- if (KeyData == NULL || KeyData->UnicodeChar != CHAR_NULL ||
+ if (KeyData == NULL || KeyData->UnicodeChar != CHAR_NULL ||
(Action != BROWSER_ACTION_UNREGISTER && HelpString == NULL)) {
return EFI_INVALID_PARAMETER;
}
@@ -6385,14 +6385,14 @@ RegisterHotKey (
// Check whether the input KeyData is in BrowserHotKeyList.
//
HotKey = GetHotKeyFromRegisterList (KeyData);
-
+
//
// Unregister HotKey
//
if (Action == BROWSER_ACTION_UNREGISTER) {
if (HotKey != NULL) {
//
- // The registered HotKey is found.
+ // The registered HotKey is found.
// Remove it from List, and free its resource.
//
RemoveEntryList (&HotKey->Link);
@@ -6401,7 +6401,7 @@ RegisterHotKey (
return EFI_SUCCESS;
} else {
//
- // The registered HotKey is not found.
+ // The registered HotKey is not found.
//
return EFI_NOT_FOUND;
}
@@ -6434,11 +6434,11 @@ RegisterHotKey (
}
/**
- 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.
-
- @param[in] Handler Pointer to handler function.
+ 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.
+
+ @param[in] Handler Pointer to handler function.
**/
VOID
@@ -6510,7 +6510,7 @@ IsBrowserDataModified (
@retval EFI_INVALID_PARAMETER The input action value is invalid.
**/
-EFI_STATUS
+EFI_STATUS
EFIAPI
ExecuteAction (
IN UINT32 Action,
@@ -6530,7 +6530,7 @@ ExecuteAction (
Form = NULL;
if (gBrowserSettingScope < SystemLevel) {
FormSet = gCurrentSelection->FormSet;
- Form = gCurrentSelection->Form;
+ Form = gCurrentSelection->Form;
}
//
@@ -6625,16 +6625,16 @@ SaveReminder (
break;
}
}
-
+
//
- // No data is changed. No save is required.
+ // No data is changed. No save is required.
//
if (!IsDataChanged) {
return DataSavedAction;
}
-
+
//
- // If data is changed, prompt user to save or discard it.
+ // If data is changed, prompt user to save or discard it.
//
do {
ConfirmRet = (UINT32) mFormDisplay->ConfirmDataChange();