TianoCore EDK2 master
|
#include "BootManager.h"
Go to the source code of this file.
Variables | |
UINT16 | mKeyInput |
EFI_GUID | mBootManagerGuid = BOOT_MANAGER_FORMSET_GUID |
UINT32 | mBmBootHorizontalResolution = 0 |
UINT32 | mBmBootVerticalResolution = 0 |
UINT32 | mBmBootTextModeColumn = 0 |
UINT32 | mBmBootTextModeRow = 0 |
UINT32 | mBmSetupTextModeColumn = 0 |
UINT32 | mBmSetupTextModeRow = 0 |
UINT32 | mBmSetupHorizontalResolution = 0 |
UINT32 | mBmSetupVerticalResolution = 0 |
BOOLEAN | mBmModeInitialized = FALSE |
CHAR16 * | mDeviceTypeStr [] |
HII_VENDOR_DEVICE_PATH | mBootManagerHiiVendorDevicePath |
BOOT_MANAGER_CALLBACK_DATA | gBootManagerPrivate |
The boot manager reference implementation
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BootManager.c.
CHAR16 * BmDevicePathToStr | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevPath | ) |
This function converts an input device structure to a Unicode string.
DevPath | A pointer to the device path structure. |
Definition at line 441 of file BootManager.c.
VOID BmInitialBootModeInfo | ( | VOID | ) |
Initial the boot mode related parameters.
Definition at line 703 of file BootManager.c.
EFI_STATUS BmSetConsoleMode | ( | BOOLEAN | IsSetupMode | ) |
This function will change video resolution and text mode according to defined setup mode or defined boot mode
IsSetupMode | Indicate mode is changed to setup mode or boot mode. |
EFI_SUCCESS | Mode is changed successfully. |
Others | Mode failed to be changed. |
Definition at line 89 of file BootManager.c.
VOID BmSetupResetReminder | ( | VOID | ) |
Check whether a reset is needed,if reset is needed, Popup a menu to notice user.
Definition at line 303 of file BootManager.c.
EFI_STATUS EFIAPI BootManagerCallback | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
IN EFI_BROWSER_ACTION | Action, | ||
IN EFI_QUESTION_ID | QuestionId, | ||
IN UINT8 | Type, | ||
IN EFI_IFR_TYPE_VALUE * | Value, | ||
OUT EFI_BROWSER_ACTION_REQUEST * | ActionRequest | ||
) |
This call back function is registered with Boot Manager formset. When user selects a boot option, this call back function will be triggered. The boot option is saved for later processing.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Action | Specifies the type of action taken by the browser. |
QuestionId | A unique value which is sent to the original exporting driver so that it can identify the type of data to expect. |
Type | The type of value for the question. |
Value | A pointer to the data being sent to the original exporting driver. |
ActionRequest | On return, points to the action requested by the callback function. |
EFI_SUCCESS | The callback successfully handled the action. |
EFI_INVALID_PARAMETER | The setup browser call this function with invalid parameters. |
Definition at line 789 of file BootManager.c.
EFI_STATUS EFIAPI BootManagerExtractConfig | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
IN CONST EFI_STRING | Request, | ||
OUT EFI_STRING * | Progress, | ||
OUT EFI_STRING * | Results | ||
) |
This function allows a caller to extract the current configuration for one or more named elements from the target driver.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Request | A null-terminated Unicode string in <ConfigRequest> format. |
Progress | On return, points to a character in the Request string. Points to the string's null terminator if request was successful. Points to the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) if the request was not successful. |
Results | A null-terminated Unicode string in <ConfigAltResp> format which has all values filled in for the names in the Request string. String to be allocated by the called function. |
EFI_SUCCESS | The Results is filled with the requested values. |
EFI_OUT_OF_RESOURCES | Not enough memory to store the results. |
EFI_INVALID_PARAMETER | Request is illegal syntax, or unknown name. |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
Definition at line 650 of file BootManager.c.
EFI_STATUS EFIAPI BootManagerRouteConfig | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
IN CONST EFI_STRING | Configuration, | ||
OUT EFI_STRING * | Progress | ||
) |
This function processes the results of changes in configuration.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
Configuration | A null-terminated Unicode string in <ConfigResp> format. |
Progress | A pointer to a string filled in with the offset of the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) or the terminating NULL if all was successful. |
EFI_SUCCESS | The Results is processed successfully. |
EFI_INVALID_PARAMETER | Configuration is NULL. |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
Definition at line 683 of file BootManager.c.
EFI_STATUS EFIAPI BootManagerUiLibConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Install Boot Manager Menu driver.
ImageHandle | The image handle. |
SystemTable | The system table. |
EFI_SUCEESS | Install Boot manager menu success. |
Other | Return error status. |
Definition at line 871 of file BootManager.c.
EFI_STATUS EFIAPI BootManagerUiLibDestructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Unloads the application and its installed protocol.
[in] | ImageHandle | Handle that identifies the image to be unloaded. |
[in] | SystemTable | System Table |
EFI_SUCCESS | The image has been unloaded. |
Definition at line 919 of file BootManager.c.
VOID GroupMultipleLegacyBootOption4SameType | ( | VOID | ) |
Group the legacy boot options in the BootOption.
The routine assumes the boot options in the beginning that covers all the device types are ordered properly and re-position the following boot options just after the corresponding boot options with the same device type. For example:
Definition at line 358 of file BootManager.c.
VOID UpdateBootManager | ( | VOID | ) |
This function invokes Boot Manager. It then enumerate all boot options. If a boot option from the Boot Manager page is selected, Boot Manager will boot from this boot option.
Definition at line 475 of file BootManager.c.
BOOT_MANAGER_CALLBACK_DATA gBootManagerPrivate |
Definition at line 67 of file BootManager.c.
UINT32 mBmBootHorizontalResolution = 0 |
Definition at line 16 of file BootManager.c.
UINT32 mBmBootTextModeColumn = 0 |
Definition at line 18 of file BootManager.c.
UINT32 mBmBootTextModeRow = 0 |
Definition at line 19 of file BootManager.c.
UINT32 mBmBootVerticalResolution = 0 |
Definition at line 17 of file BootManager.c.
BOOLEAN mBmModeInitialized = FALSE |
Definition at line 28 of file BootManager.c.
UINT32 mBmSetupHorizontalResolution = 0 |
Definition at line 25 of file BootManager.c.
UINT32 mBmSetupTextModeColumn = 0 |
Definition at line 23 of file BootManager.c.
UINT32 mBmSetupTextModeRow = 0 |
Definition at line 24 of file BootManager.c.
UINT32 mBmSetupVerticalResolution = 0 |
Definition at line 26 of file BootManager.c.
EFI_GUID mBootManagerGuid = BOOT_MANAGER_FORMSET_GUID |
Definition at line 12 of file BootManager.c.
HII_VENDOR_DEVICE_PATH mBootManagerHiiVendorDevicePath |
Definition at line 41 of file BootManager.c.
CHAR16* mDeviceTypeStr[] |
Definition at line 30 of file BootManager.c.
UINT16 mKeyInput |
Definition at line 11 of file BootManager.c.