TianoCore EDK2 master
|
#include "BootMaintenanceManager.h"
Go to the source code of this file.
handles console redirection from boot manager
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ConsoleOption.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 | terminal device's path |
Definition at line 222 of file ConsoleOption.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.
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 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.
EFI_STATUS GetConsoleMenu | ( | IN UINTN | ConsoleMenuType | ) |
Build up Console Menu based on types passed in. The type can be BM_CONSOLE_IN_CONTEXT_SELECT, BM_CONSOLE_OUT_CONTEXT_SELECT and BM_CONSOLE_ERR_CONTEXT_SELECT.
ConsoleMenuType | Can be BM_CONSOLE_IN_CONTEXT_SELECT, BM_CONSOLE_OUT_CONTEXT_SELECT and BM_CONSOLE_ERR_CONTEXT_SELECT. |
EFI_UNSUPPORTED | The type passed in is not in the 3 types defined. |
EFI_NOT_FOUND | If the EFI Variable defined in UEFI spec with name "ConOutDev", "ConInDev" or "ConErrDev" doesn't exists. |
EFI_OUT_OF_RESOURCES | Not enough resource to complete the operations. |
EFI_SUCCESS | Function completes successfully. |
Definition at line 747 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 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.
BOOLEAN IsIsaSerialNode | ( | IN ACPI_HID_DEVICE_PATH * | Acpi | ) |
Check whether the device path node is ISA Serial Node.
Acpi | Device path node to be checked |
TRUE | It's ISA Serial Node. |
FALSE | It's NOT ISA Serial Node. |
Definition at line 71 of file ConsoleOption.c.
BOOLEAN IsTerminalDevicePath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
OUT TYPE_OF_TERMINAL * | Termi, | ||
OUT UINTN * | Com | ||
) |
Test whether DevicePath is a valid Terminal
DevicePath | DevicePath to be checked |
Termi | If DevicePath is valid Terminal, terminal type is returned. |
Com | If DevicePath is valid Terminal, Com Port type is returned. |
TRUE | If DevicePath point to a Terminal. |
FALSE | If DevicePath does not point to a Terminal. |
Definition at line 900 of file ConsoleOption.c.
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.
BOOLEAN MatchDevicePaths | ( | IN EFI_DEVICE_PATH_PROTOCOL * | Multi, |
IN EFI_DEVICE_PATH_PROTOCOL * | Single | ||
) |
Function compares a device path data structure to that of all the nodes of a second device path instance.
Multi | A pointer to a multi-instance device path data structure. |
Single | A pointer to a single-instance device path data structure. |
TRUE | If the Single device path is contained within Multi device path. |
FALSE | The Single device path is not match within Multi device path. |
Definition at line 25 of file ConsoleOption.c.
BOOLEAN RetrieveUartUid | ( | IN EFI_HANDLE | Handle, |
IN OUT UINT32 * | AcpiUid | ||
) |
Retrieve ACPI UID of UART from device path
Handle | The handle for the UART device. |
AcpiUid | The ACPI UID on output. |
TRUE | Find valid UID from device path |
FALSE | Can't find |
Definition at line 290 of file ConsoleOption.c.
VOID SortedUartHandle | ( | IN EFI_HANDLE * | Handles, |
IN UINTN | NoHandles | ||
) |
Sort Uart handles array with Acpi->UID from low to high.
Handles | EFI_SERIAL_IO_PROTOCOL handle buffer |
NoHandles | EFI_SERIAL_IO_PROTOCOL handle count |
Definition at line 338 of file ConsoleOption.c.
EFI_STATUS UpdateComAttributeFromVariable | ( | EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Update Com Ports attributes from DevicePath
DevicePath | DevicePath that contains Com ports |
EFI_SUCCESS | The update is successful. |
Update Com Ports attributes from DevicePath
DevicePath | DevicePath that contains Com ports |
EFI_SUCCESS | The update is successful. |
EFI_NOT_FOUND | Can not find specific menu entry |
Definition at line 622 of file ConsoleOption.c.