/** @file\r
Header file for boot maintenance module.\r
\r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
} BM_MENU_ENTRY;\r
\r
typedef struct {\r
- \r
+\r
UINTN Signature;\r
\r
EFI_HII_HANDLE BmmHiiHandle;\r
//\r
// BMM main formset callback data.\r
//\r
- \r
+\r
EFI_FORM_ID BmmCurrentPageId;\r
EFI_FORM_ID BmmPreviousPageId;\r
BOOLEAN BmmAskSaveOrNot;\r
\r
@return EFI_SUCESS The functin completes successfully.\r
@retval EFI_OUT_OF_RESOURCES Not enough memory to compete the operation.\r
- \r
+\r
\r
**/\r
EFI_STATUS\r
);\r
\r
/**\r
- Get option number according to Boot#### and BootOrder variable. \r
+ Get option number according to Boot#### and BootOrder variable.\r
The value is saved as #### + 1.\r
\r
@param CallbackData The BMM context data.\r
**/\r
-VOID \r
+VOID\r
GetBootOrder (\r
IN BMM_CALLBACK_DATA *CallbackData\r
);\r
Get driver option order from globalc DriverOptionMenu.\r
\r
@param CallbackData The BMM context data.\r
- \r
+\r
**/\r
-VOID \r
+VOID\r
GetDriverOrder (\r
IN BMM_CALLBACK_DATA *CallbackData\r
);\r
\r
/**\r
Update the multi-instance device path of Terminal Device based on\r
- the global TerminalMenu. If ChangeTernimal is TRUE, the terminal \r
+ the global TerminalMenu. If ChangeTernimal is TRUE, the terminal\r
device path in the Terminal Device in TerminalMenu is also updated.\r
\r
@param DevicePath The multi-instance device path.\r
- @param ChangeTerminal TRUE, then device path in the Terminal Device \r
+ @param ChangeTerminal TRUE, then device path in the Terminal Device\r
in TerminalMenu is also updated; FALSE, no update.\r
\r
@return EFI_SUCCESS The function completes successfully.\r
// Variable operation by menu selection\r
//\r
/**\r
- This function create a currently loaded Boot Option from \r
- the BMM. It then appends this Boot Option to the end of \r
+ This function create a currently loaded Boot Option from\r
+ the BMM. It then appends this Boot Option to the end of\r
the "BootOrder" list. It also append this Boot Opotion to the end\r
of BootOptionMenu.\r
\r
/**\r
Delete Boot Option that represent a Deleted state in BootOptionMenu.\r
\r
- @retval EFI_SUCCESS If all boot load option EFI Variables corresponding to \r
+ @retval EFI_SUCCESS If all boot load option EFI Variables corresponding to\r
BM_LOAD_CONTEXT marked for deletion is deleted\r
- @return Others If failed to update the "BootOrder" variable after deletion. \r
+ @return Others If failed to update the "BootOrder" variable after deletion.\r
\r
**/\r
EFI_STATUS\r
);\r
\r
/**\r
- This function create a currently loaded Drive Option from \r
- the BMM. It then appends this Driver Option to the end of \r
+ This function create a currently loaded Drive Option from\r
+ the BMM. It then appends this Driver Option to the end of\r
the "DriverOrder" list. It append this Driver Opotion to the end\r
of DriverOptionMenu.\r
\r
\r
/**\r
This function delete and build Out of Band console device.\r
- \r
+\r
@param MenuIndex Menu index which user select in the terminal menu list.\r
- \r
+\r
@retval EFI_SUCCESS The function complete successfully.\r
- @return The EFI variable can not be saved. See gRT->SetVariable for detail return information. \r
+ @return The EFI variable can not be saved. See gRT->SetVariable for detail return information.\r
**/\r
EFI_STATUS\r
Var_UpdateOutOfBandOption (\r
);\r
\r
/**\r
- This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM, \r
+ This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM,\r
this EFI Variable is deleted.\r
It also update the BMM context data specified the "BootNext" value.\r
\r
);\r
\r
/**\r
- This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh \r
+ This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh\r
BootOptionMenu with the new "BootOrder" list.\r
\r
@param CallbackData The BMM context data.\r
\r
/**\r
Clean up the dynamic opcode at label and form specified by\r
- both LabelId. \r
+ both LabelId.\r
\r
@param LabelId It is both the Form ID and Label ID for\r
opcode deletion.\r
\r
@param VarName A Null-terminated Unicode string that is\r
the name of the vendor's variable.\r
- \r
+\r
@param VarGuid A unique identifier for the vendor.\r
\r
@retval EFI_SUCCESS The variable was found and removed\r
);\r
\r
/**\r
- Get a string from the Data Hub record based on \r
+ Get a string from the Data Hub record based on\r
a device path.\r
\r
@param DevPath The device Path.\r
\r
@param CallbackData The BMM context data.\r
\r
-**/ \r
-VOID \r
+**/\r
+VOID\r
GetConsoleInCheck (\r
IN BMM_CALLBACK_DATA *CallbackData\r
);\r
\r
@param CallbackData The BMM context data.\r
\r
-**/ \r
+**/\r
VOID\r
GetConsoleErrCheck (\r
IN BMM_CALLBACK_DATA *CallbackData\r
\r
/**\r
This function will change video resolution and text mode\r
- according to defined setup mode or defined boot mode \r
+ according to defined setup mode or defined boot mode\r
\r
- @param IsSetupMode Indicate mode is changed to setup mode or boot mode. \r
+ @param IsSetupMode Indicate mode is changed to setup mode or boot mode.\r
\r
@retval EFI_SUCCESS Mode is changed successfully.\r
@retval Others Mode failed to be changed.\r
\r
@param[in] This Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.\r
@param[in] Configuration A null-terminated Unicode string in\r
- <ConfigString> format. \r
+ <ConfigString> format.\r
@param[out] Progress A pointer to a string filled in with the\r
offset of the most recent '&' before the\r
first failing name / value pair (or the\r
successful.\r
\r
@retval EFI_SUCCESS The results have been distributed or are\r
- awaiting distribution. \r
+ awaiting distribution.\r
@retval EFI_OUT_OF_RESOURCES Not enough memory to store the\r
parts of the results that must be\r
stored awaiting possible future\r
@retval FALSE Not exit caller function.\r
\r
**/\r
-BOOLEAN \r
+BOOLEAN\r
EFIAPI\r
CreateBootOptionFromFile (\r
IN EFI_DEVICE_PATH_PROTOCOL *FilePath\r
@retval TRUE Exit caller function.\r
@retval FALSE Not exit caller function.\r
**/\r
-BOOLEAN \r
+BOOLEAN\r
EFIAPI\r
CreateDriverOptionFromFile (\r
IN EFI_DEVICE_PATH_PROTOCOL *FilePath\r
\r
@retval TRUE Exit caller function.\r
@retval FALSE Not exit caller function.\r
- \r
+\r
**/\r
-BOOLEAN \r
+BOOLEAN\r
EFIAPI\r
BootFromFile (\r
IN EFI_DEVICE_PATH_PROTOCOL *FilePath\r