TianoCore EDK2 master
Loading...
Searching...
No Matches
GraphicsConsole.c File Reference
#include "GraphicsConsole.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI GraphicsConsoleControllerDriverSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS InitializeGraphicsConsoleTextMode (IN UINT32 HorizontalResolution, IN UINT32 VerticalResolution, IN UINT32 GopModeNumber, OUT UINTN *TextModeCount, OUT GRAPHICS_CONSOLE_MODE_DATA **TextModeData)
 
EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 
EFI_STATUS CheckModeSupported (EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput, IN UINT32 HorizontalResolution, IN UINT32 VerticalResolution, OUT UINT32 *CurrentModeNumber)
 
EFI_STATUS EfiLocateHiiProtocol (VOID)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutReset (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutOutputString (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutTestString (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutQueryMode (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber, OUT UINTN *Columns, OUT UINTN *Rows)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutSetMode (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutSetAttribute (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Attribute)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutClearScreen (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutSetCursorPosition (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Column, IN UINTN Row)
 
EFI_STATUS EFIAPI GraphicsConsoleConOutEnableCursor (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN Visible)
 
EFI_STATUS GetTextColors (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground, OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background)
 
EFI_STATUS DrawUnicodeWeightAtCursorN (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *UnicodeWeight, IN UINTN Count)
 
EFI_STATUS FlushCursor (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
 
VOID EFIAPI RegisterFontPackage (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI InitializeGraphicsConsole (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate
 
GRAPHICS_CONSOLE_MODE_DATA mGraphicsConsoleModeData []
 
EFI_HII_DATABASE_PROTOCOLmHiiDatabase
 
EFI_HII_FONT_PROTOCOLmHiiFont
 
EFI_HII_HANDLE mHiiHandle
 
VOID * mHiiRegistration
 
EFI_GUID mFontPackageListGuid
 
CHAR16 mCrLfString [3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL }
 
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mGraphicsEfiColors [16]
 
EFI_NARROW_GLYPH mCursorGlyph
 
CHAR16 SpaceStr [] = { NARROW_CHAR, ' ', 0 }
 
EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding
 

Detailed Description

This is the main routine for initializing the Graphics Console support routines.

Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file GraphicsConsole.c.

Function Documentation

◆ CheckModeSupported()

EFI_STATUS CheckModeSupported ( EFI_GRAPHICS_OUTPUT_PROTOCOL GraphicsOutput,
IN UINT32  HorizontalResolution,
IN UINT32  VerticalResolution,
OUT UINT32 *  CurrentModeNumber 
)

Check if the current specific mode supported the user defined resolution for the Graphics Console device based on Graphics Output Protocol.

If yes, set the graphic device's current mode to this specific mode.

Parameters
GraphicsOutputGraphics Output Protocol instance pointer.
HorizontalResolutionUser defined horizontal resolution
VerticalResolutionUser defined vertical resolution.
CurrentModeNumberCurrent specific mode to be check.
Return values
EFI_SUCCESSThe mode is supported.
EFI_UNSUPPORTEDThe specific mode is out of range of graphics device supported.
otherThe specific mode does not support user defined resolution or failed to set the current mode to the specific mode on graphics device.

Definition at line 784 of file GraphicsConsole.c.

◆ DrawUnicodeWeightAtCursorN()

EFI_STATUS DrawUnicodeWeightAtCursorN ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN CHAR16 *  UnicodeWeight,
IN UINTN  Count 
)

Draw Unicode string on the Graphics Console device's screen.

Parameters
ThisProtocol instance pointer.
UnicodeWeightOne Unicode string to be displayed.
CountThe count of Unicode string.
Return values
EFI_OUT_OF_RESOURCESIf no memory resource to use.
EFI_UNSUPPORTEDIf no Graphics Output protocol and UGA Draw protocol exist.
EFI_SUCCESSDrawing Unicode string implemented successfully.

Definition at line 1773 of file GraphicsConsole.c.

◆ EfiLocateHiiProtocol()

EFI_STATUS EfiLocateHiiProtocol ( VOID  )

Locate HII Database protocol and HII Font protocol.

Return values
EFI_SUCCESSHII Database protocol and HII Font protocol are located successfully.
Returns
other Failed to locate HII Database protocol or HII Font protocol.

Definition at line 850 of file GraphicsConsole.c.

◆ FlushCursor()

Flush the cursor on the screen.

If CursorVisible is FALSE, nothing to do and return directly. 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.

Parameters
ThisProtocol instance pointer.
Return values
EFI_SUCCESSThe cursor is erased successfully.

Definition at line 1928 of file GraphicsConsole.c.

◆ GetTextColors()

Gets Graphics Console device's foreground color and background color.

Parameters
ThisProtocol instance pointer.
ForegroundReturned text foreground color.
BackgroundReturned text background color.
Return values
EFI_SUCCESSIt returned always.

Definition at line 1743 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutClearScreen()

EFI_STATUS EFIAPI GraphicsConsoleConOutClearScreen ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This)

Clears the output device(s) display to the currently selected background color.

Implements SIMPLE_TEXT_OUTPUT.ClearScreen().

Parameters
ThisProtocol instance pointer.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_DEVICE_ERRORThe device had an error and could not complete the request.
EFI_UNSUPPORTEDThe output device is not in a valid text mode.

Definition at line 1553 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutEnableCursor()

EFI_STATUS EFIAPI GraphicsConsoleConOutEnableCursor ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN BOOLEAN  Visible 
)

Makes the cursor visible or invisible.

Implements SIMPLE_TEXT_OUTPUT.EnableCursor().

Parameters
ThisProtocol instance pointer.
VisibleIf TRUE, the cursor is set to be visible, If FALSE, the cursor is set to be invisible.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_UNSUPPORTEDThe output device's mode is not currently in a defined text mode.

Definition at line 1706 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutOutputString()

EFI_STATUS EFIAPI GraphicsConsoleConOutOutputString ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN CHAR16 *  WString 
)

Write a Unicode string to the output device.

Implements SIMPLE_TEXT_OUTPUT.OutputString(). The Unicode string will be converted to Glyphs and will be sent to the Graphics Console.

Parameters
ThisProtocol instance pointer.
WStringThe NULL-terminated Unicode string to be displayed on the output device(s). All output devices must also support the Unicode drawing defined in this file.
Return values
EFI_SUCCESSThe string was output to the device.
EFI_DEVICE_ERRORThe device reported an error while attempting to output the text.
EFI_UNSUPPORTEDThe output device's mode is not currently in a defined text mode.
EFI_WARN_UNKNOWN_GLYPHThis warning code indicates that some of the characters in the Unicode string could not be rendered and were skipped.

Definition at line 929 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutQueryMode()

EFI_STATUS EFIAPI GraphicsConsoleConOutQueryMode ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN UINTN  ModeNumber,
OUT UINTN Columns,
OUT UINTN Rows 
)

Returns information for an available text mode that the output device(s) supports

Implements SIMPLE_TEXT_OUTPUT.QueryMode(). It returnes information for an available text mode that the Graphics Console supports. In this driver,we only support text mode 80x25, which is defined as mode 0.

Parameters
ThisProtocol instance pointer.
ModeNumberThe mode number to return information on.
ColumnsThe returned columns of the requested mode.
RowsThe returned rows of the requested mode.
Return values
EFI_SUCCESSThe requested mode information is returned.
EFI_UNSUPPORTEDThe mode number is not valid.

Definition at line 1264 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutReset()

EFI_STATUS EFIAPI GraphicsConsoleConOutReset ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN BOOLEAN  ExtendedVerification 
)

Reset the text output device hardware and optionally run diagnostics.

Implements SIMPLE_TEXT_OUTPUT.Reset(). If ExtendedVerification is TRUE, then perform dependent Graphics Console device reset, and set display mode to mode 0. If ExtendedVerification is FALSE, only set display mode to mode 0.

Parameters
ThisProtocol instance pointer.
ExtendedVerificationIndicates that the driver may perform a more exhaustive verification operation of the device during reset.
Return values
EFI_SUCCESSThe text output device was reset.
EFI_DEVICE_ERRORThe text output device is not functioning correctly and could not be reset.

Definition at line 889 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutSetAttribute()

EFI_STATUS EFIAPI GraphicsConsoleConOutSetAttribute ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN UINTN  Attribute 
)

Sets the background and foreground colors for the OutputString () and ClearScreen () functions.

Implements SIMPLE_TEXT_OUTPUT.SetAttribute().

Parameters
ThisProtocol instance pointer.
AttributeThe attribute to set. Bits 0..3 are the foreground color, and bits 4..6 are the background color. All other bits are undefined and must be zero.
Return values
EFI_SUCCESSThe requested attribute is set.
EFI_DEVICE_ERRORThe requested attribute cannot be set due to Graphics Console port error.
EFI_UNSUPPORTEDThe attribute requested is not defined.

Definition at line 1510 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutSetCursorPosition()

EFI_STATUS EFIAPI GraphicsConsoleConOutSetCursorPosition ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN UINTN  Column,
IN UINTN  Row 
)

Sets the current coordinates of the cursor position.

Implements SIMPLE_TEXT_OUTPUT.SetCursorPosition().

Parameters
ThisProtocol instance pointer.
ColumnThe position to set the cursor to. Must be greater than or equal to zero and less than the number of columns and rows by QueryMode ().
RowThe position to set the cursor to. Must be greater than or equal to zero and less than the number of columns and rows by QueryMode ().
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_DEVICE_ERRORThe device had an error and could not complete the request.
EFI_UNSUPPORTEDThe output device is not in a valid text mode, or the cursor position is invalid for the current mode.

Definition at line 1642 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutSetMode()

EFI_STATUS EFIAPI GraphicsConsoleConOutSetMode ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN UINTN  ModeNumber 
)

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.

Parameters
ThisProtocol instance pointer.
ModeNumberThe text mode to set.
Return values
EFI_SUCCESSThe requested text mode is set.
EFI_DEVICE_ERRORThe requested text mode cannot be set because of Graphics Console device error.
EFI_UNSUPPORTEDThe text mode number is not valid.

Definition at line 1314 of file GraphicsConsole.c.

◆ GraphicsConsoleConOutTestString()

EFI_STATUS EFIAPI GraphicsConsoleConOutTestString ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL This,
IN CHAR16 *  WString 
)

Verifies that all characters in a Unicode string can be output to the target device.

Implements SIMPLE_TEXT_OUTPUT.TestString(). If one of the characters in the *Wstring is neither valid valid Unicode drawing characters, not ASCII code, then this function will return EFI_UNSUPPORTED

Parameters
ThisProtocol instance pointer.
WStringThe NULL-terminated Unicode string to be examined for the output device(s).
Return values
EFI_SUCCESSThe device(s) are capable of rendering the output string.
EFI_UNSUPPORTEDSome of the characters in the Unicode string cannot be rendered by one or more of the output devices mapped by the EFI handle.

Definition at line 1209 of file GraphicsConsole.c.

◆ GraphicsConsoleControllerDriverStart()

EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

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

Parameters
ThisProtocol instance pointer.
ControllerHandle of device to bind driver to
RemainingDevicePathOptional parameter use to pick a specific child device to start.
Return values
EFI_SUCCESSThis driver is added to Controller.
otherThis driver does not support this device.

Definition at line 387 of file GraphicsConsole.c.

◆ GraphicsConsoleControllerDriverStop()

EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

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

Parameters
ThisProtocol instance pointer.
ControllerHandle of device to stop driver on
NumberOfChildrenNumber of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver.
ChildHandleBufferList of Child Handles to Stop.
Return values
EFI_SUCCESSThis driver is removed Controller.
EFI_NOT_STARTEDSimple Text Out protocol could not be found the Controller.
otherThis driver was not removed from this device.

Definition at line 696 of file GraphicsConsole.c.

◆ GraphicsConsoleControllerDriverSupported()

EFI_STATUS EFIAPI GraphicsConsoleControllerDriverSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Test to see if Graphics Console could be supported on the Controller.

Graphics Console could be supported if Graphics Output Protocol or UGA Draw Protocol exists on the Controller. (UGA Draw Protocol could be skipped if PcdUgaConsumeSupport is set to FALSE.)

Parameters
ThisProtocol instance pointer.
ControllerHandle of device to test.
RemainingDevicePathOptional parameter use to pick a specific child device to start.
Return values
EFI_SUCCESSThis driver supports this device.
otherThis driver does not support this device.

Definition at line 122 of file GraphicsConsole.c.

◆ InitializeGraphicsConsole()

EFI_STATUS EFIAPI InitializeGraphicsConsole ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The user Entry Point for module GraphicsConsole. The user code starts with this function.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
Returns
other Some error occurs when executing this entry point.

Definition at line 2123 of file GraphicsConsole.c.

◆ InitializeGraphicsConsoleTextMode()

EFI_STATUS InitializeGraphicsConsoleTextMode ( IN UINT32  HorizontalResolution,
IN UINT32  VerticalResolution,
IN UINT32  GopModeNumber,
OUT UINTN TextModeCount,
OUT GRAPHICS_CONSOLE_MODE_DATA **  TextModeData 
)

Initialize all the text modes which the graphics console supports.

It returns information for available text modes that the graphics can support.

Parameters
[in]HorizontalResolutionThe size of video screen in pixels in the X dimension.
[in]VerticalResolutionThe size of video screen in pixels in the Y dimension.
[in]GopModeNumberThe graphics mode number which graphics console is based on.
[out]TextModeCountThe total number of text modes that graphics console supports.
[out]TextModeDataThe buffer to the text modes column and row information. Caller is responsible to free it when it's non-NULL.
Return values
EFI_SUCCESSThe supporting mode information is returned.
EFI_INVALID_PARAMETERThe parameters are invalid.

Definition at line 234 of file GraphicsConsole.c.

◆ RegisterFontPackage()

VOID EFIAPI RegisterFontPackage ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

HII Database Protocol notification event handler.

Register font package when HII Database Protocol has been installed.

Parameters
[in]EventEvent whose notification function is being invoked.
[in]ContextPointer to the notification function's context.

Definition at line 2044 of file GraphicsConsole.c.

Variable Documentation

◆ gGraphicsConsoleDriverBinding

EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding
Initial value:
= {
0xa,
}
EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
EFI_STATUS EFIAPI GraphicsConsoleControllerDriverStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI GraphicsConsoleControllerDriverSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
#define NULL
Definition: Base.h:319

Definition at line 95 of file GraphicsConsole.c.

◆ mCrLfString

CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL }

Definition at line 63 of file GraphicsConsole.c.

◆ mCursorGlyph

EFI_NARROW_GLYPH mCursorGlyph
Initial value:
= {
0x0000,
0x00,
{ 0x00,0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF }
}

Definition at line 87 of file GraphicsConsole.c.

◆ mFontPackageListGuid

EFI_GUID mFontPackageListGuid
Initial value:
= {
0xf5f219d3, 0x7006, 0x4648, { 0xac, 0x8d, 0xd6, 0x1d, 0xfb, 0x7b, 0xc6, 0xad }
}

Definition at line 59 of file GraphicsConsole.c.

◆ mGraphicsConsoleDevTemplate

GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate
Initial value:
= {
GRAPHICS_CONSOLE_DEV_SIGNATURE,
{
},
{
0,
-1,
EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK),
0,
0,
},
}
EFI_STATUS EFIAPI GraphicsConsoleConOutQueryMode(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber, OUT UINTN *Columns, OUT UINTN *Rows)
EFI_STATUS EFIAPI GraphicsConsoleConOutSetAttribute(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Attribute)
EFI_STATUS EFIAPI GraphicsConsoleConOutClearScreen(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
EFI_STATUS EFIAPI GraphicsConsoleConOutSetMode(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber)
EFI_STATUS EFIAPI GraphicsConsoleConOutEnableCursor(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN Visible)
EFI_STATUS EFIAPI GraphicsConsoleConOutTestString(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
EFI_STATUS EFIAPI GraphicsConsoleConOutReset(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
EFI_STATUS EFIAPI GraphicsConsoleConOutSetCursorPosition(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Column, IN UINTN Row)
EFI_STATUS EFIAPI GraphicsConsoleConOutOutputString(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
#define FALSE
Definition: Base.h:307

Definition at line 14 of file GraphicsConsole.c.

◆ mGraphicsConsoleModeData

GRAPHICS_CONSOLE_MODE_DATA mGraphicsConsoleModeData[]
Initial value:
= {
{ 100, 31 },
{ 128, 40 },
{ 160, 42 },
{ 240, 56 },
{ 0, 0 }
}

Definition at line 42 of file GraphicsConsole.c.

◆ mGraphicsEfiColors

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mGraphicsEfiColors[16]
Initial value:
= {
{ 0x00, 0x00, 0x00, 0x00 },
{ 0x98, 0x00, 0x00, 0x00 },
{ 0x00, 0x98, 0x00, 0x00 },
{ 0x98, 0x98, 0x00, 0x00 },
{ 0x00, 0x00, 0x98, 0x00 },
{ 0x98, 0x00, 0x98, 0x00 },
{ 0x00, 0x98, 0x98, 0x00 },
{ 0x98, 0x98, 0x98, 0x00 },
{ 0x30, 0x30, 0x30, 0x00 },
{ 0xff, 0x00, 0x00, 0x00 },
{ 0x00, 0xff, 0x00, 0x00 },
{ 0xff, 0xff, 0x00, 0x00 },
{ 0x00, 0x00, 0xff, 0x00 },
{ 0xff, 0x00, 0xff, 0x00 },
{ 0x00, 0xff, 0xff, 0x00 },
{ 0xff, 0xff, 0xff, 0x00 }
}

Definition at line 65 of file GraphicsConsole.c.

◆ mHiiDatabase

Definition at line 54 of file GraphicsConsole.c.

◆ mHiiFont

Definition at line 55 of file GraphicsConsole.c.

◆ mHiiHandle

EFI_HII_HANDLE mHiiHandle

Definition at line 56 of file GraphicsConsole.c.

◆ mHiiRegistration

VOID* mHiiRegistration

Definition at line 57 of file GraphicsConsole.c.

◆ SpaceStr

CHAR16 SpaceStr[] = { NARROW_CHAR, ' ', 0 }

Definition at line 93 of file GraphicsConsole.c.