MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Console Platform DXE Driver, install Console Device Guids and update Console
|
||||
Environment Variables.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -80,7 +80,7 @@ InitializeConPlatform(
|
||||
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -108,7 +108,7 @@ ConPlatformTextInDriverBindingSupported (
|
||||
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -136,7 +136,7 @@ ConPlatformTextOutDriverBindingSupported (
|
||||
|
||||
|
||||
/**
|
||||
Test to see if the specified protocol is supported on ControllerHandle.
|
||||
Test to see if the specified protocol is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -202,9 +202,9 @@ ConPlatformDriverBindingSupported (
|
||||
Start this driver on ControllerHandle by opening Simple Text Input Protocol,
|
||||
reading Device Path, and installing Console In Devcice GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConInDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -334,9 +334,9 @@ ConPlatformTextInDriverBindingStart (
|
||||
reading Device Path, and installing Console Out Devcic GUID, Standard Error
|
||||
Device GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConOutDev, ErrOutDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -450,7 +450,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// If it is not a hot-plug device, append the device path to
|
||||
// If it is not a hot-plug device, append the device path to
|
||||
// the ConOutDev and ErrOutDev environment variable.
|
||||
// For GOP device path, append the sibling device path as well.
|
||||
//
|
||||
@@ -511,7 +511,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
}
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
and closing the Simple Text Input protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -585,7 +585,7 @@ ConPlatformTextInDriverBindingStop (
|
||||
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
and closing the Simple Text Output protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -714,7 +714,7 @@ ConPlatformUnInstallProtocol (
|
||||
@param Name String part of EFI variable name
|
||||
|
||||
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
was not read.
|
||||
|
||||
**/
|
||||
@@ -922,7 +922,7 @@ ConPlatformMatchDevicePaths (
|
||||
}
|
||||
|
||||
/**
|
||||
Update console environment variables.
|
||||
Update console environment variables.
|
||||
|
||||
@param VariableName Console environment variables, ConOutDev, ConInDev
|
||||
ErrOutDev, ConIn ,ConOut or ErrOut.
|
||||
@@ -958,7 +958,7 @@ ConPlatformUpdateDeviceVariable (
|
||||
if (Operation != Delete) {
|
||||
//
|
||||
// Match specified DevicePath in Console Variable.
|
||||
//
|
||||
//
|
||||
Status = ConPlatformMatchDevicePaths (
|
||||
VariableDevicePath,
|
||||
DevicePath,
|
||||
@@ -1052,7 +1052,7 @@ IsHotPlugDevice (
|
||||
while (!IsDevicePathEnd (CheckDevicePath)) {
|
||||
//
|
||||
// Check device whether is hot plug device or not throught Device Path
|
||||
//
|
||||
//
|
||||
if ((DevicePathType (CheckDevicePath) == MESSAGING_DEVICE_PATH) &&
|
||||
(DevicePathSubType (CheckDevicePath) == MSG_USB_DP ||
|
||||
DevicePathSubType (CheckDevicePath) == MSG_USB_CLASS_DP ||
|
||||
@@ -1069,7 +1069,7 @@ IsHotPlugDevice (
|
||||
//
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
CheckDevicePath = NextDevicePathNode (CheckDevicePath);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for Console Platfrom DXE Driver.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -56,7 +56,7 @@ typedef enum {
|
||||
} CONPLATFORM_VAR_OPERATION;
|
||||
|
||||
/**
|
||||
Test to see if specific protocol could be supported on the ControllerHandle.
|
||||
Test to see if specific protocol could be supported on the ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -74,7 +74,7 @@ ConPlatformDriverBindingSupported (
|
||||
);
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -94,7 +94,7 @@ ConPlatformTextInDriverBindingSupported (
|
||||
);
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -119,9 +119,9 @@ ConPlatformTextOutDriverBindingSupported (
|
||||
Start this driver on ControllerHandle by opening Simple Text Input Protocol,
|
||||
reading Device Path, and installing Console In Devcice GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConInDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -147,9 +147,9 @@ ConPlatformTextInDriverBindingStart (
|
||||
reading Device Path, and installing Console Out Devcic GUID, Standard Error
|
||||
Device GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConOutDev, StdErrDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -169,7 +169,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
and closing the Simple Text Input protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -192,7 +192,7 @@ ConPlatformTextInDriverBindingStop (
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
and closing the Simple Text Output protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -236,7 +236,7 @@ ConPlatformUnInstallProtocol (
|
||||
@param Name String part of EFI variable name
|
||||
|
||||
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
was not read.
|
||||
|
||||
**/
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# Console Platfrom DXE Driver that specifies whether device can be used as console
|
||||
# input/output device or error output device and update global variables accordingly.
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -96,4 +96,4 @@
|
||||
gEfiGraphicsOutputProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
||||
[UserExtensions.TianoCore."ExtraFiles"]
|
||||
ConPlatformDxeExtra.uni
|
||||
ConPlatformDxeExtra.uni
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// ConPlatformDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Console Platform DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
UEFI Component Name(2) protocol implementation for ConSplitter driver.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -225,7 +225,7 @@ ConSplitterComponentNameGetDriverName (
|
||||
This->SupportedLanguages,
|
||||
mConSplitterDriverNameTable,
|
||||
DriverName,
|
||||
(BOOLEAN)((This == &gConSplitterConInComponentName) ||
|
||||
(BOOLEAN)((This == &gConSplitterConInComponentName) ||
|
||||
(This == &gConSplitterSimplePointerComponentName) ||
|
||||
(This == &gConSplitterAbsolutePointerComponentName) ||
|
||||
(This == &gConSplitterConOutComponentName) ||
|
||||
|
@@ -31,7 +31,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include "ConSplitter.h"
|
||||
|
||||
//
|
||||
// Identify if ConIn is connected in PcdConInConnectOnDemand enabled mode.
|
||||
// Identify if ConIn is connected in PcdConInConnectOnDemand enabled mode.
|
||||
// default not connect
|
||||
//
|
||||
BOOLEAN mConInIsConnect = FALSE;
|
||||
@@ -567,7 +567,7 @@ ConSplitterDriverEntry(
|
||||
&mStdErr.TextOut,
|
||||
NULL
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Update the EFI System Table with new virtual console
|
||||
// and update the pointer to Text Output protocol.
|
||||
@@ -576,7 +576,7 @@ ConSplitterDriverEntry(
|
||||
gST->StdErr = &mStdErr.TextOut;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Update the CRC32 in the EFI System Table header
|
||||
//
|
||||
@@ -2298,7 +2298,7 @@ ConSplitterGrowMapTable (
|
||||
Size = Private->CurrentNumberOfConsoles * sizeof (INT32);
|
||||
Index = 0;
|
||||
SrcAddress = OldTextOutModeMap;
|
||||
NewStepSize = NewSize / sizeof(INT32);
|
||||
NewStepSize = NewSize / sizeof(INT32);
|
||||
// If Private->CurrentNumberOfConsoles is not zero and OldTextOutModeMap
|
||||
// is not NULL, it indicates that the original TextOutModeMap is not enough
|
||||
// for the new console devices and has been enlarged by CONSOLE_SPLITTER_ALLOC_UNIT columns.
|
||||
@@ -2972,7 +2972,7 @@ Done:
|
||||
//
|
||||
// Force GraphicsOutput mode to be set,
|
||||
//
|
||||
|
||||
|
||||
Mode = &Private->GraphicsOutputModeBuffer[CurrentIndex];
|
||||
if ((GraphicsOutput != NULL) &&
|
||||
(Mode->HorizontalResolution == CurrentGraphicsOutputMode->Info->HorizontalResolution) &&
|
||||
@@ -3051,7 +3051,7 @@ ConsplitterSetConsoleOutMode (
|
||||
MaxMode = (UINTN) (TextOut->Mode->MaxMode);
|
||||
|
||||
MaxModeInfo.Column = 0;
|
||||
MaxModeInfo.Row = 0;
|
||||
MaxModeInfo.Row = 0;
|
||||
ModeInfo.Column = PcdGet32 (PcdConOutColumn);
|
||||
ModeInfo.Row = PcdGet32 (PcdConOutRow);
|
||||
|
||||
@@ -3191,7 +3191,7 @@ ConSplitterTextOutAddDevice (
|
||||
|
||||
DeviceStatus = EFI_DEVICE_ERROR;
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
|
||||
|
||||
//
|
||||
// This device display mode will be added into Graphics Ouput modes.
|
||||
//
|
||||
@@ -3361,7 +3361,7 @@ ConSplitterTextOutDeleteDevice (
|
||||
Private->VirtualHandle,
|
||||
&gEfiUgaDrawProtocolGuid,
|
||||
&Private->UgaDraw
|
||||
);
|
||||
);
|
||||
} else if (!FeaturePcdGet (PcdConOutUgaSupport)) {
|
||||
Status = gBS->UninstallProtocolInterface (
|
||||
Private->VirtualHandle,
|
||||
@@ -3536,7 +3536,7 @@ ConSplitterTextInPrivateReadKeyStroke (
|
||||
EFI_STATUS Status;
|
||||
UINTN Index;
|
||||
EFI_KEY_DATA KeyData;
|
||||
|
||||
|
||||
//
|
||||
// Return the first saved non-NULL key.
|
||||
//
|
||||
@@ -3616,7 +3616,7 @@ ConSplitterTextInReadKeyStroke (
|
||||
// Signal ConnectConIn event on first call in Lazy ConIn mode
|
||||
//
|
||||
if (!mConInIsConnect && PcdGetBool (PcdConInConnectOnDemand)) {
|
||||
DEBUG ((EFI_D_INFO, "Connect ConIn in first ReadKeyStoke in Lazy ConIn mode.\n"));
|
||||
DEBUG ((EFI_D_INFO, "Connect ConIn in first ReadKeyStoke in Lazy ConIn mode.\n"));
|
||||
gBS->SignalEvent (Private->ConnectConInEvent);
|
||||
mConInIsConnect = TRUE;
|
||||
}
|
||||
@@ -3810,7 +3810,7 @@ ConSplitterTextInReadKeyStrokeEx (
|
||||
// Signal ConnectConIn event on first call in Lazy ConIn mode
|
||||
//
|
||||
if (!mConInIsConnect && PcdGetBool (PcdConInConnectOnDemand)) {
|
||||
DEBUG ((EFI_D_INFO, "Connect ConIn in first ReadKeyStoke in Lazy ConIn mode.\n"));
|
||||
DEBUG ((EFI_D_INFO, "Connect ConIn in first ReadKeyStoke in Lazy ConIn mode.\n"));
|
||||
gBS->SignalEvent (Private->ConnectConInEvent);
|
||||
mConInIsConnect = TRUE;
|
||||
}
|
||||
@@ -3877,7 +3877,7 @@ ConSplitterTextInReadKeyStrokeEx (
|
||||
for (Index = 0; Index < Private->CurrentNumberOfKeys; Index++) {
|
||||
CopyMem (&Private->KeyQueue[Index].KeyState, &KeyState, sizeof (EFI_KEY_STATE));
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Return the first saved key.
|
||||
//
|
||||
@@ -4642,7 +4642,7 @@ ConSplitterTextOutOutputString (
|
||||
Private->TextOutMode.CursorRow = Private->TextOutList[0].TextOut->Mode->CursorRow;
|
||||
} else {
|
||||
//
|
||||
// When there is no real console devices in system,
|
||||
// When there is no real console devices in system,
|
||||
// update cursor position for the virtual device in consplitter.
|
||||
//
|
||||
Private->TextOut.QueryMode (
|
||||
@@ -4650,28 +4650,28 @@ ConSplitterTextOutOutputString (
|
||||
Private->TextOutMode.Mode,
|
||||
&MaxColumn,
|
||||
&MaxRow
|
||||
);
|
||||
);
|
||||
for (; *WString != CHAR_NULL; WString++) {
|
||||
switch (*WString) {
|
||||
case CHAR_BACKSPACE:
|
||||
if (Private->TextOutMode.CursorColumn == 0 && Private->TextOutMode.CursorRow > 0) {
|
||||
Private->TextOutMode.CursorRow--;
|
||||
Private->TextOutMode.CursorColumn = (INT32) (MaxColumn - 1);
|
||||
Private->TextOutMode.CursorColumn = (INT32) (MaxColumn - 1);
|
||||
} else if (Private->TextOutMode.CursorColumn > 0) {
|
||||
Private->TextOutMode.CursorColumn--;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case CHAR_LINEFEED:
|
||||
if (Private->TextOutMode.CursorRow < (INT32) (MaxRow - 1)) {
|
||||
Private->TextOutMode.CursorRow++;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case CHAR_CARRIAGE_RETURN:
|
||||
Private->TextOutMode.CursorColumn = 0;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
if (Private->TextOutMode.CursorColumn < (INT32) (MaxColumn - 1)) {
|
||||
Private->TextOutMode.CursorColumn++;
|
||||
|
@@ -10,7 +10,7 @@
|
||||
# Note: If only UGA Draw protocol is installed in system, PcdUgaConsumeSupport should be
|
||||
# set to TRUE.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -92,7 +92,7 @@
|
||||
## TO_START
|
||||
gEfiSimpleTextInputExProtocolGuid
|
||||
## PRODUCES
|
||||
## TO_START
|
||||
## TO_START
|
||||
gEfiSimpleTextOutProtocolGuid
|
||||
## SOMETIMES_PRODUCES
|
||||
## SOMETIMES_CONSUMES
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// ConSplitterDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Console Splitter DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Support for Graphics output spliter.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -58,7 +58,7 @@ ConSplitterGraphicsOutputQueryMode (
|
||||
Private = GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This);
|
||||
|
||||
GraphicsOutput = NULL;
|
||||
|
||||
|
||||
if (Private->CurrentNumberOfGraphicsOutput == 1) {
|
||||
//
|
||||
// Find the only one GraphicsOutput.
|
||||
@@ -70,7 +70,7 @@ ConSplitterGraphicsOutputQueryMode (
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (GraphicsOutput != NULL) {
|
||||
//
|
||||
// If only one physical GOP device exist, return its information.
|
||||
@@ -79,7 +79,7 @@ ConSplitterGraphicsOutputQueryMode (
|
||||
return Status;
|
||||
} else {
|
||||
//
|
||||
// If 2 more phyiscal GOP device exist or GOP protocol does not exist,
|
||||
// If 2 more phyiscal GOP device exist or GOP protocol does not exist,
|
||||
// return GOP information (PixelFormat is PixelBltOnly) created in ConSplitterAddGraphicsOutputMode ().
|
||||
//
|
||||
*Info = AllocatePool (sizeof (EFI_GRAPHICS_OUTPUT_MODE_INFORMATION));
|
||||
@@ -191,7 +191,7 @@ ConSplitterGraphicsOutputSetMode (
|
||||
This->Mode->FrameBufferSize = PhysicalGraphicsOutput->Mode->FrameBufferSize;
|
||||
} else {
|
||||
//
|
||||
// If 2 more phyiscal GOP device exist or GOP protocol does not exist,
|
||||
// If 2 more phyiscal GOP device exist or GOP protocol does not exist,
|
||||
// return GOP information (PixelFormat is PixelBltOnly) created in ConSplitterAddGraphicsOutputMode ().
|
||||
//
|
||||
CopyMem (This->Mode->Info, &Private->GraphicsOutputModeBuffer[ModeNumber], This->Mode->SizeOfInfo);
|
||||
@@ -273,7 +273,7 @@ ConSplitterGraphicsOutputBlt (
|
||||
if (This == NULL || ((UINTN) BltOperation) >= EfiGraphicsOutputBltOperationMax) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
||||
Private = GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This);
|
||||
|
||||
ReturnStatus = EFI_SUCCESS;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
This is the main routine for initializing the Graphics Console support routines.
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -245,8 +245,8 @@ InitializeGraphicsConsoleTextMode (
|
||||
UINTN ValidCount;
|
||||
UINTN ValidIndex;
|
||||
UINTN MaxColumns;
|
||||
UINTN MaxRows;
|
||||
|
||||
UINTN MaxRows;
|
||||
|
||||
if ((TextModeCount == NULL) || (TextModeData == NULL)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ InitializeGraphicsConsoleTextMode (
|
||||
//
|
||||
// Mode 0 and mode 1 is for 80x25, 80x50 according to UEFI spec.
|
||||
//
|
||||
ValidCount = 0;
|
||||
ValidCount = 0;
|
||||
|
||||
NewModeBuffer[ValidCount].Columns = 80;
|
||||
NewModeBuffer[ValidCount].Rows = 25;
|
||||
@@ -295,20 +295,20 @@ InitializeGraphicsConsoleTextMode (
|
||||
NewModeBuffer[ValidCount].GopHeight = VerticalResolution;
|
||||
NewModeBuffer[ValidCount].GopModeNumber = GopModeNumber;
|
||||
NewModeBuffer[ValidCount].DeltaX = (HorizontalResolution - (NewModeBuffer[ValidCount].Columns * EFI_GLYPH_WIDTH)) >> 1;
|
||||
NewModeBuffer[ValidCount].DeltaY = (VerticalResolution - (NewModeBuffer[ValidCount].Rows * EFI_GLYPH_HEIGHT)) >> 1;
|
||||
NewModeBuffer[ValidCount].DeltaY = (VerticalResolution - (NewModeBuffer[ValidCount].Rows * EFI_GLYPH_HEIGHT)) >> 1;
|
||||
ValidCount++;
|
||||
|
||||
if ((MaxColumns >= 80) && (MaxRows >= 50)) {
|
||||
NewModeBuffer[ValidCount].Columns = 80;
|
||||
NewModeBuffer[ValidCount].Rows = 50;
|
||||
NewModeBuffer[ValidCount].DeltaX = (HorizontalResolution - (80 * EFI_GLYPH_WIDTH)) >> 1;
|
||||
NewModeBuffer[ValidCount].DeltaY = (VerticalResolution - (50 * EFI_GLYPH_HEIGHT)) >> 1;
|
||||
NewModeBuffer[ValidCount].DeltaY = (VerticalResolution - (50 * EFI_GLYPH_HEIGHT)) >> 1;
|
||||
}
|
||||
NewModeBuffer[ValidCount].GopWidth = HorizontalResolution;
|
||||
NewModeBuffer[ValidCount].GopHeight = VerticalResolution;
|
||||
NewModeBuffer[ValidCount].GopModeNumber = GopModeNumber;
|
||||
ValidCount++;
|
||||
|
||||
|
||||
//
|
||||
// Start from mode 2 to put the valid mode other than 80x25 and 80x50 in the output mode buffer.
|
||||
//
|
||||
@@ -340,14 +340,14 @@ InitializeGraphicsConsoleTextMode (
|
||||
ValidCount++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DEBUG_CODE (
|
||||
for (Index = 0; Index < ValidCount; Index++) {
|
||||
DEBUG ((EFI_D_INFO, "Graphics - Mode %d, Column = %d, Row = %d\n",
|
||||
Index, NewModeBuffer[Index].Columns, NewModeBuffer[Index].Rows));
|
||||
DEBUG ((EFI_D_INFO, "Graphics - Mode %d, Column = %d, Row = %d\n",
|
||||
Index, NewModeBuffer[Index].Columns, NewModeBuffer[Index].Rows));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
//
|
||||
// Return valid mode count and mode information buffer.
|
||||
//
|
||||
@@ -388,9 +388,9 @@ GraphicsConsoleControllerDriverStart (
|
||||
UINTN MaxMode;
|
||||
UINT32 ModeNumber;
|
||||
EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE *Mode;
|
||||
UINTN SizeOfInfo;
|
||||
UINTN SizeOfInfo;
|
||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info;
|
||||
|
||||
|
||||
ModeNumber = 0;
|
||||
|
||||
//
|
||||
@@ -442,9 +442,9 @@ GraphicsConsoleControllerDriverStart (
|
||||
if ((HorizontalResolution == 0x0) || (VerticalResolution == 0x0)) {
|
||||
//
|
||||
// Find the highest resolution which GOP supports.
|
||||
//
|
||||
//
|
||||
MaxMode = Private->GraphicsOutput->Mode->MaxMode;
|
||||
|
||||
|
||||
for (ModeIndex = 0; ModeIndex < MaxMode; ModeIndex++) {
|
||||
Status = Private->GraphicsOutput->QueryMode (
|
||||
Private->GraphicsOutput,
|
||||
@@ -581,7 +581,7 @@ GraphicsConsoleControllerDriverStart (
|
||||
Status = GraphicsConsoleConOutOutputString (&Private->SimpleTextOutput, (CHAR16 *)L"Graphics Console Started\n\r");
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Error;
|
||||
}
|
||||
}
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
//
|
||||
@@ -915,7 +915,7 @@ GraphicsConsoleConOutOutputString (
|
||||
}
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
|
||||
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||
//
|
||||
// Current mode
|
||||
@@ -1305,7 +1305,7 @@ GraphicsConsoleConOutSetMode (
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
|
||||
ModeData = &(Private->ModeData[ModeNumber]);
|
||||
|
||||
if (ModeData->Columns <= 0 && ModeData->Rows <= 0) {
|
||||
@@ -1443,7 +1443,7 @@ GraphicsConsoleConOutSetMode (
|
||||
This->Mode->CursorColumn = 0;
|
||||
This->Mode->CursorRow = 0;
|
||||
|
||||
FlushCursor (This);
|
||||
FlushCursor (This);
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
@@ -1527,7 +1527,7 @@ GraphicsConsoleConOutClearScreen (
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Foreground;
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background;
|
||||
EFI_TPL OldTpl;
|
||||
|
||||
|
||||
if (This->Mode->Mode == -1) {
|
||||
//
|
||||
// If current mode is not valid, return error.
|
||||
@@ -1876,11 +1876,11 @@ DrawUnicodeWeightAtCursorN (
|
||||
|
||||
/**
|
||||
Flush the cursor on the screen.
|
||||
|
||||
|
||||
If CursorVisible is FALSE, nothing to do and return directly.
|
||||
If CursorVisible is TRUE,
|
||||
If CursorVisible is TRUE,
|
||||
i) If the cursor shows on screen, it will be erased.
|
||||
ii) If the cursor does not show on screen, it will be shown.
|
||||
ii) If the cursor does not show on screen, it will be shown.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for GraphicsConsole driver.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -209,7 +209,7 @@ GraphicsConsoleComponentNameGetControllerName (
|
||||
|
||||
/**
|
||||
Reset the text output device hardware and optionally run diagnostics.
|
||||
|
||||
|
||||
Implements SIMPLE_TEXT_OUTPUT.Reset().
|
||||
If ExtendeVerification is TRUE, then perform dependent Graphics Console
|
||||
device reset, and set display mode to mode 0.
|
||||
@@ -235,7 +235,7 @@ GraphicsConsoleConOutReset (
|
||||
/**
|
||||
Write a Unicode string to the output device.
|
||||
|
||||
Implements SIMPLE_TEXT_OUTPUT.OutputString().
|
||||
Implements SIMPLE_TEXT_OUTPUT.OutputString().
|
||||
The Unicode string will be converted to Glyphs and will be
|
||||
sent to the Graphics Console.
|
||||
|
||||
@@ -262,7 +262,7 @@ GraphicsConsoleConOutOutputString (
|
||||
);
|
||||
|
||||
/**
|
||||
Verifies that all characters in a Unicode string can be output to the
|
||||
Verifies that all characters in a Unicode string can be output to the
|
||||
target device.
|
||||
|
||||
Implements SIMPLE_TEXT_OUTPUT.TestString().
|
||||
@@ -316,7 +316,7 @@ GraphicsConsoleConOutQueryMode (
|
||||
|
||||
/**
|
||||
Sets the output device(s) to a specified mode.
|
||||
|
||||
|
||||
Implements SIMPLE_TEXT_OUTPUT.SetMode().
|
||||
Set the Graphics Console to a specified mode. In this driver, we only support mode 0.
|
||||
|
||||
@@ -324,7 +324,7 @@ GraphicsConsoleConOutQueryMode (
|
||||
@param ModeNumber The text mode to set.
|
||||
|
||||
@retval EFI_SUCCESS The requested text mode is set.
|
||||
@retval EFI_DEVICE_ERROR The requested text mode cannot be set because of
|
||||
@retval EFI_DEVICE_ERROR The requested text mode cannot be set because of
|
||||
Graphics Console device error.
|
||||
@retval EFI_UNSUPPORTED The text mode number is not valid.
|
||||
|
||||
@@ -344,7 +344,7 @@ GraphicsConsoleConOutSetMode (
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param Attribute The attribute to set. Bits 0..3 are the foreground
|
||||
color, and bits 4..6 are the background color.
|
||||
color, and bits 4..6 are the background color.
|
||||
All other bits are undefined and must be zero.
|
||||
|
||||
@retval EFI_SUCCESS The requested attribute is set.
|
||||
@@ -360,7 +360,7 @@ GraphicsConsoleConOutSetAttribute (
|
||||
);
|
||||
|
||||
/**
|
||||
Clears the output device(s) display to the currently selected background
|
||||
Clears the output device(s) display to the currently selected background
|
||||
color.
|
||||
|
||||
Implements SIMPLE_TEXT_OUTPUT.ClearScreen().
|
||||
@@ -451,10 +451,10 @@ GraphicsConsoleControllerDriverSupported (
|
||||
|
||||
|
||||
/**
|
||||
Start this driver on Controller by opening Graphics Output protocol or
|
||||
Start this driver on Controller by opening Graphics Output protocol or
|
||||
UGA Draw protocol, and installing Simple Text Out protocol on Controller.
|
||||
(UGA Draw protocol could be skipped if PcdUgaConsumeSupport is set to FALSE.)
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param Controller Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -473,10 +473,10 @@ GraphicsConsoleControllerDriverStart (
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on Controller by removing Simple Text Out protocol
|
||||
Stop this driver on Controller by removing Simple Text Out protocol
|
||||
and closing the Graphics Output Protocol or UGA Draw protocol on Controller.
|
||||
(UGA Draw protocol could be skipped if PcdUgaConsumeSupport is set to FALSE.)
|
||||
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param Controller Handle of device to stop driver on
|
||||
@@ -485,7 +485,7 @@ GraphicsConsoleControllerDriverStart (
|
||||
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||
|
||||
@retval EFI_SUCCESS This driver is removed Controller.
|
||||
@retval EFI_NOT_STARTED Simple Text Out protocol could not be found the
|
||||
@retval EFI_NOT_STARTED Simple Text Out protocol could not be found the
|
||||
Controller.
|
||||
@retval other This driver was not removed from this device.
|
||||
|
||||
@@ -503,9 +503,9 @@ GraphicsConsoleControllerDriverStop (
|
||||
/**
|
||||
Locate HII Database protocol and HII Font protocol.
|
||||
|
||||
@retval EFI_SUCCESS HII Database protocol and HII Font protocol
|
||||
@retval EFI_SUCCESS HII Database protocol and HII Font protocol
|
||||
are located successfully.
|
||||
@return other Failed to locate HII Database protocol or
|
||||
@return other Failed to locate HII Database protocol or
|
||||
HII Font protocol.
|
||||
|
||||
**/
|
||||
@@ -554,11 +554,11 @@ DrawUnicodeWeightAtCursorN (
|
||||
|
||||
/**
|
||||
Flush the cursor on the screen.
|
||||
|
||||
|
||||
If CursorVisible is FALSE, nothing to do and return directly.
|
||||
If CursorVisible is TRUE,
|
||||
If CursorVisible is TRUE,
|
||||
i) If the cursor shows on screen, it will be erased.
|
||||
ii) If the cursor does not show on screen, it will be shown.
|
||||
ii) If the cursor does not show on screen, it will be shown.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
|
||||
@@ -575,17 +575,17 @@ FlushCursor (
|
||||
for the Graphics Console device based on Graphics Output Protocol.
|
||||
|
||||
If yes, set the graphic device's current mode to this specific mode.
|
||||
|
||||
|
||||
@param GraphicsOutput Graphics Output Protocol instance pointer.
|
||||
@param HorizontalResolution User defined horizontal resolution
|
||||
@param VerticalResolution User defined vertical resolution.
|
||||
@param CurrentModeNumber Current specific mode to be check.
|
||||
|
||||
@retval EFI_SUCCESS The mode is supported.
|
||||
@retval EFI_UNSUPPORTED The specific mode is out of range of graphics
|
||||
@retval EFI_UNSUPPORTED The specific mode is out of range of graphics
|
||||
device supported.
|
||||
@retval other The specific mode does not support user defined
|
||||
resolution or failed to set the current mode to the
|
||||
@retval other The specific mode does not support user defined
|
||||
resolution or failed to set the current mode to the
|
||||
specific mode on graphics device.
|
||||
|
||||
**/
|
||||
|
@@ -3,8 +3,8 @@
|
||||
#
|
||||
# This driver will install Simple Text Output protocol by consuming Graphices Output
|
||||
# protocol or UGA Draw protocol on graphic devices.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// GraphicsConsoleDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Graphics Console DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Implementation of translation upon PC ANSI.
|
||||
|
||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -47,8 +47,8 @@ AnsiRawDataToUnicode (
|
||||
or valid text graphics.
|
||||
|
||||
@param TerminalDevice The terminal device.
|
||||
@param WString The input string.
|
||||
|
||||
@param WString The input string.
|
||||
|
||||
@retval EFI_UNSUPPORTED If not all input characters are valid.
|
||||
@retval EFI_SUCCESS If all input characters are valid.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for Terminal driver.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (C) 2016 Silicon Graphics, Inc. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -1090,7 +1090,7 @@ UnicodeFiFoInsertOneKey (
|
||||
|
||||
/**
|
||||
Remove one pre-fetched key out of the Unicode FIFO buffer.
|
||||
The caller should guarantee that Unicode FIFO buffer is not empty
|
||||
The caller should guarantee that Unicode FIFO buffer is not empty
|
||||
by IsUnicodeFiFoEmpty ().
|
||||
|
||||
@param TerminalDevice Terminal driver private structure.
|
||||
@@ -1292,10 +1292,10 @@ VTUTF8TestString (
|
||||
Translate one Unicode character into VT-UTF8 characters.
|
||||
|
||||
UTF8 Encoding Table
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
|
||||
|
||||
@param Unicode Unicode character need translating.
|
||||
@@ -1331,10 +1331,10 @@ GetOneValidUtf8Char (
|
||||
Translate VT-UTF8 characters into one Unicode character.
|
||||
|
||||
UTF8 Encoding Table
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
|
||||
|
||||
@param Utf8Char VT-UTF8 character set needs translating.
|
||||
|
@@ -632,7 +632,7 @@ KeyNotifyProcessHandler (
|
||||
while (TRUE) {
|
||||
//
|
||||
// Enter critical section
|
||||
//
|
||||
//
|
||||
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||
HasKey = EfiKeyFiFoForNotifyRemoveOneKey (TerminalDevice->EfiKeyFiFoForNotify, &Key);
|
||||
CopyMem (&KeyData.Key, &Key, sizeof (EFI_INPUT_KEY));
|
||||
@@ -1128,7 +1128,7 @@ UnicodeFiFoInsertOneKey (
|
||||
|
||||
/**
|
||||
Remove one pre-fetched key out of the Unicode FIFO buffer.
|
||||
The caller should guarantee that Unicode FIFO buffer is not empty
|
||||
The caller should guarantee that Unicode FIFO buffer is not empty
|
||||
by IsUnicodeFiFoEmpty ().
|
||||
|
||||
@param TerminalDevice Terminal driver private structure.
|
||||
@@ -1304,10 +1304,10 @@ UnicodeToEfiKeyFlushState (
|
||||
There is one special input sequence that will force the system to reset.
|
||||
This is ESC R ESC r ESC R.
|
||||
|
||||
Note: current implementation support terminal types include: PC ANSI, VT100+/VTUTF8, VT100.
|
||||
Note: current implementation support terminal types include: PC ANSI, VT100+/VTUTF8, VT100.
|
||||
The table below is not same with UEFI Spec 2.3 Appendix B Table 201(not support ANSI X3.64 /
|
||||
DEC VT200-500 and extra support PC ANSI, VT100)since UEFI Table 201 is just an example.
|
||||
|
||||
|
||||
Symbols used in table below
|
||||
===========================
|
||||
ESC = 0x1B
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Implementation for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL protocol.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (C) 2016 Silicon Graphics, Inc. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -451,7 +451,7 @@ TerminalConOutQueryMode (
|
||||
//
|
||||
// Get Terminal device data structure pointer.
|
||||
//
|
||||
TerminalDevice = TERMINAL_CON_OUT_DEV_FROM_THIS (This);
|
||||
TerminalDevice = TERMINAL_CON_OUT_DEV_FROM_THIS (This);
|
||||
*Columns = TerminalDevice->TerminalConsoleModeData[ModeNumber].Columns;
|
||||
*Rows = TerminalDevice->TerminalConsoleModeData[ModeNumber].Rows;
|
||||
|
||||
@@ -469,7 +469,7 @@ TerminalConOutQueryMode (
|
||||
@param ModeNumber The text mode to set.
|
||||
|
||||
@retval EFI_SUCCESS The requested text mode is set.
|
||||
@retval EFI_DEVICE_ERROR The requested text mode cannot be set
|
||||
@retval EFI_DEVICE_ERROR The requested text mode cannot be set
|
||||
because of serial device error.
|
||||
@retval EFI_UNSUPPORTED The text mode number is not valid.
|
||||
|
||||
@@ -911,7 +911,7 @@ TerminalIsValidTextGraphics (
|
||||
Detects if a valid ASCII char.
|
||||
|
||||
@param Ascii An ASCII character.
|
||||
|
||||
|
||||
@retval TRUE If it is a valid ASCII character.
|
||||
@retval FALSE If it is not a valid ASCII character.
|
||||
|
||||
@@ -935,7 +935,7 @@ TerminalIsValidAscii (
|
||||
Detects if a valid EFI control character.
|
||||
|
||||
@param CharC An input EFI Control character.
|
||||
|
||||
|
||||
@retval TRUE If it is a valid EFI control character.
|
||||
@retval FALSE If it is not a valid EFI control character.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// TerminalDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Terminal DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Implementation of translation upon VT-UTF8.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -177,10 +177,10 @@ GetOneValidUtf8Char (
|
||||
Translate VT-UTF8 characters into one Unicode character.
|
||||
|
||||
UTF8 Encoding Table
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
|
||||
|
||||
@param Utf8Char VT-UTF8 character set needs translating.
|
||||
@@ -250,10 +250,10 @@ Utf8ToUnicode (
|
||||
Translate one Unicode character into VT-UTF8 characters.
|
||||
|
||||
UTF8 Encoding Table
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
Bits per Character | Unicode Character Range | Unicode Binary Encoding | UTF8 Binary Encoding
|
||||
0-7 | 0x0000 - 0x007F | 00000000 0xxxxxxx | 0xxxxxxx
|
||||
8-11 | 0x0080 - 0x07FF | 00000xxx xxxxxxxx | 110xxxxx 10xxxxxx
|
||||
12-16 | 0x0800 - 0xFFFF | xxxxxxxx xxxxxxxx | 1110xxxx 10xxxxxx 10xxxxxx
|
||||
|
||||
|
||||
@param Unicode Unicode character need translating.
|
||||
|
Reference in New Issue
Block a user