/** @file\r
Header file for boot maintenance module.\r
\r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, 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
#include <Protocol/SimpleFileSystem.h>\r
#include <Protocol/SerialIo.h>\r
#include <Protocol/DevicePathToText.h>\r
+#include <Protocol/FormBrowserEx2.h>\r
\r
#include <Library/PrintLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiHiiServicesLib.h>\r
#include <Library/UefiBootManagerLib.h>\r
#include <Library/FileExplorerLib.h>\r
+#include "BootMaintenanceManagerCustomizedUi.h"\r
\r
#pragma pack(1)\r
\r
\r
/**\r
Delete Boot Option that represent a Deleted state in BootOptionMenu.\r
- After deleting this boot option, call Var_ChangeBootOrder to\r
- make sure BootOrder is in valid state.\r
\r
@retval EFI_SUCCESS If all boot load option EFI Variables corresponding to \r
BM_LOAD_CONTEXT marked for deletion is deleted\r
VOID\r
);\r
\r
-/**\r
- After any operation on Boot####, there will be a discrepancy in BootOrder.\r
- Since some are missing but in BootOrder, while some are present but are\r
- not reflected by BootOrder. Then a function rebuild BootOrder from\r
- scratch by content from BootOptionMenu is needed.\r
-\r
- @retval EFI_SUCCESS The boot order is updated successfully.\r
- @return other than EFI_SUCCESS if failed to change the "BootOrder" EFI Variable.\r
-\r
-**/\r
-EFI_STATUS\r
-Var_ChangeBootOrder (\r
- VOID\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
);\r
\r
/**\r
- Delete Load Option that represent a Deleted state in BootOptionMenu.\r
- After deleting this Driver option, call Var_ChangeDriverOrder to\r
- make sure DriverOrder is in valid state.\r
+ Delete Load Option that represent a Deleted state in DriverOptionMenu.\r
\r
@retval EFI_SUCCESS Load Option is successfully updated.\r
@return Other value than EFI_SUCCESS if failed to update "Driver Order" EFI\r
VOID\r
);\r
\r
-/**\r
- After any operation on Driver####, there will be a discrepancy in\r
- DriverOrder. Since some are missing but in DriverOrder, while some\r
- are present but are not reflected by DriverOrder. Then a function\r
- rebuild DriverOrder from scratch by content from DriverOptionMenu is\r
- needed.\r
-\r
- @retval EFI_SUCCESS The driver order is updated successfully.\r
- @return other than EFI_SUCCESS if failed to set the "DriverOrder" EFI Variable.\r
-\r
-**/\r
-EFI_STATUS\r
-Var_ChangeDriverOrder (\r
- VOID\r
- );\r
-\r
/**\r
This function delete and build multi-instance device path ConIn\r
console device.\r
IN BMM_CALLBACK_DATA *CallbackData\r
);\r
\r
-/**\r
- Create the dynamic page to allow user to set the "BootNext" vaule.\r
-\r
- @param CallbackData The BMM context data.\r
-**/\r
-VOID\r
-UpdateBootNextPage (\r
- IN BMM_CALLBACK_DATA *CallbackData\r
- );\r
-\r
-/**\r
- Create the dynamic page to allow user to set the "TimeOut" vaule.\r
-\r
- @param CallbackData The BMM context data.\r
-**/\r
-VOID\r
-UpdateTimeOutPage (\r
- IN BMM_CALLBACK_DATA *CallbackData\r
- );\r
-\r
/**\r
Create the dynamic page which allows user to set the property such as Baud Rate, Data Bits,\r
Parity, Stop Bits, Terminal Type.\r
IN BMM_FAKE_NV_DATA *CurrentFakeNVMap\r
);\r
\r
+\r
+/**\r
+ This function is to clean some useless data before submit changes.\r
+\r
+ @param Private The BMM context data.\r
+\r
+**/\r
+VOID\r
+CleanUselessBeforeSubmit (\r
+ IN BMM_CALLBACK_DATA *Private\r
+ );\r
+\r
/**\r
Dispatch the display to the next page based on NewPageId.\r
\r
\r
**/\r
EFI_STATUS\r
-EFIAPI\r
-BmmBdsSetConsoleMode (\r
+BmmSetConsoleMode (\r
BOOLEAN IsSetupMode\r
);\r
\r