TianoCore EDK2 master
|
#include "FormGuid.h"
#include <Guid/TtyTerm.h>
#include <Guid/MdeModuleHii.h>
#include <Guid/FileSystemVolumeLabelInfo.h>
#include <Guid/GlobalVariable.h>
#include <Guid/HiiBootMaintenanceFormset.h>
#include <Protocol/LoadFile.h>
#include <Protocol/HiiConfigAccess.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/SerialIo.h>
#include <Protocol/DevicePathToText.h>
#include <Protocol/FormBrowserEx2.h>
#include <Library/PrintLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/DevicePathLib.h>
#include <Library/HiiLib.h>
#include <Library/UefiHiiServicesLib.h>
#include <Library/UefiBootManagerLib.h>
#include <Library/FileExplorerLib.h>
#include "BootMaintenanceManagerCustomizedUi.h"
Go to the source code of this file.
Data Structures | |
struct | HII_VENDOR_DEVICE_PATH |
struct | COM_ATTR |
struct | BM_TERMINAL_CONTEXT |
struct | BM_LOAD_CONTEXT |
struct | BM_CONSOLE_CONTEXT |
struct | CONSOLE_OUT_MODE |
struct | BM_FILE_CONTEXT |
struct | BM_HANDLE_CONTEXT |
struct | BM_MENU_OPTION |
struct | BM_MENU_ENTRY |
struct | BMM_CALLBACK_DATA |
Macros | |
#define | VAR_CON_OUT_MODE L"ConOutMode" |
#define | VAR_FLAG EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE |
#define | BM_COM_ATTR_BUADRATE 19 |
#define | BM_COM_ATTR_DATABITS 4 |
#define | BM_COM_ATTR_PARITY 5 |
#define | BM_COM_ATTR_STOPBITS 3 |
#define | BMM_CALLBACK_DATA_SIGNATURE SIGNATURE_32 ('C', 'b', 'c', 'k') |
#define | BMM_CALLBACK_DATA_FROM_THIS(a) CR (a, BMM_CALLBACK_DATA, BmmConfigAccess, BMM_CALLBACK_DATA_SIGNATURE) |
#define | BM_MENU_OPTION_SIGNATURE SIGNATURE_32 ('m', 'e', 'n', 'u') |
#define | BM_LOAD_OPTION_SIGNATURE SIGNATURE_32 ('l', 'o', 'a', 'd') |
#define | BM_CONSOLE_OPTION_SIGNATURE SIGNATURE_32 ('c', 'n', 's', 'l') |
#define | BM_FILE_OPTION_SIGNATURE SIGNATURE_32 ('f', 'i', 'l', 'e') |
#define | BM_HANDLE_OPTION_SIGNATURE SIGNATURE_32 ('h', 'n', 'd', 'l') |
#define | BM_TERMINAL_OPTION_SIGNATURE SIGNATURE_32 ('t', 'r', 'm', 'l') |
#define | BM_MENU_ENTRY_SIGNATURE SIGNATURE_32 ('e', 'n', 't', 'r') |
#define | BM_LOAD_CONTEXT_SELECT 0x0 |
#define | BM_CONSOLE_CONTEXT_SELECT 0x1 |
#define | BM_FILE_CONTEXT_SELECT 0x2 |
#define | BM_HANDLE_CONTEXT_SELECT 0x3 |
#define | BM_TERMINAL_CONTEXT_SELECT 0x5 |
#define | BM_CONSOLE_IN_CONTEXT_SELECT 0x6 |
#define | BM_CONSOLE_OUT_CONTEXT_SELECT 0x7 |
#define | BM_CONSOLE_ERR_CONTEXT_SELECT 0x8 |
#define | UPDATE_DATA_SIZE 0x100000 |
#define | MAX_BBS_OFFSET 0xE000 |
#define | NET_OPTION_OFFSET 0xD800 |
#define | BEV_OPTION_OFFSET 0xD000 |
#define | FD_OPTION_OFFSET 0xC000 |
#define | HD_OPTION_OFFSET 0xB000 |
#define | CD_OPTION_OFFSET 0xA000 |
#define | FILE_OPTION_OFFSET 0x8000 |
#define | FILE_OPTION_MASK 0x7FFF |
#define | HANDLE_OPTION_OFFSET 0x7000 |
#define | CONSOLE_OPTION_OFFSET 0x6000 |
#define | TERMINAL_OPTION_OFFSET 0x5000 |
#define | CONFIG_OPTION_OFFSET 0x1200 |
#define | KEY_VALUE_OFFSET 0x1100 |
#define | FORM_ID_OFFSET 0x1000 |
#define | VAR_OFFSET(Field) ((UINT16) ((UINTN) &(((BMM_FAKE_NV_DATA *) 0)->Field))) |
#define | QUESTION_ID(Field) (VAR_OFFSET (Field) + CONFIG_OPTION_OFFSET) |
#define | BOOT_TIME_OUT_VAR_OFFSET VAR_OFFSET (BootTimeOut) |
#define | BOOT_NEXT_VAR_OFFSET VAR_OFFSET (BootNext) |
#define | COM1_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COM1BaudRate) |
#define | COM1_DATA_RATE_VAR_OFFSET VAR_OFFSET (COM1DataRate) |
#define | COM1_STOP_BITS_VAR_OFFSET VAR_OFFSET (COM1StopBits) |
#define | COM1_PARITY_VAR_OFFSET VAR_OFFSET (COM1Parity) |
#define | COM1_TERMINAL_VAR_OFFSET VAR_OFFSET (COM2TerminalType) |
#define | COM2_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COM2BaudRate) |
#define | COM2_DATA_RATE_VAR_OFFSET VAR_OFFSET (COM2DataRate) |
#define | COM2_STOP_BITS_VAR_OFFSET VAR_OFFSET (COM2StopBits) |
#define | COM2_PARITY_VAR_OFFSET VAR_OFFSET (COM2Parity) |
#define | COM2_TERMINAL_VAR_OFFSET VAR_OFFSET (COM2TerminalType) |
#define | DRV_ADD_HANDLE_DESC_VAR_OFFSET VAR_OFFSET (DriverAddHandleDesc) |
#define | DRV_ADD_ACTIVE_VAR_OFFSET VAR_OFFSET (DriverAddActive) |
#define | DRV_ADD_RECON_VAR_OFFSET VAR_OFFSET (DriverAddForceReconnect) |
#define | CON_IN_COM1_VAR_OFFSET VAR_OFFSET (ConsoleInputCOM1) |
#define | CON_IN_COM2_VAR_OFFSET VAR_OFFSET (ConsoleInputCOM2) |
#define | CON_OUT_COM1_VAR_OFFSET VAR_OFFSET (ConsoleOutputCOM1) |
#define | CON_OUT_COM2_VAR_OFFSET VAR_OFFSET (ConsoleOutputCOM2) |
#define | CON_ERR_COM1_VAR_OFFSET VAR_OFFSET (ConsoleErrorCOM1) |
#define | CON_ERR_COM2_VAR_OFFSET VAR_OFFSET (ConsoleErrorCOM2) |
#define | CON_MODE_VAR_OFFSET VAR_OFFSET (ConsoleOutMode) |
#define | CON_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleCheck) |
#define | CON_IN_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleInCheck) |
#define | CON_OUT_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleOutCheck) |
#define | CON_ERR_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleErrCheck) |
#define | BOOT_OPTION_ORDER_VAR_OFFSET VAR_OFFSET (BootOptionOrder) |
#define | DRIVER_OPTION_ORDER_VAR_OFFSET VAR_OFFSET (DriverOptionOrder) |
#define | BOOT_OPTION_DEL_VAR_OFFSET VAR_OFFSET (BootOptionDel) |
#define | DRIVER_OPTION_DEL_VAR_OFFSET VAR_OFFSET (DriverOptionDel) |
#define | DRIVER_ADD_OPTION_VAR_OFFSET VAR_OFFSET (DriverAddHandleOptionalData) |
#define | COM_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COMBaudRate) |
#define | COM_DATA_RATE_VAR_OFFSET VAR_OFFSET (COMDataRate) |
#define | COM_STOP_BITS_VAR_OFFSET VAR_OFFSET (COMStopBits) |
#define | COM_PARITY_VAR_OFFSET VAR_OFFSET (COMParity) |
#define | COM_TERMINAL_VAR_OFFSET VAR_OFFSET (COMTerminalType) |
#define | COM_FLOWCONTROL_VAR_OFFSET VAR_OFFSET (COMFlowControl) |
#define | BOOT_TIME_OUT_QUESTION_ID QUESTION_ID (BootTimeOut) |
#define | BOOT_NEXT_QUESTION_ID QUESTION_ID (BootNext) |
#define | COM1_BAUD_RATE_QUESTION_ID QUESTION_ID (COM1BaudRate) |
#define | COM1_DATA_RATE_QUESTION_ID QUESTION_ID (COM1DataRate) |
#define | COM1_STOP_BITS_QUESTION_ID QUESTION_ID (COM1StopBits) |
#define | COM1_PARITY_QUESTION_ID QUESTION_ID (COM1Parity) |
#define | COM1_TERMINAL_QUESTION_ID QUESTION_ID (COM2TerminalType) |
#define | COM2_BAUD_RATE_QUESTION_ID QUESTION_ID (COM2BaudRate) |
#define | COM2_DATA_RATE_QUESTION_ID QUESTION_ID (COM2DataRate) |
#define | COM2_STOP_BITS_QUESTION_ID QUESTION_ID (COM2StopBits) |
#define | COM2_PARITY_QUESTION_ID QUESTION_ID (COM2Parity) |
#define | COM2_TERMINAL_QUESTION_ID QUESTION_ID (COM2TerminalType) |
#define | DRV_ADD_HANDLE_DESC_QUESTION_ID QUESTION_ID (DriverAddHandleDesc) |
#define | DRV_ADD_ACTIVE_QUESTION_ID QUESTION_ID (DriverAddActive) |
#define | DRV_ADD_RECON_QUESTION_ID QUESTION_ID (DriverAddForceReconnect) |
#define | CON_IN_COM1_QUESTION_ID QUESTION_ID (ConsoleInputCOM1) |
#define | CON_IN_COM2_QUESTION_ID QUESTION_ID (ConsoleInputCOM2) |
#define | CON_OUT_COM1_QUESTION_ID QUESTION_ID (ConsoleOutputCOM1) |
#define | CON_OUT_COM2_QUESTION_ID QUESTION_ID (ConsoleOutputCOM2) |
#define | CON_ERR_COM1_QUESTION_ID QUESTION_ID (ConsoleErrorCOM1) |
#define | CON_ERR_COM2_QUESTION_ID QUESTION_ID (ConsoleErrorCOM2) |
#define | CON_MODE_QUESTION_ID QUESTION_ID (ConsoleOutMode) |
#define | CON_DEVICE_QUESTION_ID QUESTION_ID (ConsoleCheck) |
#define | CON_IN_DEVICE_QUESTION_ID QUESTION_ID (ConsoleInCheck) |
#define | CON_OUT_DEVICE_QUESTION_ID QUESTION_ID (ConsoleOutCheck) |
#define | CON_ERR_DEVICE_QUESTION_ID QUESTION_ID (ConsoleErrCheck) |
#define | BOOT_OPTION_ORDER_QUESTION_ID QUESTION_ID (BootOptionOrder) |
#define | DRIVER_OPTION_ORDER_QUESTION_ID QUESTION_ID (DriverOptionOrder) |
#define | BOOT_OPTION_DEL_QUESTION_ID QUESTION_ID (BootOptionDel) |
#define | DRIVER_OPTION_DEL_QUESTION_ID QUESTION_ID (DriverOptionDel) |
#define | DRIVER_ADD_OPTION_QUESTION_ID QUESTION_ID (DriverAddHandleOptionalData) |
#define | COM_BAUD_RATE_QUESTION_ID QUESTION_ID (COMBaudRate) |
#define | COM_DATA_RATE_QUESTION_ID QUESTION_ID (COMDataRate) |
#define | COM_STOP_BITS_QUESTION_ID QUESTION_ID (COMStopBits) |
#define | COM_PARITY_QUESTION_ID QUESTION_ID (COMParity) |
#define | COM_TERMINAL_QUESTION_ID QUESTION_ID (COMTerminalType) |
#define | COM_FLOWCONTROL_QUESTION_ID QUESTION_ID (COMFlowControl) |
#define | STRING_DEPOSITORY_NUMBER 8 |
#define | NONE_BOOTNEXT_VALUE (0xFFFF + 1) |
Typedefs | |
typedef UINT8 | BBS_TYPE |
typedef enum _TYPE_OF_TERMINAL | TYPE_OF_TERMINAL |
Variables | |
EFI_GUID | mBootMaintGuid |
CHAR16 | mBootMaintStorageName [] |
UINT8 | BootMaintenanceManagerBin [] |
BM_MENU_OPTION | BootOptionMenu |
BM_MENU_OPTION | DriverOptionMenu |
BM_MENU_OPTION | ConsoleInpMenu |
BM_MENU_OPTION | ConsoleOutMenu |
BM_MENU_OPTION | ConsoleErrMenu |
BM_MENU_OPTION | DriverMenu |
BM_MENU_OPTION | TerminalMenu |
UINT16 | TerminalType [9] |
COM_ATTR | BaudRateList [19] |
COM_ATTR | DataBitsList [4] |
COM_ATTR | ParityList [5] |
COM_ATTR | StopBitsList [3] |
EFI_GUID | TerminalTypeGuid [9] |
EFI_DEVICE_PATH_PROTOCOL | EndDevicePath [] |
UINT16 | mFlowControlType [2] |
UINT32 | mFlowControlValue [2] |
VOID * | mStartOpCodeHandle |
VOID * | mEndOpCodeHandle |
EFI_IFR_GUID_LABEL * | mStartLabel |
EFI_IFR_GUID_LABEL * | mEndLabel |
BMM_CALLBACK_DATA | gBootMaintenancePrivate |
BMM_CALLBACK_DATA * | mBmmCallbackInfo |
Header file for boot maintenance module.
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BootMaintenanceManager.h.
#define BEV_OPTION_OFFSET 0xD000 |
Definition at line 133 of file BootMaintenanceManager.h.
#define BM_COM_ATTR_BUADRATE 19 |
Definition at line 74 of file BootMaintenanceManager.h.
#define BM_COM_ATTR_DATABITS 4 |
Definition at line 75 of file BootMaintenanceManager.h.
#define BM_COM_ATTR_PARITY 5 |
Definition at line 76 of file BootMaintenanceManager.h.
#define BM_COM_ATTR_STOPBITS 3 |
Definition at line 77 of file BootMaintenanceManager.h.
#define BM_CONSOLE_CONTEXT_SELECT 0x1 |
Definition at line 114 of file BootMaintenanceManager.h.
#define BM_CONSOLE_ERR_CONTEXT_SELECT 0x8 |
Definition at line 121 of file BootMaintenanceManager.h.
#define BM_CONSOLE_IN_CONTEXT_SELECT 0x6 |
Definition at line 119 of file BootMaintenanceManager.h.
#define BM_CONSOLE_OPTION_SIGNATURE SIGNATURE_32 ('c', 'n', 's', 'l') |
Definition at line 107 of file BootMaintenanceManager.h.
#define BM_CONSOLE_OUT_CONTEXT_SELECT 0x7 |
Definition at line 120 of file BootMaintenanceManager.h.
#define BM_FILE_CONTEXT_SELECT 0x2 |
Definition at line 115 of file BootMaintenanceManager.h.
#define BM_FILE_OPTION_SIGNATURE SIGNATURE_32 ('f', 'i', 'l', 'e') |
Definition at line 108 of file BootMaintenanceManager.h.
#define BM_HANDLE_CONTEXT_SELECT 0x3 |
Definition at line 116 of file BootMaintenanceManager.h.
#define BM_HANDLE_OPTION_SIGNATURE SIGNATURE_32 ('h', 'n', 'd', 'l') |
Definition at line 109 of file BootMaintenanceManager.h.
#define BM_LOAD_CONTEXT_SELECT 0x0 |
Definition at line 113 of file BootMaintenanceManager.h.
#define BM_LOAD_OPTION_SIGNATURE SIGNATURE_32 ('l', 'o', 'a', 'd') |
Definition at line 106 of file BootMaintenanceManager.h.
#define BM_MENU_ENTRY_SIGNATURE SIGNATURE_32 ('e', 'n', 't', 'r') |
Definition at line 111 of file BootMaintenanceManager.h.
#define BM_MENU_OPTION_SIGNATURE SIGNATURE_32 ('m', 'e', 'n', 'u') |
Definition at line 105 of file BootMaintenanceManager.h.
#define BM_TERMINAL_CONTEXT_SELECT 0x5 |
Definition at line 117 of file BootMaintenanceManager.h.
#define BM_TERMINAL_OPTION_SIGNATURE SIGNATURE_32 ('t', 'r', 'm', 'l') |
Definition at line 110 of file BootMaintenanceManager.h.
#define BMM_CALLBACK_DATA_FROM_THIS | ( | a | ) | CR (a, BMM_CALLBACK_DATA, BmmConfigAccess, BMM_CALLBACK_DATA_SIGNATURE) |
Definition at line 83 of file BootMaintenanceManager.h.
#define BMM_CALLBACK_DATA_SIGNATURE SIGNATURE_32 ('C', 'b', 'c', 'k') |
Definition at line 82 of file BootMaintenanceManager.h.
#define BOOT_NEXT_QUESTION_ID QUESTION_ID (BootNext) |
Definition at line 197 of file BootMaintenanceManager.h.
#define BOOT_NEXT_VAR_OFFSET VAR_OFFSET (BootNext) |
Definition at line 159 of file BootMaintenanceManager.h.
#define BOOT_OPTION_DEL_QUESTION_ID QUESTION_ID (BootOptionDel) |
Definition at line 224 of file BootMaintenanceManager.h.
#define BOOT_OPTION_DEL_VAR_OFFSET VAR_OFFSET (BootOptionDel) |
Definition at line 186 of file BootMaintenanceManager.h.
#define BOOT_OPTION_ORDER_QUESTION_ID QUESTION_ID (BootOptionOrder) |
Definition at line 222 of file BootMaintenanceManager.h.
#define BOOT_OPTION_ORDER_VAR_OFFSET VAR_OFFSET (BootOptionOrder) |
Definition at line 184 of file BootMaintenanceManager.h.
#define BOOT_TIME_OUT_QUESTION_ID QUESTION_ID (BootTimeOut) |
Definition at line 196 of file BootMaintenanceManager.h.
#define BOOT_TIME_OUT_VAR_OFFSET VAR_OFFSET (BootTimeOut) |
Definition at line 158 of file BootMaintenanceManager.h.
#define CD_OPTION_OFFSET 0xA000 |
Definition at line 136 of file BootMaintenanceManager.h.
#define COM1_BAUD_RATE_QUESTION_ID QUESTION_ID (COM1BaudRate) |
Definition at line 198 of file BootMaintenanceManager.h.
#define COM1_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COM1BaudRate) |
Definition at line 160 of file BootMaintenanceManager.h.
#define COM1_DATA_RATE_QUESTION_ID QUESTION_ID (COM1DataRate) |
Definition at line 199 of file BootMaintenanceManager.h.
#define COM1_DATA_RATE_VAR_OFFSET VAR_OFFSET (COM1DataRate) |
Definition at line 161 of file BootMaintenanceManager.h.
#define COM1_PARITY_QUESTION_ID QUESTION_ID (COM1Parity) |
Definition at line 201 of file BootMaintenanceManager.h.
#define COM1_PARITY_VAR_OFFSET VAR_OFFSET (COM1Parity) |
Definition at line 163 of file BootMaintenanceManager.h.
#define COM1_STOP_BITS_QUESTION_ID QUESTION_ID (COM1StopBits) |
Definition at line 200 of file BootMaintenanceManager.h.
#define COM1_STOP_BITS_VAR_OFFSET VAR_OFFSET (COM1StopBits) |
Definition at line 162 of file BootMaintenanceManager.h.
#define COM1_TERMINAL_QUESTION_ID QUESTION_ID (COM2TerminalType) |
Definition at line 202 of file BootMaintenanceManager.h.
#define COM1_TERMINAL_VAR_OFFSET VAR_OFFSET (COM2TerminalType) |
Definition at line 164 of file BootMaintenanceManager.h.
#define COM2_BAUD_RATE_QUESTION_ID QUESTION_ID (COM2BaudRate) |
Definition at line 203 of file BootMaintenanceManager.h.
#define COM2_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COM2BaudRate) |
Definition at line 165 of file BootMaintenanceManager.h.
#define COM2_DATA_RATE_QUESTION_ID QUESTION_ID (COM2DataRate) |
Definition at line 204 of file BootMaintenanceManager.h.
#define COM2_DATA_RATE_VAR_OFFSET VAR_OFFSET (COM2DataRate) |
Definition at line 166 of file BootMaintenanceManager.h.
#define COM2_PARITY_QUESTION_ID QUESTION_ID (COM2Parity) |
Definition at line 206 of file BootMaintenanceManager.h.
#define COM2_PARITY_VAR_OFFSET VAR_OFFSET (COM2Parity) |
Definition at line 168 of file BootMaintenanceManager.h.
#define COM2_STOP_BITS_QUESTION_ID QUESTION_ID (COM2StopBits) |
Definition at line 205 of file BootMaintenanceManager.h.
#define COM2_STOP_BITS_VAR_OFFSET VAR_OFFSET (COM2StopBits) |
Definition at line 167 of file BootMaintenanceManager.h.
#define COM2_TERMINAL_QUESTION_ID QUESTION_ID (COM2TerminalType) |
Definition at line 207 of file BootMaintenanceManager.h.
#define COM2_TERMINAL_VAR_OFFSET VAR_OFFSET (COM2TerminalType) |
Definition at line 169 of file BootMaintenanceManager.h.
#define COM_BAUD_RATE_QUESTION_ID QUESTION_ID (COMBaudRate) |
Definition at line 227 of file BootMaintenanceManager.h.
#define COM_BAUD_RATE_VAR_OFFSET VAR_OFFSET (COMBaudRate) |
Definition at line 189 of file BootMaintenanceManager.h.
#define COM_DATA_RATE_QUESTION_ID QUESTION_ID (COMDataRate) |
Definition at line 228 of file BootMaintenanceManager.h.
#define COM_DATA_RATE_VAR_OFFSET VAR_OFFSET (COMDataRate) |
Definition at line 190 of file BootMaintenanceManager.h.
#define COM_FLOWCONTROL_QUESTION_ID QUESTION_ID (COMFlowControl) |
Definition at line 232 of file BootMaintenanceManager.h.
#define COM_FLOWCONTROL_VAR_OFFSET VAR_OFFSET (COMFlowControl) |
Definition at line 194 of file BootMaintenanceManager.h.
#define COM_PARITY_QUESTION_ID QUESTION_ID (COMParity) |
Definition at line 230 of file BootMaintenanceManager.h.
#define COM_PARITY_VAR_OFFSET VAR_OFFSET (COMParity) |
Definition at line 192 of file BootMaintenanceManager.h.
#define COM_STOP_BITS_QUESTION_ID QUESTION_ID (COMStopBits) |
Definition at line 229 of file BootMaintenanceManager.h.
#define COM_STOP_BITS_VAR_OFFSET VAR_OFFSET (COMStopBits) |
Definition at line 191 of file BootMaintenanceManager.h.
#define COM_TERMINAL_QUESTION_ID QUESTION_ID (COMTerminalType) |
Definition at line 231 of file BootMaintenanceManager.h.
#define COM_TERMINAL_VAR_OFFSET VAR_OFFSET (COMTerminalType) |
Definition at line 193 of file BootMaintenanceManager.h.
#define CON_DEVICE_QUESTION_ID QUESTION_ID (ConsoleCheck) |
Definition at line 218 of file BootMaintenanceManager.h.
#define CON_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleCheck) |
Definition at line 180 of file BootMaintenanceManager.h.
#define CON_ERR_COM1_QUESTION_ID QUESTION_ID (ConsoleErrorCOM1) |
Definition at line 215 of file BootMaintenanceManager.h.
#define CON_ERR_COM1_VAR_OFFSET VAR_OFFSET (ConsoleErrorCOM1) |
Definition at line 177 of file BootMaintenanceManager.h.
#define CON_ERR_COM2_QUESTION_ID QUESTION_ID (ConsoleErrorCOM2) |
Definition at line 216 of file BootMaintenanceManager.h.
#define CON_ERR_COM2_VAR_OFFSET VAR_OFFSET (ConsoleErrorCOM2) |
Definition at line 178 of file BootMaintenanceManager.h.
#define CON_ERR_DEVICE_QUESTION_ID QUESTION_ID (ConsoleErrCheck) |
Definition at line 221 of file BootMaintenanceManager.h.
#define CON_ERR_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleErrCheck) |
Definition at line 183 of file BootMaintenanceManager.h.
#define CON_IN_COM1_QUESTION_ID QUESTION_ID (ConsoleInputCOM1) |
Definition at line 211 of file BootMaintenanceManager.h.
#define CON_IN_COM1_VAR_OFFSET VAR_OFFSET (ConsoleInputCOM1) |
Definition at line 173 of file BootMaintenanceManager.h.
#define CON_IN_COM2_QUESTION_ID QUESTION_ID (ConsoleInputCOM2) |
Definition at line 212 of file BootMaintenanceManager.h.
#define CON_IN_COM2_VAR_OFFSET VAR_OFFSET (ConsoleInputCOM2) |
Definition at line 174 of file BootMaintenanceManager.h.
#define CON_IN_DEVICE_QUESTION_ID QUESTION_ID (ConsoleInCheck) |
Definition at line 219 of file BootMaintenanceManager.h.
#define CON_IN_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleInCheck) |
Definition at line 181 of file BootMaintenanceManager.h.
#define CON_MODE_QUESTION_ID QUESTION_ID (ConsoleOutMode) |
Definition at line 217 of file BootMaintenanceManager.h.
#define CON_MODE_VAR_OFFSET VAR_OFFSET (ConsoleOutMode) |
Definition at line 179 of file BootMaintenanceManager.h.
#define CON_OUT_COM1_QUESTION_ID QUESTION_ID (ConsoleOutputCOM1) |
Definition at line 213 of file BootMaintenanceManager.h.
#define CON_OUT_COM1_VAR_OFFSET VAR_OFFSET (ConsoleOutputCOM1) |
Definition at line 175 of file BootMaintenanceManager.h.
#define CON_OUT_COM2_QUESTION_ID QUESTION_ID (ConsoleOutputCOM2) |
Definition at line 214 of file BootMaintenanceManager.h.
#define CON_OUT_COM2_VAR_OFFSET VAR_OFFSET (ConsoleOutputCOM2) |
Definition at line 176 of file BootMaintenanceManager.h.
#define CON_OUT_DEVICE_QUESTION_ID QUESTION_ID (ConsoleOutCheck) |
Definition at line 220 of file BootMaintenanceManager.h.
#define CON_OUT_DEVICE_VAR_OFFSET VAR_OFFSET (ConsoleOutCheck) |
Definition at line 182 of file BootMaintenanceManager.h.
#define CONFIG_OPTION_OFFSET 0x1200 |
Definition at line 142 of file BootMaintenanceManager.h.
#define CONSOLE_OPTION_OFFSET 0x6000 |
Definition at line 140 of file BootMaintenanceManager.h.
#define DRIVER_ADD_OPTION_QUESTION_ID QUESTION_ID (DriverAddHandleOptionalData) |
Definition at line 226 of file BootMaintenanceManager.h.
#define DRIVER_ADD_OPTION_VAR_OFFSET VAR_OFFSET (DriverAddHandleOptionalData) |
Definition at line 188 of file BootMaintenanceManager.h.
#define DRIVER_OPTION_DEL_QUESTION_ID QUESTION_ID (DriverOptionDel) |
Definition at line 225 of file BootMaintenanceManager.h.
#define DRIVER_OPTION_DEL_VAR_OFFSET VAR_OFFSET (DriverOptionDel) |
Definition at line 187 of file BootMaintenanceManager.h.
#define DRIVER_OPTION_ORDER_QUESTION_ID QUESTION_ID (DriverOptionOrder) |
Definition at line 223 of file BootMaintenanceManager.h.
#define DRIVER_OPTION_ORDER_VAR_OFFSET VAR_OFFSET (DriverOptionOrder) |
Definition at line 185 of file BootMaintenanceManager.h.
#define DRV_ADD_ACTIVE_QUESTION_ID QUESTION_ID (DriverAddActive) |
Definition at line 209 of file BootMaintenanceManager.h.
#define DRV_ADD_ACTIVE_VAR_OFFSET VAR_OFFSET (DriverAddActive) |
Definition at line 171 of file BootMaintenanceManager.h.
#define DRV_ADD_HANDLE_DESC_QUESTION_ID QUESTION_ID (DriverAddHandleDesc) |
Definition at line 208 of file BootMaintenanceManager.h.
#define DRV_ADD_HANDLE_DESC_VAR_OFFSET VAR_OFFSET (DriverAddHandleDesc) |
Definition at line 170 of file BootMaintenanceManager.h.
#define DRV_ADD_RECON_QUESTION_ID QUESTION_ID (DriverAddForceReconnect) |
Definition at line 210 of file BootMaintenanceManager.h.
#define DRV_ADD_RECON_VAR_OFFSET VAR_OFFSET (DriverAddForceReconnect) |
Definition at line 172 of file BootMaintenanceManager.h.
#define FD_OPTION_OFFSET 0xC000 |
Definition at line 134 of file BootMaintenanceManager.h.
#define FILE_OPTION_MASK 0x7FFF |
Definition at line 138 of file BootMaintenanceManager.h.
#define FILE_OPTION_OFFSET 0x8000 |
Definition at line 137 of file BootMaintenanceManager.h.
#define FORM_ID_OFFSET 0x1000 |
Definition at line 144 of file BootMaintenanceManager.h.
#define HANDLE_OPTION_OFFSET 0x7000 |
Definition at line 139 of file BootMaintenanceManager.h.
#define HD_OPTION_OFFSET 0xB000 |
Definition at line 135 of file BootMaintenanceManager.h.
#define KEY_VALUE_OFFSET 0x1100 |
Definition at line 143 of file BootMaintenanceManager.h.
#define MAX_BBS_OFFSET 0xE000 |
Definition at line 131 of file BootMaintenanceManager.h.
#define NET_OPTION_OFFSET 0xD800 |
Definition at line 132 of file BootMaintenanceManager.h.
#define NONE_BOOTNEXT_VALUE (0xFFFF + 1) |
Definition at line 236 of file BootMaintenanceManager.h.
#define QUESTION_ID | ( | Field | ) | (VAR_OFFSET (Field) + CONFIG_OPTION_OFFSET) |
Definition at line 156 of file BootMaintenanceManager.h.
#define STRING_DEPOSITORY_NUMBER 8 |
Definition at line 234 of file BootMaintenanceManager.h.
#define TERMINAL_OPTION_OFFSET 0x5000 |
Definition at line 141 of file BootMaintenanceManager.h.
#define UPDATE_DATA_SIZE 0x100000 |
Definition at line 126 of file BootMaintenanceManager.h.
#define VAR_CON_OUT_MODE L"ConOutMode" |
Definition at line 56 of file BootMaintenanceManager.h.
#define VAR_FLAG EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE |
Definition at line 61 of file BootMaintenanceManager.h.
#define VAR_OFFSET | ( | Field | ) | ((UINT16) ((UINTN) &(((BMM_FAKE_NV_DATA *) 0)->Field))) |
Definition at line 151 of file BootMaintenanceManager.h.
typedef UINT8 BBS_TYPE |
Definition at line 88 of file BootMaintenanceManager.h.
enum _TYPE_OF_TERMINAL |
Definition at line 90 of file BootMaintenanceManager.h.
EFI_STATUS BmmSetConsoleMode | ( | 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 125 of file BootMaintenance.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.
EFI_STATUS EFIAPI BootMaintCallback | ( | 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 function processes the results of changes in configuration.
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_OUT_OF_RESOURCES | Not enough storage is available to hold the variable and its data. |
EFI_DEVICE_ERROR | The variable could not be saved. |
EFI_UNSUPPORTED | The specified Action is not supported by the callback. |
EFI_INVALID_PARAMETER | The parameter of Value or ActionRequest is invalid. |
Definition at line 1096 of file BootMaintenance.c.
EFI_STATUS EFIAPI BootMaintExtractConfig | ( | 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 NULL, illegal syntax, or unknown name. |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
Definition at line 661 of file BootMaintenance.c.
EFI_STATUS EFIAPI BootMaintRouteConfig | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, |
IN CONST EFI_STRING | Configuration, | ||
OUT EFI_STRING * | Progress | ||
) |
This function applies changes in a driver's configuration. Input is a Configuration, which has the routing data for this driver followed by name / value configuration pairs. The driver must apply those pairs to its configurable storage. If the driver's configuration is stored in a linear block of data and the driver's name / value pairs are in <BlockConfig> format, it may use the ConfigToBlock helper function (above) to simplify the job. Currently not implemented.
[in] | This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. |
[in] | Configuration | A null-terminated Unicode string in <ConfigString> format. |
[out] | Progress | A pointer to a string filled in with the offset of the most recent '&' before the first failing name / value pair (or the beginn ing 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 have been distributed or are awaiting distribution. |
EFI_OUT_OF_RESOURCES | Not enough memory to store the parts of the results that must be stored awaiting possible future protocols. |
EFI_INVALID_PARAMETERS | Passing in a NULL for the Results parameter would result in this type of error. |
EFI_NOT_FOUND | Target for the specified routing data was not found. |
Definition at line 774 of file BootMaintenance.c.
BM_MENU_ENTRY * BOpt_CreateMenuEntry | ( | UINTN | MenuType | ) |
Create a menu entry give a Menu type.
MenuType | The Menu type to be created. |
NULL | If failed to create the menu. |
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. |
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_OUT_OF_RESOURCES | Not enough memory to compete the operation. |
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.
EFI_STATUS ChangeTerminalDevicePath | ( | IN OUT EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
IN BOOLEAN | ChangeTerminal | ||
) |
Update the multi-instance device path of Terminal Device based on the global TerminalMenu. If ChangeTernimal is TRUE, the terminal device path in the Terminal Device in TerminalMenu is also updated.
DevicePath | The multi-instance device path. |
ChangeTerminal | TRUE, then device path in the Terminal Device in TerminalMenu is also updated; FALSE, no update. |
Definition at line 108 of file ConsoleOption.c.
VOID ChangeVariableDevicePath | ( | IN OUT EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Update the device path that describing a terminal device based on the new BaudRate, Data Bits, parity and Stop Bits set.
DevicePath | The devicepath protocol instance wanted to be updated. |
Update the device path that describing a terminal device based on the new BaudRate, Data Bits, parity and Stop Bits set.
DevicePath | terminal device's path |
Definition at line 222 of file ConsoleOption.c.
VOID CleanUpPage | ( | IN UINT16 | LabelId, |
IN BMM_CALLBACK_DATA * | CallbackData | ||
) |
Clean up the dynamic opcode at label and form specified by both LabelId.
LabelId | It is both the Form ID and Label ID for opcode deletion. |
CallbackData | The BMM context data. |
Definition at line 165 of file UpdatePage.c.
VOID CleanUselessBeforeSubmit | ( | IN BMM_CALLBACK_DATA * | Private | ) |
This function is to clean some useless data before submit changes.
Private | The BMM context data. |
Definition at line 1410 of file BootMaintenance.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 CreateUpdateData | ( | VOID | ) |
Create the global UpdateData structure.
Definition at line 16 of file UpdatePage.c.
VOID DiscardChangeHandler | ( | IN BMM_CALLBACK_DATA * | Private, |
IN BMM_FAKE_NV_DATA * | CurrentFakeNVMap | ||
) |
Discard all changes done to the BMM pages such as Boot Order change, Driver order change.
Private | The BMM context data. |
CurrentFakeNVMap | The current Fack NV Map. |
Definition at line 1351 of file BootMaintenance.c.
UINTN EfiDevicePathInstanceCount | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
EFI_STATUS EfiLibDeleteVariable | ( | IN CHAR16 * | VarName, |
IN EFI_GUID * | VarGuid | ||
) |
Function deletes the variable specified by VarName and VarGuid.
VarName | A Null-terminated Unicode string that is the name of the vendor's variable. |
VarGuid | A unique identifier for the vendor. |
EFI_SUCCESS | The variable was found and removed |
EFI_UNSUPPORTED | The variable store was inaccessible |
EFI_OUT_OF_RESOURCES | The temporary buffer was not available |
EFI_NOT_FOUND | The variable was not found |
Function deletes the variable specified by VarName and VarGuid.
VarName | A Null-terminated Unicode string that is the name of the vendor's variable. |
VarGuid | A unique identifier for the vendor. |
EFI_SUCCESS | The variable was found and removed |
EFI_UNSUPPORTED | The variable store was inaccessible |
EFI_NOT_FOUND | The variable was not found |
UINT16 * EfiLibStrFromDatahub | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevPath | ) |
CHAR16 * ExtractFileNameFromDevicePath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Extract filename from device path. The returned buffer is allocated using AllocateCopyPool. The caller is responsible for freeing the allocated buffer using FreePool().
DevicePath | Device path. |
Extract filename from device path. The returned buffer is allocated using AllocateCopyPool. The caller is responsible for freeing the allocated buffer using FreePool(). If return NULL means not enough memory resource.
DevicePath | Device path. |
NULL | Not enough memory resource for AllocateCopyPool. |
Other | A new allocated string that represents the file name. |
Extract filename from device path. The returned buffer is allocated using AllocateCopyPool. The caller is responsible for freeing the allocated buffer using FreePool(). If return NULL means not enough memory resource.
DevicePath | Device path. |
NULL | Not enough memory resourece for AllocateCopyPool. |
Other | A new allocated string that represents the file name. |
Definition at line 379 of file BootMaintenance.c.
EFI_STATUS FreeAllConsoles | ( | VOID | ) |
Free ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
EFI_SUCCESS | The function always complete successfully. |
Definition at line 876 of file ConsoleOption.c.
VOID FreeBMPackage | ( | VOID | ) |
Remove the installed BootMaint and FileExplorer HiiPackages.
EFI_STATUS GetAllConsoles | ( | VOID | ) |
Build up ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
EFI_SUCCESS | The function always complete successfully. |
Definition at line 860 of file ConsoleOption.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 GetConsoleErrCheck | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Initialize standard error output device check box to ConsoleErrCheck[MAX_MENU_NUMBER] in BMM_FAKE_NV_DATA structure.
CallbackData | The BMM context data. |
Definition at line 1093 of file ConsoleOption.c.
VOID GetConsoleInCheck | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Initialize console input device check box to ConsoleInCheck[MAX_MENU_NUMBER] in BMM_FAKE_NV_DATA structure.
CallbackData | The BMM context data. |
Definition at line 1018 of file ConsoleOption.c.
VOID GetConsoleOutCheck | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Initialize console output device check box to ConsoleOutCheck[MAX_MENU_NUMBER] in BMM_FAKE_NV_DATA structure.
CallbackData | The BMM context data. |
Definition at line 1056 of file ConsoleOption.c.
VOID GetConsoleOutMode | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Get mode number according to column and row
CallbackData | The BMM context data. |
Definition at line 980 of file ConsoleOption.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.
VOID * GetLegacyBootOptionVar | ( | IN UINTN | DeviceType, |
OUT UINTN * | OptionIndex, | ||
OUT UINTN * | OptionSize | ||
) |
Get the index number (#### in Boot####) for the boot option pointed to a BBS legacy device type specified by DeviceType.
DeviceType | The legacy device type. It can be floppy, network, harddisk, cdrom, etc. |
OptionIndex | Returns the index number (#### in Boot####). |
OptionSize | Return the size of the Boot### variable. |
VOID GetTerminalAttribute | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Initialize terminal attributes (baudrate, data rate, stop bits, parity and terminal type) to BMM_FAKE_NV_DATA structure.
CallbackData | The BMM context data. |
Definition at line 1130 of file ConsoleOption.c.
VOID InitBootMaintenance | ( | VOID | ) |
Install BootMaint and FileExplorer HiiPackages.
EFI_STATUS LocateSerialIo | ( | VOID | ) |
Build a list containing all serial devices.
EFI_SUCCESS | The function complete successfully. |
EFI_UNSUPPORTED | No serial ports present. |
Definition at line 405 of file ConsoleOption.c.
VOID RefreshUpdateData | ( | VOID | ) |
Refresh the global UpdateData structure.
Definition at line 48 of file UpdatePage.c.
CHAR16 * UiDevicePathToStr | ( | 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 342 of file BootMaintenance.c.
VOID UpdateBootDelPage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Create a lit of boot option from global BootOptionMenu. It allow user to delete the boot option.
CallbackData | The BMM context data. |
Create a list of boot option from global BootOptionMenu. It allow user to delete the boot option.
CallbackData | The BMM context data. |
Definition at line 227 of file UpdatePage.c.
VOID UpdateConCOMPage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Create a list of Goto Opcode for all terminal devices logged by TerminaMenu. This list will be inserted to form FORM_CON_COM_SETUP_ID.
CallbackData | The BMM context data. |
Definition at line 192 of file UpdatePage.c.
VOID UpdateConModePage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Refresh the text mode page
CallbackData | The BMM context data. |
Refresh the text mode page.
CallbackData | The BMM context data. |
Definition at line 678 of file UpdatePage.c.
VOID UpdateDriverAddHandleDescPage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Prepare the page to allow user to add description for a Driver Option.
CallbackData | The BMM context data. |
Definition at line 372 of file UpdatePage.c.
VOID UpdateDrvAddHandlePage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Create a lit of driver option from global DriverMenu.
CallbackData | The BMM context data. |
Definition at line 283 of file UpdatePage.c.
VOID UpdateDrvDelPage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Create a lit of driver option from global DriverOptionMenu. It allow user to delete the driver option.
CallbackData | The BMM context data. |
Definition at line 318 of file UpdatePage.c.
VOID UpdateOptionPage | ( | IN BMM_CALLBACK_DATA * | CallbackData, |
IN EFI_FORM_ID | FormId, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ||
) |
Update add boot/driver option page.
CallbackData | The BMM context data. |
FormId | The form ID to be updated. |
DevicePath | Device path. |
Definition at line 1035 of file UpdatePage.c.
VOID UpdatePageBody | ( | IN UINT16 | UpdatePageId, |
IN BMM_CALLBACK_DATA * | CallbackData | ||
) |
Dispatch the correct update page function to call based on the UpdatePageId.
UpdatePageId | The form ID. |
CallbackData | The BMM context data. |
Definition at line 1103 of file UpdatePage.c.
VOID UpdatePageId | ( | BMM_CALLBACK_DATA * | Private, |
UINT16 | NewPageId | ||
) |
Dispatch the display to the next page based on NewPageId.
Private | The BMM context data. |
NewPageId | The original page ID. |
Definition at line 1143 of file UpdatePage.c.
VOID UpdateTerminalPage | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Create the dynamic page which allows user to set the property such as Baud Rate, Data Bits, Parity, Stop Bits, Terminal Type.
CallbackData | The BMM context data. |
Definition at line 805 of file UpdatePage.c.
EFI_STATUS Var_DelBootOption | ( | VOID | ) |
Delete Boot Option that represent a Deleted state in BootOptionMenu.
EFI_SUCCESS | If all boot load option EFI Variables corresponding to BM_LOAD_CONTEXT marked for deletion is deleted |
Delete Boot Option that represent a Deleted state in BootOptionMenu.
EFI_SUCCESS | If all boot load option EFI Variables corresponding to BM_LOAD_CONTEXT marked for deletion is deleted. |
EFI_NOT_FOUND | If can not find the boot option want to be deleted. |
Definition at line 21 of file Variable.c.
EFI_STATUS Var_DelDriverOption | ( | VOID | ) |
Delete Load Option that represent a Deleted state in DriverOptionMenu.
EFI_SUCCESS | Load Option is successfully updated. |
Delete Load Option that represent a Deleted state in DriverOptionMenu.
EFI_SUCCESS | Load Option is successfully updated. |
EFI_NOT_FOUND | Fail to find the driver option want to be deleted. |
Definition at line 78 of file Variable.c.
EFI_STATUS Var_UpdateBootNext | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM, this EFI Variable is deleted. It also update the BMM context data specified the "BootNext" value.
CallbackData | The BMM context data. |
EFI_SUCCESS | The function complete successfully. |
This function update the "BootNext" EFI Variable. If there is no "BootNext" specified in BMM, this EFI Variable is deleted. It also update the BMM context data specified the "BootNext" vaule.
CallbackData | The BMM context data. |
EFI_SUCCESS | The function complete successfully. |
Definition at line 533 of file Variable.c.
EFI_STATUS Var_UpdateBootOption | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
This function create a currently loaded Boot Option from the BMM. It then appends this Boot Option to the end of the "BootOrder" list. It also append this Boot Opotion to the end of BootOptionMenu.
CallbackData | The BMM context data. |
EFI_OUT_OF_RESOURCES | If not enought memory to complete the operation. |
EFI_SUCCESS | If function completes successfully. |
This function create a currently loaded Boot Option from the BMM. It then appends this Boot Option to the end of the "BootOrder" list. It also append this Boot Opotion to the end of BootOptionMenu.
CallbackData | The BMM context data. |
other | Contain some errors when excuting this function. See function EfiBootManagerInitializeLoadOption/EfiBootManagerAddLoadOptionVariabl for detail return information. |
EFI_SUCCESS | If function completes successfully. |
Definition at line 414 of file Variable.c.
EFI_STATUS Var_UpdateBootOrder | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh BootOptionMenu with the new "BootOrder" list.
CallbackData | The BMM context data. |
EFI_SUCCESS | The function complete successfully. |
EFI_OUT_OF_RESOURCES | Not enough memory to complete the function. |
This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh BootOptionMenu with the new "BootOrder" list.
CallbackData | The BMM context data. |
EFI_SUCCESS | The function complete successfully. |
EFI_OUT_OF_RESOURCES | Not enough memory to complete the function. |
Definition at line 590 of file Variable.c.
EFI_STATUS Var_UpdateConMode | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
Update the Text Mode of Console.
CallbackData | The context data for BMM. |
EFI_SUCCSS | If the Text Mode of Console is updated. |
Definition at line 714 of file Variable.c.
EFI_STATUS Var_UpdateConsoleInpOption | ( | VOID | ) |
This function delete and build multi-instance device path ConIn console device.
EFI_SUCCESS | The function complete successfully. |
Definition at line 233 of file Variable.c.
EFI_STATUS Var_UpdateConsoleOutOption | ( | VOID | ) |
This function delete and build multi-instance device path ConOut console device.
EFI_SUCCESS | The function complete successfully. |
Definition at line 248 of file Variable.c.
EFI_STATUS Var_UpdateDriverOption | ( | IN BMM_CALLBACK_DATA * | CallbackData, |
IN EFI_HII_HANDLE | HiiHandle, | ||
IN UINT16 * | DescriptionData, | ||
IN UINT16 * | OptionalData, | ||
IN UINT8 | ForceReconnect | ||
) |
This function create a currently loaded Drive Option from the BMM. It then appends this Driver Option to the end of the "DriverOrder" list. It append this Driver Opotion to the end of DriverOptionMenu.
CallbackData | The BMM context data. |
HiiHandle | The HII handle associated with the BMM formset. |
DescriptionData | The description of this driver option. |
OptionalData | The optional load option. |
ForceReconnect | If to force reconnect. |
EFI_OUT_OF_RESOURCES | If not enought memory to complete the operation. |
EFI_SUCCESS | If function completes successfully. |
This function create a currently loaded Drive Option from the BMM. It then appends this Driver Option to the end of the "DriverOrder" list. It append this Driver Opotion to the end of DriverOptionMenu.
CallbackData | The BMM context data. |
HiiHandle | The HII handle associated with the BMM formset. |
DescriptionData | The description of this driver option. |
OptionalData | The optional load option. |
ForceReconnect | If to force reconnect. |
other | Contain some errors when excuting this function.See function EfiBootManagerInitializeLoadOption/EfiBootManagerAddLoadOptionVariabl for detail return information. |
EFI_SUCCESS | If function completes successfully. |
Definition at line 289 of file Variable.c.
EFI_STATUS Var_UpdateDriverOrder | ( | IN BMM_CALLBACK_DATA * | CallbackData | ) |
This function update the "DriverOrder" EFI Variable based on BMM Formset's NV map. It then refresh DriverOptionMenu with the new "DriverOrder" list.
CallbackData | The BMM context data. |
EFI_SUCCESS | The function complete successfully. |
EFI_OUT_OF_RESOURCES | Not enough memory to complete the function. |
Definition at line 652 of file Variable.c.
EFI_STATUS Var_UpdateErrorOutOption | ( | VOID | ) |
This function delete and build multi-instance device path ErrOut console device.
EFI_SUCCESS | The function complete successfully. |
Definition at line 263 of file Variable.c.
EFI_STATUS Var_UpdateOutOfBandOption | ( | IN UINT16 | MenuIndex | ) |
This function delete and build Out of Band console device.
MenuIndex | Menu index which user select in the terminal menu list. |
EFI_SUCCESS | The function complete successfully. |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 29 of file BootMaintenance.c.
|
extern |
Definition at line 69 of file BootMaintenance.c.
|
extern |
Definition at line 80 of file BootMaintenance.c.
|
extern |
Definition at line 66 of file BootMaintenance.c.
|
extern |
Definition at line 68 of file BootMaintenance.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |