TianoCore EDK2 master
|
#include "BootMaintenanceManager.h"
Go to the source code of this file.
Macros | |
#define | MAX_CHAR 480 |
Functions | |
VOID | BmmSetupResetReminder (VOID) |
BM_MENU_ENTRY * | BOpt_CreateMenuEntry (UINTN MenuType) |
VOID | BOpt_DestroyMenuEntry (BM_MENU_ENTRY *MenuEntry) |
BM_MENU_ENTRY * | BOpt_GetMenuEntry (BM_MENU_OPTION *MenuOption, UINTN MenuNumber) |
VOID | BOpt_FreeMenu (BM_MENU_OPTION *FreeMenu) |
EFI_STATUS | BOpt_GetBootOptions (IN BMM_CALLBACK_DATA *CallbackData) |
EFI_STATUS | BOpt_FindDrivers (VOID) |
UINT16 | BOpt_GetOptionNumber (CHAR16 *Type) |
UINT16 | BOpt_GetBootOptionNumber (VOID) |
UINT16 | BOpt_GetDriverOptionNumber (VOID) |
EFI_STATUS | BOpt_GetDriverOptions (IN BMM_CALLBACK_DATA *CallbackData) |
VOID | GetBootOrder (IN BMM_CALLBACK_DATA *CallbackData) |
VOID | GetDriverOrder (IN BMM_CALLBACK_DATA *CallbackData) |
BOOLEAN EFIAPI | BootFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN | ReSendForm (IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN EFI_FORM_ID FormId) |
BOOLEAN EFIAPI | CreateBootOptionFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN EFIAPI | CreateDriverOptionFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
Provide boot option support for Application "BootMaint"
Include file system navigation, system handle selection
Boot option manipulation
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BootOption.c.
#define MAX_CHAR 480 |
Define the maximum characters that will be accepted.
Definition at line 18 of file BootOption.c.
VOID BmmSetupResetReminder | ( | VOID | ) |
Check whether a reset is needed, if reset is needed, Popup a menu to notice user.
Definition at line 26 of file BootOption.c.
BOOLEAN EFIAPI BootFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Boot the file specified by the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 908 of file BootOption.c.
BM_MENU_ENTRY * BOpt_CreateMenuEntry | ( | UINTN | MenuType | ) |
Create a menu entry by given menu type.
MenuType | The Menu type to be created. |
NULL | If failed to create the menu. |
Definition at line 75 of file BootOption.c.
VOID BOpt_DestroyMenuEntry | ( | BM_MENU_ENTRY * | MenuEntry | ) |
Free up all resource allocated for a BM_MENU_ENTRY.
MenuEntry | A pointer to BM_MENU_ENTRY. |
Definition at line 141 of file BootOption.c.
EFI_STATUS BOpt_FindDrivers | ( | VOID | ) |
Find drivers that will be added as Driver#### variables from handles in current system environment All valid handles in the system except those consume SimpleFs, LoadFile are stored in DriverMenu for future use.
EFI_SUCCESS | The function complets successfully. |
Definition at line 492 of file BootOption.c.
VOID BOpt_FreeMenu | ( | BM_MENU_OPTION * | FreeMenu | ) |
Free resources allocated in Allocate Rountine.
FreeMenu | Menu to be freed |
Definition at line 256 of file BootOption.c.
UINT16 BOpt_GetBootOptionNumber | ( | VOID | ) |
Get the Option Number for Boot#### that does not used.
Definition at line 644 of file BootOption.c.
EFI_STATUS BOpt_GetBootOptions | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Build the BootOptionMenu according to BootOrder Variable. This Routine will access the Boot#### to get EFI_LOAD_OPTION.
CallbackData | The BMM context data. |
Definition at line 288 of file BootOption.c.
UINT16 BOpt_GetDriverOptionNumber | ( | VOID | ) |
Get the Option Number for Driver#### that does not used.
Definition at line 659 of file BootOption.c.
EFI_STATUS BOpt_GetDriverOptions | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Build up all DriverOptionMenu
CallbackData | The BMM context data. |
EFI_SUCESS | The functin completes successfully. |
EFI_OUT_OF_RESOURCES | Not enough memory to compete the operation. |
EFI_NOT_FOUND | Fail to get "DriverOrder" variable. |
Definition at line 678 of file BootOption.c.
BM_MENU_ENTRY * BOpt_GetMenuEntry | ( | BM_MENU_OPTION * | MenuOption, |
UINTN | MenuNumber | ||
) |
Get the Menu Entry from the list in Menu Entry List.
If MenuNumber is great or equal to the number of Menu Entry in the list, then ASSERT.
MenuOption | The Menu Entry List to read the menu entry. |
MenuNumber | The index of Menu Entry. |
Definition at line 229 of file BootOption.c.
UINT16 BOpt_GetOptionNumber | ( | CHAR16 * | Type | ) |
Get the Option Number that has not been allocated for use.
Type | The type of Option. |
Definition at line 586 of file BootOption.c.
BOOLEAN EFIAPI CreateBootOptionFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Create boot option base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 994 of file BootOption.c.
BOOLEAN EFIAPI CreateDriverOptionFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Create driver option base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 1012 of file BootOption.c.
VOID GetBootOrder | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Get option number according to Boot#### and BootOrder variable. The value is saved as #### + 1.
CallbackData | The BMM context data. |
Definition at line 811 of file BootOption.c.
VOID GetDriverOrder | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Get driver option order from globalc DriverOptionMenu.
CallbackData | The BMM context data. |
Definition at line 858 of file BootOption.c.
BOOLEAN ReSendForm | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath, |
IN EFI_FORM_ID | FormId | ||
) |
Display the form base on the selected file.
FilePath | Point to the file path. |
FormId | The form need to display. |
Definition at line 963 of file BootOption.c.