TianoCore EDK2 master
Loading...
Searching...
No Matches
BootMaintenanceManager.h File Reference

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
 

Enumerations

enum  _TYPE_OF_TERMINAL {
  TerminalTypePcAnsi = 0 , TerminalTypeVt100 , TerminalTypeVt100Plus , TerminalTypeVtUtf8 ,
  TerminalTypeTtyTerm , TerminalTypeLinux , TerminalTypeXtermR6 , TerminalTypeVt400 ,
  TerminalTypeSCO
}
 

Functions

EFI_STATUS BOpt_FindDrivers (VOID)
 
EFI_STATUS BOpt_GetBootOptions (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS BOpt_GetDriverOptions (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID BOpt_FreeMenu (BM_MENU_OPTION *FreeMenu)
 
UINT16 BOpt_GetOptionNumber (CHAR16 *Type)
 
UINT16 BOpt_GetBootOptionNumber (VOID)
 
UINT16 BOpt_GetDriverOptionNumber (VOID)
 
BM_MENU_ENTRYBOpt_CreateMenuEntry (UINTN MenuType)
 
VOID BOpt_DestroyMenuEntry (BM_MENU_ENTRY *MenuEntry)
 
BM_MENU_ENTRYBOpt_GetMenuEntry (BM_MENU_OPTION *MenuOption, UINTN MenuNumber)
 
VOID GetBootOrder (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID GetDriverOrder (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS LocateSerialIo (VOID)
 
EFI_STATUS GetAllConsoles (VOID)
 
VOID GetConsoleOutMode (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS FreeAllConsoles (VOID)
 
VOID ChangeVariableDevicePath (IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
EFI_STATUS ChangeTerminalDevicePath (IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN BOOLEAN ChangeTerminal)
 
EFI_STATUS Var_UpdateBootOption (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS Var_DelBootOption (VOID)
 
EFI_STATUS Var_UpdateDriverOption (IN BMM_CALLBACK_DATA *CallbackData, IN EFI_HII_HANDLE HiiHandle, IN UINT16 *DescriptionData, IN UINT16 *OptionalData, IN UINT8 ForceReconnect)
 
EFI_STATUS Var_DelDriverOption (VOID)
 
EFI_STATUS Var_UpdateConsoleInpOption (VOID)
 
EFI_STATUS Var_UpdateConsoleOutOption (VOID)
 
EFI_STATUS Var_UpdateErrorOutOption (VOID)
 
EFI_STATUS Var_UpdateOutOfBandOption (IN UINT16 MenuIndex)
 
EFI_STATUS Var_UpdateBootNext (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS Var_UpdateBootOrder (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS Var_UpdateDriverOrder (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS Var_UpdateConMode (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID CreateUpdateData (VOID)
 
VOID RefreshUpdateData (VOID)
 
VOID CleanUpPage (IN UINT16 LabelId, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateBootDelPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDrvAddHandlePage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDrvDelPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDriverAddHandleDescPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdatePageBody (IN UINT16 UpdatePageId, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateTerminalPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateConModePage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateConCOMPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateOptionPage (IN BMM_CALLBACK_DATA *CallbackData, IN EFI_FORM_ID FormId, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
EFI_STATUS EfiLibDeleteVariable (IN CHAR16 *VarName, IN EFI_GUID *VarGuid)
 
UINTN EfiDevicePathInstanceCount (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
UINT16 * EfiLibStrFromDatahub (IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
 
VOID * GetLegacyBootOptionVar (IN UINTN DeviceType, OUT UINTN *OptionIndex, OUT UINTN *OptionSize)
 
VOID DiscardChangeHandler (IN BMM_CALLBACK_DATA *Private, IN BMM_FAKE_NV_DATA *CurrentFakeNVMap)
 
VOID CleanUselessBeforeSubmit (IN BMM_CALLBACK_DATA *Private)
 
VOID UpdatePageId (BMM_CALLBACK_DATA *Private, UINT16 NewPageId)
 
VOID FreeBMPackage (VOID)
 
VOID InitBootMaintenance (VOID)
 
VOID GetConsoleInCheck (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID GetConsoleOutCheck (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID GetConsoleErrCheck (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID GetTerminalAttribute (IN BMM_CALLBACK_DATA *CallbackData)
 
EFI_STATUS BmmSetConsoleMode (BOOLEAN IsSetupMode)
 
CHAR16 * UiDevicePathToStr (IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
 
CHAR16 * ExtractFileNameFromDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
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)
 
EFI_STATUS EFIAPI BootMaintRouteConfig (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress)
 
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)
 
BOOLEAN EFIAPI CreateBootOptionFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI CreateDriverOptionFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI BootFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 

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_LABELmStartLabel
 
EFI_IFR_GUID_LABELmEndLabel
 
BMM_CALLBACK_DATA gBootMaintenancePrivate
 
BMM_CALLBACK_DATAmBmmCallbackInfo
 

Detailed Description

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.

Macro Definition Documentation

◆ BEV_OPTION_OFFSET

#define BEV_OPTION_OFFSET   0xD000

Definition at line 133 of file BootMaintenanceManager.h.

◆ BM_COM_ATTR_BUADRATE

#define BM_COM_ATTR_BUADRATE   19

Definition at line 74 of file BootMaintenanceManager.h.

◆ BM_COM_ATTR_DATABITS

#define BM_COM_ATTR_DATABITS   4

Definition at line 75 of file BootMaintenanceManager.h.

◆ BM_COM_ATTR_PARITY

#define BM_COM_ATTR_PARITY   5

Definition at line 76 of file BootMaintenanceManager.h.

◆ BM_COM_ATTR_STOPBITS

#define BM_COM_ATTR_STOPBITS   3

Definition at line 77 of file BootMaintenanceManager.h.

◆ BM_CONSOLE_CONTEXT_SELECT

#define BM_CONSOLE_CONTEXT_SELECT   0x1

Definition at line 114 of file BootMaintenanceManager.h.

◆ BM_CONSOLE_ERR_CONTEXT_SELECT

#define BM_CONSOLE_ERR_CONTEXT_SELECT   0x8

Definition at line 121 of file BootMaintenanceManager.h.

◆ BM_CONSOLE_IN_CONTEXT_SELECT

#define BM_CONSOLE_IN_CONTEXT_SELECT   0x6

Definition at line 119 of file BootMaintenanceManager.h.

◆ BM_CONSOLE_OPTION_SIGNATURE

#define BM_CONSOLE_OPTION_SIGNATURE   SIGNATURE_32 ('c', 'n', 's', 'l')

Definition at line 107 of file BootMaintenanceManager.h.

◆ BM_CONSOLE_OUT_CONTEXT_SELECT

#define BM_CONSOLE_OUT_CONTEXT_SELECT   0x7

Definition at line 120 of file BootMaintenanceManager.h.

◆ BM_FILE_CONTEXT_SELECT

#define BM_FILE_CONTEXT_SELECT   0x2

Definition at line 115 of file BootMaintenanceManager.h.

◆ BM_FILE_OPTION_SIGNATURE

#define BM_FILE_OPTION_SIGNATURE   SIGNATURE_32 ('f', 'i', 'l', 'e')

Definition at line 108 of file BootMaintenanceManager.h.

◆ BM_HANDLE_CONTEXT_SELECT

#define BM_HANDLE_CONTEXT_SELECT   0x3

Definition at line 116 of file BootMaintenanceManager.h.

◆ BM_HANDLE_OPTION_SIGNATURE

#define BM_HANDLE_OPTION_SIGNATURE   SIGNATURE_32 ('h', 'n', 'd', 'l')

Definition at line 109 of file BootMaintenanceManager.h.

◆ BM_LOAD_CONTEXT_SELECT

#define BM_LOAD_CONTEXT_SELECT   0x0

Definition at line 113 of file BootMaintenanceManager.h.

◆ BM_LOAD_OPTION_SIGNATURE

#define BM_LOAD_OPTION_SIGNATURE   SIGNATURE_32 ('l', 'o', 'a', 'd')

Definition at line 106 of file BootMaintenanceManager.h.

◆ BM_MENU_ENTRY_SIGNATURE

#define BM_MENU_ENTRY_SIGNATURE   SIGNATURE_32 ('e', 'n', 't', 'r')

Definition at line 111 of file BootMaintenanceManager.h.

◆ BM_MENU_OPTION_SIGNATURE

#define BM_MENU_OPTION_SIGNATURE   SIGNATURE_32 ('m', 'e', 'n', 'u')

Definition at line 105 of file BootMaintenanceManager.h.

◆ BM_TERMINAL_CONTEXT_SELECT

#define BM_TERMINAL_CONTEXT_SELECT   0x5

Definition at line 117 of file BootMaintenanceManager.h.

◆ BM_TERMINAL_OPTION_SIGNATURE

#define BM_TERMINAL_OPTION_SIGNATURE   SIGNATURE_32 ('t', 'r', 'm', 'l')

Definition at line 110 of file BootMaintenanceManager.h.

◆ BMM_CALLBACK_DATA_FROM_THIS

#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.

◆ BMM_CALLBACK_DATA_SIGNATURE

#define BMM_CALLBACK_DATA_SIGNATURE   SIGNATURE_32 ('C', 'b', 'c', 'k')

Definition at line 82 of file BootMaintenanceManager.h.

◆ BOOT_NEXT_QUESTION_ID

#define BOOT_NEXT_QUESTION_ID   QUESTION_ID (BootNext)

Definition at line 197 of file BootMaintenanceManager.h.

◆ BOOT_NEXT_VAR_OFFSET

#define BOOT_NEXT_VAR_OFFSET   VAR_OFFSET (BootNext)

Definition at line 159 of file BootMaintenanceManager.h.

◆ BOOT_OPTION_DEL_QUESTION_ID

#define BOOT_OPTION_DEL_QUESTION_ID   QUESTION_ID (BootOptionDel)

Definition at line 224 of file BootMaintenanceManager.h.

◆ BOOT_OPTION_DEL_VAR_OFFSET

#define BOOT_OPTION_DEL_VAR_OFFSET   VAR_OFFSET (BootOptionDel)

Definition at line 186 of file BootMaintenanceManager.h.

◆ BOOT_OPTION_ORDER_QUESTION_ID

#define BOOT_OPTION_ORDER_QUESTION_ID   QUESTION_ID (BootOptionOrder)

Definition at line 222 of file BootMaintenanceManager.h.

◆ BOOT_OPTION_ORDER_VAR_OFFSET

#define BOOT_OPTION_ORDER_VAR_OFFSET   VAR_OFFSET (BootOptionOrder)

Definition at line 184 of file BootMaintenanceManager.h.

◆ BOOT_TIME_OUT_QUESTION_ID

#define BOOT_TIME_OUT_QUESTION_ID   QUESTION_ID (BootTimeOut)

Definition at line 196 of file BootMaintenanceManager.h.

◆ BOOT_TIME_OUT_VAR_OFFSET

#define BOOT_TIME_OUT_VAR_OFFSET   VAR_OFFSET (BootTimeOut)

Definition at line 158 of file BootMaintenanceManager.h.

◆ CD_OPTION_OFFSET

#define CD_OPTION_OFFSET   0xA000

Definition at line 136 of file BootMaintenanceManager.h.

◆ COM1_BAUD_RATE_QUESTION_ID

#define COM1_BAUD_RATE_QUESTION_ID   QUESTION_ID (COM1BaudRate)

Definition at line 198 of file BootMaintenanceManager.h.

◆ COM1_BAUD_RATE_VAR_OFFSET

#define COM1_BAUD_RATE_VAR_OFFSET   VAR_OFFSET (COM1BaudRate)

Definition at line 160 of file BootMaintenanceManager.h.

◆ COM1_DATA_RATE_QUESTION_ID

#define COM1_DATA_RATE_QUESTION_ID   QUESTION_ID (COM1DataRate)

Definition at line 199 of file BootMaintenanceManager.h.

◆ COM1_DATA_RATE_VAR_OFFSET

#define COM1_DATA_RATE_VAR_OFFSET   VAR_OFFSET (COM1DataRate)

Definition at line 161 of file BootMaintenanceManager.h.

◆ COM1_PARITY_QUESTION_ID

#define COM1_PARITY_QUESTION_ID   QUESTION_ID (COM1Parity)

Definition at line 201 of file BootMaintenanceManager.h.

◆ COM1_PARITY_VAR_OFFSET

#define COM1_PARITY_VAR_OFFSET   VAR_OFFSET (COM1Parity)

Definition at line 163 of file BootMaintenanceManager.h.

◆ COM1_STOP_BITS_QUESTION_ID

#define COM1_STOP_BITS_QUESTION_ID   QUESTION_ID (COM1StopBits)

Definition at line 200 of file BootMaintenanceManager.h.

◆ COM1_STOP_BITS_VAR_OFFSET

#define COM1_STOP_BITS_VAR_OFFSET   VAR_OFFSET (COM1StopBits)

Definition at line 162 of file BootMaintenanceManager.h.

◆ COM1_TERMINAL_QUESTION_ID

#define COM1_TERMINAL_QUESTION_ID   QUESTION_ID (COM2TerminalType)

Definition at line 202 of file BootMaintenanceManager.h.

◆ COM1_TERMINAL_VAR_OFFSET

#define COM1_TERMINAL_VAR_OFFSET   VAR_OFFSET (COM2TerminalType)

Definition at line 164 of file BootMaintenanceManager.h.

◆ COM2_BAUD_RATE_QUESTION_ID

#define COM2_BAUD_RATE_QUESTION_ID   QUESTION_ID (COM2BaudRate)

Definition at line 203 of file BootMaintenanceManager.h.

◆ COM2_BAUD_RATE_VAR_OFFSET

#define COM2_BAUD_RATE_VAR_OFFSET   VAR_OFFSET (COM2BaudRate)

Definition at line 165 of file BootMaintenanceManager.h.

◆ COM2_DATA_RATE_QUESTION_ID

#define COM2_DATA_RATE_QUESTION_ID   QUESTION_ID (COM2DataRate)

Definition at line 204 of file BootMaintenanceManager.h.

◆ COM2_DATA_RATE_VAR_OFFSET

#define COM2_DATA_RATE_VAR_OFFSET   VAR_OFFSET (COM2DataRate)

Definition at line 166 of file BootMaintenanceManager.h.

◆ COM2_PARITY_QUESTION_ID

#define COM2_PARITY_QUESTION_ID   QUESTION_ID (COM2Parity)

Definition at line 206 of file BootMaintenanceManager.h.

◆ COM2_PARITY_VAR_OFFSET

#define COM2_PARITY_VAR_OFFSET   VAR_OFFSET (COM2Parity)

Definition at line 168 of file BootMaintenanceManager.h.

◆ COM2_STOP_BITS_QUESTION_ID

#define COM2_STOP_BITS_QUESTION_ID   QUESTION_ID (COM2StopBits)

Definition at line 205 of file BootMaintenanceManager.h.

◆ COM2_STOP_BITS_VAR_OFFSET

#define COM2_STOP_BITS_VAR_OFFSET   VAR_OFFSET (COM2StopBits)

Definition at line 167 of file BootMaintenanceManager.h.

◆ COM2_TERMINAL_QUESTION_ID

#define COM2_TERMINAL_QUESTION_ID   QUESTION_ID (COM2TerminalType)

Definition at line 207 of file BootMaintenanceManager.h.

◆ COM2_TERMINAL_VAR_OFFSET

#define COM2_TERMINAL_VAR_OFFSET   VAR_OFFSET (COM2TerminalType)

Definition at line 169 of file BootMaintenanceManager.h.

◆ COM_BAUD_RATE_QUESTION_ID

#define COM_BAUD_RATE_QUESTION_ID   QUESTION_ID (COMBaudRate)

Definition at line 227 of file BootMaintenanceManager.h.

◆ COM_BAUD_RATE_VAR_OFFSET

#define COM_BAUD_RATE_VAR_OFFSET   VAR_OFFSET (COMBaudRate)

Definition at line 189 of file BootMaintenanceManager.h.

◆ COM_DATA_RATE_QUESTION_ID

#define COM_DATA_RATE_QUESTION_ID   QUESTION_ID (COMDataRate)

Definition at line 228 of file BootMaintenanceManager.h.

◆ COM_DATA_RATE_VAR_OFFSET

#define COM_DATA_RATE_VAR_OFFSET   VAR_OFFSET (COMDataRate)

Definition at line 190 of file BootMaintenanceManager.h.

◆ COM_FLOWCONTROL_QUESTION_ID

#define COM_FLOWCONTROL_QUESTION_ID   QUESTION_ID (COMFlowControl)

Definition at line 232 of file BootMaintenanceManager.h.

◆ COM_FLOWCONTROL_VAR_OFFSET

#define COM_FLOWCONTROL_VAR_OFFSET   VAR_OFFSET (COMFlowControl)

Definition at line 194 of file BootMaintenanceManager.h.

◆ COM_PARITY_QUESTION_ID

#define COM_PARITY_QUESTION_ID   QUESTION_ID (COMParity)

Definition at line 230 of file BootMaintenanceManager.h.

◆ COM_PARITY_VAR_OFFSET

#define COM_PARITY_VAR_OFFSET   VAR_OFFSET (COMParity)

Definition at line 192 of file BootMaintenanceManager.h.

◆ COM_STOP_BITS_QUESTION_ID

#define COM_STOP_BITS_QUESTION_ID   QUESTION_ID (COMStopBits)

Definition at line 229 of file BootMaintenanceManager.h.

◆ COM_STOP_BITS_VAR_OFFSET

#define COM_STOP_BITS_VAR_OFFSET   VAR_OFFSET (COMStopBits)

Definition at line 191 of file BootMaintenanceManager.h.

◆ COM_TERMINAL_QUESTION_ID

#define COM_TERMINAL_QUESTION_ID   QUESTION_ID (COMTerminalType)

Definition at line 231 of file BootMaintenanceManager.h.

◆ COM_TERMINAL_VAR_OFFSET

#define COM_TERMINAL_VAR_OFFSET   VAR_OFFSET (COMTerminalType)

Definition at line 193 of file BootMaintenanceManager.h.

◆ CON_DEVICE_QUESTION_ID

#define CON_DEVICE_QUESTION_ID   QUESTION_ID (ConsoleCheck)

Definition at line 218 of file BootMaintenanceManager.h.

◆ CON_DEVICE_VAR_OFFSET

#define CON_DEVICE_VAR_OFFSET   VAR_OFFSET (ConsoleCheck)

Definition at line 180 of file BootMaintenanceManager.h.

◆ CON_ERR_COM1_QUESTION_ID

#define CON_ERR_COM1_QUESTION_ID   QUESTION_ID (ConsoleErrorCOM1)

Definition at line 215 of file BootMaintenanceManager.h.

◆ CON_ERR_COM1_VAR_OFFSET

#define CON_ERR_COM1_VAR_OFFSET   VAR_OFFSET (ConsoleErrorCOM1)

Definition at line 177 of file BootMaintenanceManager.h.

◆ CON_ERR_COM2_QUESTION_ID

#define CON_ERR_COM2_QUESTION_ID   QUESTION_ID (ConsoleErrorCOM2)

Definition at line 216 of file BootMaintenanceManager.h.

◆ CON_ERR_COM2_VAR_OFFSET

#define CON_ERR_COM2_VAR_OFFSET   VAR_OFFSET (ConsoleErrorCOM2)

Definition at line 178 of file BootMaintenanceManager.h.

◆ CON_ERR_DEVICE_QUESTION_ID

#define CON_ERR_DEVICE_QUESTION_ID   QUESTION_ID (ConsoleErrCheck)

Definition at line 221 of file BootMaintenanceManager.h.

◆ CON_ERR_DEVICE_VAR_OFFSET

#define CON_ERR_DEVICE_VAR_OFFSET   VAR_OFFSET (ConsoleErrCheck)

Definition at line 183 of file BootMaintenanceManager.h.

◆ CON_IN_COM1_QUESTION_ID

#define CON_IN_COM1_QUESTION_ID   QUESTION_ID (ConsoleInputCOM1)

Definition at line 211 of file BootMaintenanceManager.h.

◆ CON_IN_COM1_VAR_OFFSET

#define CON_IN_COM1_VAR_OFFSET   VAR_OFFSET (ConsoleInputCOM1)

Definition at line 173 of file BootMaintenanceManager.h.

◆ CON_IN_COM2_QUESTION_ID

#define CON_IN_COM2_QUESTION_ID   QUESTION_ID (ConsoleInputCOM2)

Definition at line 212 of file BootMaintenanceManager.h.

◆ CON_IN_COM2_VAR_OFFSET

#define CON_IN_COM2_VAR_OFFSET   VAR_OFFSET (ConsoleInputCOM2)

Definition at line 174 of file BootMaintenanceManager.h.

◆ CON_IN_DEVICE_QUESTION_ID

#define CON_IN_DEVICE_QUESTION_ID   QUESTION_ID (ConsoleInCheck)

Definition at line 219 of file BootMaintenanceManager.h.

◆ CON_IN_DEVICE_VAR_OFFSET

#define CON_IN_DEVICE_VAR_OFFSET   VAR_OFFSET (ConsoleInCheck)

Definition at line 181 of file BootMaintenanceManager.h.

◆ CON_MODE_QUESTION_ID

#define CON_MODE_QUESTION_ID   QUESTION_ID (ConsoleOutMode)

Definition at line 217 of file BootMaintenanceManager.h.

◆ CON_MODE_VAR_OFFSET

#define CON_MODE_VAR_OFFSET   VAR_OFFSET (ConsoleOutMode)

Definition at line 179 of file BootMaintenanceManager.h.

◆ CON_OUT_COM1_QUESTION_ID

#define CON_OUT_COM1_QUESTION_ID   QUESTION_ID (ConsoleOutputCOM1)

Definition at line 213 of file BootMaintenanceManager.h.

◆ CON_OUT_COM1_VAR_OFFSET

#define CON_OUT_COM1_VAR_OFFSET   VAR_OFFSET (ConsoleOutputCOM1)

Definition at line 175 of file BootMaintenanceManager.h.

◆ CON_OUT_COM2_QUESTION_ID

#define CON_OUT_COM2_QUESTION_ID   QUESTION_ID (ConsoleOutputCOM2)

Definition at line 214 of file BootMaintenanceManager.h.

◆ CON_OUT_COM2_VAR_OFFSET

#define CON_OUT_COM2_VAR_OFFSET   VAR_OFFSET (ConsoleOutputCOM2)

Definition at line 176 of file BootMaintenanceManager.h.

◆ CON_OUT_DEVICE_QUESTION_ID

#define CON_OUT_DEVICE_QUESTION_ID   QUESTION_ID (ConsoleOutCheck)

Definition at line 220 of file BootMaintenanceManager.h.

◆ CON_OUT_DEVICE_VAR_OFFSET

#define CON_OUT_DEVICE_VAR_OFFSET   VAR_OFFSET (ConsoleOutCheck)

Definition at line 182 of file BootMaintenanceManager.h.

◆ CONFIG_OPTION_OFFSET

#define CONFIG_OPTION_OFFSET   0x1200

Definition at line 142 of file BootMaintenanceManager.h.

◆ CONSOLE_OPTION_OFFSET

#define CONSOLE_OPTION_OFFSET   0x6000

Definition at line 140 of file BootMaintenanceManager.h.

◆ DRIVER_ADD_OPTION_QUESTION_ID

#define DRIVER_ADD_OPTION_QUESTION_ID   QUESTION_ID (DriverAddHandleOptionalData)

Definition at line 226 of file BootMaintenanceManager.h.

◆ DRIVER_ADD_OPTION_VAR_OFFSET

#define DRIVER_ADD_OPTION_VAR_OFFSET   VAR_OFFSET (DriverAddHandleOptionalData)

Definition at line 188 of file BootMaintenanceManager.h.

◆ DRIVER_OPTION_DEL_QUESTION_ID

#define DRIVER_OPTION_DEL_QUESTION_ID   QUESTION_ID (DriverOptionDel)

Definition at line 225 of file BootMaintenanceManager.h.

◆ DRIVER_OPTION_DEL_VAR_OFFSET

#define DRIVER_OPTION_DEL_VAR_OFFSET   VAR_OFFSET (DriverOptionDel)

Definition at line 187 of file BootMaintenanceManager.h.

◆ DRIVER_OPTION_ORDER_QUESTION_ID

#define DRIVER_OPTION_ORDER_QUESTION_ID   QUESTION_ID (DriverOptionOrder)

Definition at line 223 of file BootMaintenanceManager.h.

◆ DRIVER_OPTION_ORDER_VAR_OFFSET

#define DRIVER_OPTION_ORDER_VAR_OFFSET   VAR_OFFSET (DriverOptionOrder)

Definition at line 185 of file BootMaintenanceManager.h.

◆ DRV_ADD_ACTIVE_QUESTION_ID

#define DRV_ADD_ACTIVE_QUESTION_ID   QUESTION_ID (DriverAddActive)

Definition at line 209 of file BootMaintenanceManager.h.

◆ DRV_ADD_ACTIVE_VAR_OFFSET

#define DRV_ADD_ACTIVE_VAR_OFFSET   VAR_OFFSET (DriverAddActive)

Definition at line 171 of file BootMaintenanceManager.h.

◆ DRV_ADD_HANDLE_DESC_QUESTION_ID

#define DRV_ADD_HANDLE_DESC_QUESTION_ID   QUESTION_ID (DriverAddHandleDesc)

Definition at line 208 of file BootMaintenanceManager.h.

◆ DRV_ADD_HANDLE_DESC_VAR_OFFSET

#define DRV_ADD_HANDLE_DESC_VAR_OFFSET   VAR_OFFSET (DriverAddHandleDesc)

Definition at line 170 of file BootMaintenanceManager.h.

◆ DRV_ADD_RECON_QUESTION_ID

#define DRV_ADD_RECON_QUESTION_ID   QUESTION_ID (DriverAddForceReconnect)

Definition at line 210 of file BootMaintenanceManager.h.

◆ DRV_ADD_RECON_VAR_OFFSET

#define DRV_ADD_RECON_VAR_OFFSET   VAR_OFFSET (DriverAddForceReconnect)

Definition at line 172 of file BootMaintenanceManager.h.

◆ FD_OPTION_OFFSET

#define FD_OPTION_OFFSET   0xC000

Definition at line 134 of file BootMaintenanceManager.h.

◆ FILE_OPTION_MASK

#define FILE_OPTION_MASK   0x7FFF

Definition at line 138 of file BootMaintenanceManager.h.

◆ FILE_OPTION_OFFSET

#define FILE_OPTION_OFFSET   0x8000

Definition at line 137 of file BootMaintenanceManager.h.

◆ FORM_ID_OFFSET

#define FORM_ID_OFFSET   0x1000

Definition at line 144 of file BootMaintenanceManager.h.

◆ HANDLE_OPTION_OFFSET

#define HANDLE_OPTION_OFFSET   0x7000

Definition at line 139 of file BootMaintenanceManager.h.

◆ HD_OPTION_OFFSET

#define HD_OPTION_OFFSET   0xB000

Definition at line 135 of file BootMaintenanceManager.h.

◆ KEY_VALUE_OFFSET

#define KEY_VALUE_OFFSET   0x1100

Definition at line 143 of file BootMaintenanceManager.h.

◆ MAX_BBS_OFFSET

#define MAX_BBS_OFFSET   0xE000

Definition at line 131 of file BootMaintenanceManager.h.

◆ NET_OPTION_OFFSET

#define NET_OPTION_OFFSET   0xD800

Definition at line 132 of file BootMaintenanceManager.h.

◆ NONE_BOOTNEXT_VALUE

#define NONE_BOOTNEXT_VALUE   (0xFFFF + 1)

Definition at line 236 of file BootMaintenanceManager.h.

◆ QUESTION_ID

#define QUESTION_ID (   Field)    (VAR_OFFSET (Field) + CONFIG_OPTION_OFFSET)

Definition at line 156 of file BootMaintenanceManager.h.

◆ STRING_DEPOSITORY_NUMBER

#define STRING_DEPOSITORY_NUMBER   8

Definition at line 234 of file BootMaintenanceManager.h.

◆ TERMINAL_OPTION_OFFSET

#define TERMINAL_OPTION_OFFSET   0x5000

Definition at line 141 of file BootMaintenanceManager.h.

◆ UPDATE_DATA_SIZE

#define UPDATE_DATA_SIZE   0x100000

Definition at line 126 of file BootMaintenanceManager.h.

◆ VAR_CON_OUT_MODE

#define VAR_CON_OUT_MODE   L"ConOutMode"

Definition at line 56 of file BootMaintenanceManager.h.

◆ VAR_FLAG

#define VAR_FLAG   EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE

Definition at line 61 of file BootMaintenanceManager.h.

◆ VAR_OFFSET

#define VAR_OFFSET (   Field)    ((UINT16) ((UINTN) &(((BMM_FAKE_NV_DATA *) 0)->Field)))

Definition at line 151 of file BootMaintenanceManager.h.

Typedef Documentation

◆ BBS_TYPE

typedef UINT8 BBS_TYPE

Definition at line 88 of file BootMaintenanceManager.h.

Enumeration Type Documentation

◆ _TYPE_OF_TERMINAL

enum _TYPE_OF_TERMINAL

Definition at line 90 of file BootMaintenanceManager.h.

Function Documentation

◆ BmmSetConsoleMode()

EFI_STATUS BmmSetConsoleMode ( BOOLEAN  IsSetupMode)

This function will change video resolution and text mode according to defined setup mode or defined boot mode

Parameters
IsSetupModeIndicate mode is changed to setup mode or boot mode.
Return values
EFI_SUCCESSMode is changed successfully.
OthersMode failed to be changed.

Definition at line 125 of file BootMaintenance.c.

◆ BootFromFile()

BOOLEAN EFIAPI BootFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Boot the file specified by the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 908 of file BootOption.c.

◆ BootMaintCallback()

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.

Parameters
ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
ActionSpecifies the type of action taken by the browser.
QuestionIdA unique value which is sent to the original exporting driver so that it can identify the type of data to expect.
TypeThe type of value for the question.
ValueA pointer to the data being sent to the original exporting driver.
ActionRequestOn return, points to the action requested by the callback function.
Return values
EFI_SUCCESSThe callback successfully handled the action.
EFI_OUT_OF_RESOURCESNot enough storage is available to hold the variable and its data.
EFI_DEVICE_ERRORThe variable could not be saved.
EFI_UNSUPPORTEDThe specified Action is not supported by the callback.
EFI_INVALID_PARAMETERThe parameter of Value or ActionRequest is invalid.

Definition at line 1096 of file BootMaintenance.c.

◆ BootMaintExtractConfig()

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.

Parameters
ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
RequestA null-terminated Unicode string in <ConfigRequest> format.
ProgressOn 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.
ResultsA 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.
Return values
EFI_SUCCESSThe Results is filled with the requested values.
EFI_OUT_OF_RESOURCESNot enough memory to store the results.
EFI_INVALID_PARAMETERRequest is NULL, illegal syntax, or unknown name.
EFI_NOT_FOUNDRouting data doesn't match any storage in this driver.

Definition at line 661 of file BootMaintenance.c.

◆ BootMaintRouteConfig()

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.

Parameters
[in]ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
[in]ConfigurationA null-terminated Unicode string in <ConfigString> format.
[out]ProgressA 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.
Return values
EFI_SUCCESSThe results have been distributed or are awaiting distribution.
EFI_OUT_OF_RESOURCESNot enough memory to store the parts of the results that must be stored awaiting possible future protocols.
EFI_INVALID_PARAMETERSPassing in a NULL for the Results parameter would result in this type of error.
EFI_NOT_FOUNDTarget for the specified routing data was not found.

Definition at line 774 of file BootMaintenance.c.

◆ BOpt_CreateMenuEntry()

BM_MENU_ENTRY * BOpt_CreateMenuEntry ( UINTN  MenuType)

Create a menu entry give a Menu type.

Parameters
MenuTypeThe Menu type to be created.
Return values
NULLIf failed to create the menu.
Returns
The menu.

Create a menu entry by given menu type.

Parameters
MenuTypeThe Menu type to be created.
Return values
NULLIf failed to create the menu.
Returns
the new menu entry.

Definition at line 75 of file BootOption.c.

◆ BOpt_DestroyMenuEntry()

VOID BOpt_DestroyMenuEntry ( BM_MENU_ENTRY MenuEntry)

Free up all resource allocated for a BM_MENU_ENTRY.

Parameters
MenuEntryA pointer to BM_MENU_ENTRY.

Definition at line 141 of file BootOption.c.

◆ BOpt_FindDrivers()

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.

Return values
EFI_SUCCESSThe function complets successfully.
Returns
Other value if failed to build the DriverMenu.

Definition at line 492 of file BootOption.c.

◆ BOpt_FreeMenu()

VOID BOpt_FreeMenu ( BM_MENU_OPTION FreeMenu)

Free resources allocated in Allocate Rountine.

Parameters
FreeMenuMenu to be freed

Definition at line 256 of file BootOption.c.

◆ BOpt_GetBootOptionNumber()

UINT16 BOpt_GetBootOptionNumber ( VOID  )

Get the Option Number for Boot#### that does not used.

Returns
The available Option Number.

Definition at line 644 of file BootOption.c.

◆ BOpt_GetBootOptions()

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.

Parameters
CallbackDataThe BMM context data.
Returns
The number of the Var Boot####.

Build the BootOptionMenu according to BootOrder Variable. This Routine will access the Boot#### to get EFI_LOAD_OPTION.

Parameters
CallbackDataThe BMM context data.
Returns
EFI_NOT_FOUND Fail to find "BootOrder" variable.
EFI_SUCESS Success build boot option menu.

Definition at line 288 of file BootOption.c.

◆ BOpt_GetDriverOptionNumber()

UINT16 BOpt_GetDriverOptionNumber ( VOID  )

Get the Option Number for Driver#### that does not used.

Returns
The unused Option Number.

Definition at line 659 of file BootOption.c.

◆ BOpt_GetDriverOptions()

EFI_STATUS BOpt_GetDriverOptions ( IN BMM_CALLBACK_DATA CallbackData)

Build up all DriverOptionMenu

Parameters
CallbackDataThe BMM context data.
Returns
EFI_SUCESS The functin completes successfully.
Return values
EFI_OUT_OF_RESOURCESNot enough memory to compete the operation.

Build up all DriverOptionMenu

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCESSThe functin completes successfully.
EFI_OUT_OF_RESOURCESNot enough memory to compete the operation.
EFI_NOT_FOUNDFail to get "DriverOrder" variable.

Definition at line 678 of file BootOption.c.

◆ BOpt_GetMenuEntry()

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.

Parameters
MenuOptionThe Menu Entry List to read the menu entry.
MenuNumberThe index of Menu Entry.
Returns
The Menu Entry.

Definition at line 229 of file BootOption.c.

◆ BOpt_GetOptionNumber()

UINT16 BOpt_GetOptionNumber ( CHAR16 *  Type)

Get the Option Number that has not been allocated for use.

Parameters
TypeThe type of Option.
Returns
The available Option Number.

Definition at line 586 of file BootOption.c.

◆ ChangeTerminalDevicePath()

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.

Parameters
DevicePathThe multi-instance device path.
ChangeTerminalTRUE, then device path in the Terminal Device in TerminalMenu is also updated; FALSE, no update.
Returns
EFI_SUCCESS The function completes successfully.

Definition at line 108 of file ConsoleOption.c.

◆ ChangeVariableDevicePath()

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.

Parameters
DevicePathThe 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.

Parameters
DevicePathterminal device's path

Definition at line 222 of file ConsoleOption.c.

◆ CleanUpPage()

VOID CleanUpPage ( IN UINT16  LabelId,
IN BMM_CALLBACK_DATA CallbackData 
)

Clean up the dynamic opcode at label and form specified by both LabelId.

Parameters
LabelIdIt is both the Form ID and Label ID for opcode deletion.
CallbackDataThe BMM context data.

Definition at line 165 of file UpdatePage.c.

◆ CleanUselessBeforeSubmit()

VOID CleanUselessBeforeSubmit ( IN BMM_CALLBACK_DATA Private)

This function is to clean some useless data before submit changes.

Parameters
PrivateThe BMM context data.

Definition at line 1410 of file BootMaintenance.c.

◆ CreateBootOptionFromFile()

BOOLEAN EFIAPI CreateBootOptionFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Create boot option base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 994 of file BootOption.c.

◆ CreateDriverOptionFromFile()

BOOLEAN EFIAPI CreateDriverOptionFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Create driver option base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 1012 of file BootOption.c.

◆ CreateUpdateData()

VOID CreateUpdateData ( VOID  )

Create the global UpdateData structure.

Definition at line 16 of file UpdatePage.c.

◆ DiscardChangeHandler()

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.

Parameters
PrivateThe BMM context data.
CurrentFakeNVMapThe current Fack NV Map.

Definition at line 1351 of file BootMaintenance.c.

◆ EfiDevicePathInstanceCount()

UINTN EfiDevicePathInstanceCount ( IN EFI_DEVICE_PATH_PROTOCOL DevicePath)

Function is used to determine the number of device path instances that exist in a device path.

Parameters
DevicePathA pointer to a device path data structure.
Returns
This function counts and returns the number of device path instances in DevicePath.

Definition at line 51 of file BmLib.c.

◆ EfiLibDeleteVariable()

EFI_STATUS EfiLibDeleteVariable ( IN CHAR16 *  VarName,
IN EFI_GUID VarGuid 
)

Function deletes the variable specified by VarName and VarGuid.

Parameters
VarNameA Null-terminated Unicode string that is the name of the vendor's variable.
VarGuidA unique identifier for the vendor.
Return values
EFI_SUCCESSThe variable was found and removed
EFI_UNSUPPORTEDThe variable store was inaccessible
EFI_OUT_OF_RESOURCESThe temporary buffer was not available
EFI_NOT_FOUNDThe variable was not found

Function deletes the variable specified by VarName and VarGuid.

Parameters
VarNameA Null-terminated Unicode string that is the name of the vendor's variable.
VarGuidA unique identifier for the vendor.
Return values
EFI_SUCCESSThe variable was found and removed
EFI_UNSUPPORTEDThe variable store was inaccessible
EFI_NOT_FOUNDThe variable was not found

Definition at line 25 of file BmLib.c.

◆ EfiLibStrFromDatahub()

UINT16 * EfiLibStrFromDatahub ( IN EFI_DEVICE_PATH_PROTOCOL DevPath)

Get a string from the Data Hub record based on a device path.

Parameters
DevPathThe device Path.
Returns
A string located from the Data Hub records based on the device path.
Return values
NULLIf failed to get the String from Data Hub.

Definition at line 78 of file BmLib.c.

◆ ExtractFileNameFromDevicePath()

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().

Parameters
DevicePathDevice path.
Returns
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.

Parameters
DevicePathDevice path.
Return values
NULLNot enough memory resource for AllocateCopyPool.
OtherA 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.

Parameters
DevicePathDevice path.
Return values
NULLNot enough memory resourece for AllocateCopyPool.
OtherA new allocated string that represents the file name.

Definition at line 379 of file BootMaintenance.c.

◆ FreeAllConsoles()

EFI_STATUS FreeAllConsoles ( VOID  )

Free ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu

Return values
EFI_SUCCESSThe function always complete successfully.

Definition at line 876 of file ConsoleOption.c.

◆ FreeBMPackage()

VOID FreeBMPackage ( VOID  )

Remove the installed BootMaint and FileExplorer HiiPackages.

◆ GetAllConsoles()

EFI_STATUS GetAllConsoles ( VOID  )

Build up ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu

Return values
EFI_SUCCESSThe function always complete successfully.

Definition at line 860 of file ConsoleOption.c.

◆ GetBootOrder()

VOID GetBootOrder ( IN BMM_CALLBACK_DATA CallbackData)

Get option number according to Boot#### and BootOrder variable. The value is saved as #### + 1.

Parameters
CallbackDataThe BMM context data.

Definition at line 811 of file BootOption.c.

◆ GetConsoleErrCheck()

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.

Parameters
CallbackDataThe BMM context data.

Definition at line 1093 of file ConsoleOption.c.

◆ GetConsoleInCheck()

VOID GetConsoleInCheck ( IN BMM_CALLBACK_DATA CallbackData)

Initialize console input device check box to ConsoleInCheck[MAX_MENU_NUMBER] in BMM_FAKE_NV_DATA structure.

Parameters
CallbackDataThe BMM context data.

Definition at line 1018 of file ConsoleOption.c.

◆ GetConsoleOutCheck()

VOID GetConsoleOutCheck ( IN BMM_CALLBACK_DATA CallbackData)

Initialize console output device check box to ConsoleOutCheck[MAX_MENU_NUMBER] in BMM_FAKE_NV_DATA structure.

Parameters
CallbackDataThe BMM context data.

Definition at line 1056 of file ConsoleOption.c.

◆ GetConsoleOutMode()

VOID GetConsoleOutMode ( IN BMM_CALLBACK_DATA CallbackData)

Get mode number according to column and row

Parameters
CallbackDataThe BMM context data.

Definition at line 980 of file ConsoleOption.c.

◆ GetDriverOrder()

VOID GetDriverOrder ( IN BMM_CALLBACK_DATA CallbackData)

Get driver option order from globalc DriverOptionMenu.

Parameters
CallbackDataThe BMM context data.

Definition at line 858 of file BootOption.c.

◆ GetLegacyBootOptionVar()

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.

Parameters
DeviceTypeThe legacy device type. It can be floppy, network, harddisk, cdrom, etc.
OptionIndexReturns the index number (#### in Boot####).
OptionSizeReturn the size of the Boot### variable.

◆ GetTerminalAttribute()

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.

Parameters
CallbackDataThe BMM context data.

Definition at line 1130 of file ConsoleOption.c.

◆ InitBootMaintenance()

VOID InitBootMaintenance ( VOID  )

Install BootMaint and FileExplorer HiiPackages.

◆ LocateSerialIo()

EFI_STATUS LocateSerialIo ( VOID  )

Build a list containing all serial devices.

Return values
EFI_SUCCESSThe function complete successfully.
EFI_UNSUPPORTEDNo serial ports present.

Definition at line 405 of file ConsoleOption.c.

◆ RefreshUpdateData()

VOID RefreshUpdateData ( VOID  )

Refresh the global UpdateData structure.

Definition at line 48 of file UpdatePage.c.

◆ UiDevicePathToStr()

CHAR16 * UiDevicePathToStr ( IN EFI_DEVICE_PATH_PROTOCOL DevPath)

This function converts an input device structure to a Unicode string.

Parameters
DevPathA pointer to the device path structure.
Returns
A new allocated Unicode string that represents the device path.

Definition at line 342 of file BootMaintenance.c.

◆ UpdateBootDelPage()

VOID UpdateBootDelPage ( IN BMM_CALLBACK_DATA CallbackData)

Create a lit of boot option from global BootOptionMenu. It allow user to delete the boot option.

Parameters
CallbackDataThe BMM context data.

Create a list of boot option from global BootOptionMenu. It allow user to delete the boot option.

Parameters
CallbackDataThe BMM context data.

Definition at line 227 of file UpdatePage.c.

◆ UpdateConCOMPage()

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.

Parameters
CallbackDataThe BMM context data.

Definition at line 192 of file UpdatePage.c.

◆ UpdateConModePage()

VOID UpdateConModePage ( IN BMM_CALLBACK_DATA CallbackData)

Refresh the text mode page

Parameters
CallbackDataThe BMM context data.

Refresh the text mode page.

Parameters
CallbackDataThe BMM context data.

Definition at line 678 of file UpdatePage.c.

◆ UpdateDriverAddHandleDescPage()

VOID UpdateDriverAddHandleDescPage ( IN BMM_CALLBACK_DATA CallbackData)

Prepare the page to allow user to add description for a Driver Option.

Parameters
CallbackDataThe BMM context data.

Definition at line 372 of file UpdatePage.c.

◆ UpdateDrvAddHandlePage()

VOID UpdateDrvAddHandlePage ( IN BMM_CALLBACK_DATA CallbackData)

Create a lit of driver option from global DriverMenu.

Parameters
CallbackDataThe BMM context data.

Definition at line 283 of file UpdatePage.c.

◆ UpdateDrvDelPage()

VOID UpdateDrvDelPage ( IN BMM_CALLBACK_DATA CallbackData)

Create a lit of driver option from global DriverOptionMenu. It allow user to delete the driver option.

Parameters
CallbackDataThe BMM context data.

Definition at line 318 of file UpdatePage.c.

◆ UpdateOptionPage()

VOID UpdateOptionPage ( IN BMM_CALLBACK_DATA CallbackData,
IN EFI_FORM_ID  FormId,
IN EFI_DEVICE_PATH_PROTOCOL DevicePath 
)

Update add boot/driver option page.

Parameters
CallbackDataThe BMM context data.
FormIdThe form ID to be updated.
DevicePathDevice path.

Definition at line 1035 of file UpdatePage.c.

◆ UpdatePageBody()

VOID UpdatePageBody ( IN UINT16  UpdatePageId,
IN BMM_CALLBACK_DATA CallbackData 
)

Dispatch the correct update page function to call based on the UpdatePageId.

Parameters
UpdatePageIdThe form ID.
CallbackDataThe BMM context data.

Definition at line 1103 of file UpdatePage.c.

◆ UpdatePageId()

VOID UpdatePageId ( BMM_CALLBACK_DATA Private,
UINT16  NewPageId 
)

Dispatch the display to the next page based on NewPageId.

Parameters
PrivateThe BMM context data.
NewPageIdThe original page ID.

Definition at line 1143 of file UpdatePage.c.

◆ UpdateTerminalPage()

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.

Parameters
CallbackDataThe BMM context data.

Definition at line 805 of file UpdatePage.c.

◆ Var_DelBootOption()

EFI_STATUS Var_DelBootOption ( VOID  )

Delete Boot Option that represent a Deleted state in BootOptionMenu.

Return values
EFI_SUCCESSIf all boot load option EFI Variables corresponding to BM_LOAD_CONTEXT marked for deletion is deleted
Returns
Others If failed to update the "BootOrder" variable after deletion.

Delete Boot Option that represent a Deleted state in BootOptionMenu.

Return values
EFI_SUCCESSIf all boot load option EFI Variables corresponding to BM_LOAD_CONTEXT marked for deletion is deleted.
EFI_NOT_FOUNDIf can not find the boot option want to be deleted.
Returns
Others If failed to update the "BootOrder" variable after deletion.

Definition at line 21 of file Variable.c.

◆ Var_DelDriverOption()

EFI_STATUS Var_DelDriverOption ( VOID  )

Delete Load Option that represent a Deleted state in DriverOptionMenu.

Return values
EFI_SUCCESSLoad Option is successfully updated.
Returns
Other value than EFI_SUCCESS if failed to update "Driver Order" EFI Variable.

Delete Load Option that represent a Deleted state in DriverOptionMenu.

Return values
EFI_SUCCESSLoad Option is successfully updated.
EFI_NOT_FOUNDFail to find the driver option want to be deleted.
Returns
Other value than EFI_SUCCESS if failed to update "Driver Order" EFI Variable.

Definition at line 78 of file Variable.c.

◆ Var_UpdateBootNext()

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.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

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.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can be saved. See gRT->SetVariable for detail return information.

Definition at line 533 of file Variable.c.

◆ Var_UpdateBootOption()

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.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_OUT_OF_RESOURCESIf not enought memory to complete the operation.
EFI_SUCCESSIf 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.

Parameters
CallbackDataThe BMM context data.
Return values
otherContain some errors when excuting this function. See function EfiBootManagerInitializeLoadOption/EfiBootManagerAddLoadOptionVariabl for detail return information.
EFI_SUCCESSIf function completes successfully.

Definition at line 414 of file Variable.c.

◆ Var_UpdateBootOrder()

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.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCCESSThe function complete successfully.
EFI_OUT_OF_RESOURCESNot enough memory to complete the function.
Returns
not The EFI variable can not be saved. See gRT->SetVariable for detail return information.

This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh BootOptionMenu with the new "BootOrder" list.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCCESSThe function complete successfully.
EFI_OUT_OF_RESOURCESNot enough memory to complete the function.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Definition at line 590 of file Variable.c.

◆ Var_UpdateConMode()

EFI_STATUS Var_UpdateConMode ( IN BMM_CALLBACK_DATA CallbackData)

Update the Text Mode of Console.

Parameters
CallbackDataThe context data for BMM.
Return values
EFI_SUCCSSIf the Text Mode of Console is updated.
Returns
Other value if the Text Mode of Console is not updated.

Definition at line 714 of file Variable.c.

◆ Var_UpdateConsoleInpOption()

EFI_STATUS Var_UpdateConsoleInpOption ( VOID  )

This function delete and build multi-instance device path ConIn console device.

Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Definition at line 233 of file Variable.c.

◆ Var_UpdateConsoleOutOption()

EFI_STATUS Var_UpdateConsoleOutOption ( VOID  )

This function delete and build multi-instance device path ConOut console device.

Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Definition at line 248 of file Variable.c.

◆ Var_UpdateDriverOption()

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.

Parameters
CallbackDataThe BMM context data.
HiiHandleThe HII handle associated with the BMM formset.
DescriptionDataThe description of this driver option.
OptionalDataThe optional load option.
ForceReconnectIf to force reconnect.
Return values
EFI_OUT_OF_RESOURCESIf not enought memory to complete the operation.
EFI_SUCCESSIf 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.

Parameters
CallbackDataThe BMM context data.
HiiHandleThe HII handle associated with the BMM formset.
DescriptionDataThe description of this driver option.
OptionalDataThe optional load option.
ForceReconnectIf to force reconnect.
Return values
otherContain some errors when excuting this function.See function EfiBootManagerInitializeLoadOption/EfiBootManagerAddLoadOptionVariabl for detail return information.
EFI_SUCCESSIf function completes successfully.

Definition at line 289 of file Variable.c.

◆ Var_UpdateDriverOrder()

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.

Parameters
CallbackDataThe BMM context data.
Return values
EFI_SUCCESSThe function complete successfully.
EFI_OUT_OF_RESOURCESNot enough memory to complete the function.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Definition at line 652 of file Variable.c.

◆ Var_UpdateErrorOutOption()

EFI_STATUS Var_UpdateErrorOutOption ( VOID  )

This function delete and build multi-instance device path ErrOut console device.

Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Definition at line 263 of file Variable.c.

◆ Var_UpdateOutOfBandOption()

EFI_STATUS Var_UpdateOutOfBandOption ( IN UINT16  MenuIndex)

This function delete and build Out of Band console device.

Parameters
MenuIndexMenu index which user select in the terminal menu list.
Return values
EFI_SUCCESSThe function complete successfully.
Returns
The EFI variable can not be saved. See gRT->SetVariable for detail return information.

Variable Documentation

◆ BaudRateList

COM_ATTR BaudRateList[19]
extern

Value and string token correspondency for BaudRate

Definition at line 107 of file Data.c.

◆ BootOptionMenu

BM_MENU_OPTION BootOptionMenu
extern

Boot Option from variable Menu

Definition at line 74 of file Data.c.

◆ ConsoleErrMenu

BM_MENU_OPTION ConsoleErrMenu
extern

Error Output Device Selection Menu

Definition at line 65 of file Data.c.

◆ ConsoleInpMenu

BM_MENU_OPTION ConsoleInpMenu
extern

Console Input Device Selection Menu

Definition at line 47 of file Data.c.

◆ ConsoleOutMenu

BM_MENU_OPTION ConsoleOutMenu
extern

Console Output Device Selection Menu

Definition at line 56 of file Data.c.

◆ DataBitsList

COM_ATTR DataBitsList[4]
extern

Value and string token correspondency for DataBits

Definition at line 189 of file Data.c.

◆ DriverMenu

BM_MENU_OPTION DriverMenu
extern

Handles in current system selection menu

Definition at line 92 of file Data.c.

◆ DriverOptionMenu

BM_MENU_OPTION DriverOptionMenu
extern

Driver Option from variable menu

Definition at line 83 of file Data.c.

◆ EndDevicePath

EFI_DEVICE_PATH_PROTOCOL EndDevicePath[]
extern

Definition at line 29 of file BootMaintenance.c.

◆ gBootMaintenancePrivate

BMM_CALLBACK_DATA gBootMaintenancePrivate
extern

Definition at line 69 of file BootMaintenance.c.

◆ mBmmCallbackInfo

BMM_CALLBACK_DATA* mBmmCallbackInfo
extern

Definition at line 80 of file BootMaintenance.c.

◆ mBootMaintGuid

EFI_GUID mBootMaintGuid
extern

Definition at line 66 of file BootMaintenance.c.

◆ mBootMaintStorageName

CHAR16 mBootMaintStorageName[]
extern

Definition at line 68 of file BootMaintenance.c.

◆ mEndLabel

EFI_IFR_GUID_LABEL* mEndLabel
extern

Definition at line 14 of file Data.c.

◆ mEndOpCodeHandle

VOID* mEndOpCodeHandle
extern

Definition at line 12 of file Data.c.

◆ mFlowControlType

UINT16 mFlowControlType[2]
extern

Flow Control type string token storage

Definition at line 34 of file Data.c.

◆ mFlowControlValue

UINT32 mFlowControlValue[2]
extern

Definition at line 39 of file Data.c.

◆ mStartLabel

EFI_IFR_GUID_LABEL* mStartLabel
extern

Definition at line 13 of file Data.c.

◆ mStartOpCodeHandle

VOID* mStartOpCodeHandle
extern

Definition at line 11 of file Data.c.

◆ ParityList

COM_ATTR ParityList[5]
extern

Value and string token correspondency for Parity

Definition at line 211 of file Data.c.

◆ StopBitsList

COM_ATTR StopBitsList[3]
extern

Value and string token correspondency for Baudreate

Definition at line 237 of file Data.c.

◆ TerminalMenu

BM_MENU_OPTION TerminalMenu
extern

Definition at line 98 of file Data.c.

◆ TerminalType

UINT16 TerminalType[9]
extern

Terminal type string token storage

Definition at line 19 of file Data.c.

◆ TerminalTypeGuid

EFI_GUID TerminalTypeGuid[9]
extern

Guid for messaging path, used in Serial port setting.

Definition at line 255 of file Data.c.