2 BDS Lib functions which contain all the code to connect console device
4 Copyright (c) 2004 - 2009, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "InternalBdsLib.h"
19 Check if we need to save the EFI variable with "ConVarName" as name
21 If ConVarName is NULL, then ASSERT().
23 @param ConVarName The name of the EFI variable.
25 @retval TRUE Set the EFI variable as NV type.
26 @retval FALSE EFI variable as NV type can be set NonNV.
35 ASSERT (ConVarName
!= NULL
);
40 // If the variable includes "Dev" at last, we consider
41 // it does not support NV attribute.
43 while (*Ptr
!= L
'\0') {
47 if (((INTN
)((UINTN
)Ptr
- (UINTN
)ConVarName
) / sizeof (CHAR16
)) <= 3) {
51 if ((*(Ptr
- 3) == 'D') && (*(Ptr
- 2) == 'e') && (*(Ptr
- 1) == 'v')) {
59 Fill console handle in System Table if there are no valid console handle in.
61 Firstly, check the validation of console handle in System Table. If it is invalid,
62 update it by the first console device handle from EFI console variable.
64 @param VarName The name of the EFI console variable.
65 @param ConsoleGuid Specified Console protocol GUID.
66 @param ConsoleHandle On IN, console handle in System Table to be checked.
67 On OUT, new console hanlde in system table.
68 @param ProtocolInterface On IN, console protocol on console handle in System Table to be checked.
69 On OUT, new console protocol on new console hanlde in system table.
71 @retval TRUE System Table has been updated.
72 @retval FALSE System Table hasn't been updated.
76 UpdateSystemTableConsole (
78 IN EFI_GUID
*ConsoleGuid
,
79 IN OUT EFI_HANDLE
*ConsoleHandle
,
80 IN OUT VOID
**ProtocolInterface
85 EFI_DEVICE_PATH_PROTOCOL
*FullDevicePath
;
86 EFI_DEVICE_PATH_PROTOCOL
*VarConsole
;
87 EFI_DEVICE_PATH_PROTOCOL
*Instance
;
91 ASSERT (VarName
!= NULL
);
92 ASSERT (ConsoleHandle
!= NULL
);
93 ASSERT (ConsoleGuid
!= NULL
);
94 ASSERT (ProtocolInterface
!= NULL
);
96 if (*ConsoleHandle
!= NULL
) {
97 Status
= gBS
->HandleProtocol (
102 if (Status
== EFI_SUCCESS
&& Interface
== *ProtocolInterface
) {
104 // If ConsoleHandle is valid and console protocol on this handle also
105 // also matched, just return.
112 // Get all possible consoles device path from EFI variable
114 VarConsole
= BdsLibGetVariableAndSize (
116 &gEfiGlobalVariableGuid
,
119 if (VarConsole
== NULL
) {
121 // If there is no any console device, just return.
126 FullDevicePath
= VarConsole
;
130 // Check every instance of the console variable
132 Instance
= GetNextDevicePathInstance (&VarConsole
, &DevicePathSize
);
133 if (Instance
== NULL
) {
134 FreePool (FullDevicePath
);
139 // Find console device handle by device path instance
141 Status
= gBS
->LocateDevicePath (
146 if (!EFI_ERROR (Status
)) {
148 // Get the console protocol on this console device handle
150 Status
= gBS
->HandleProtocol (
155 if (!EFI_ERROR (Status
)) {
157 // Update new console handle in System Table.
159 *ConsoleHandle
= NewHandle
;
160 *ProtocolInterface
= Interface
;
165 } while (Instance
!= NULL
);
168 // No any available console devcie found.
174 This function update console variable based on ConVarName, it can
175 add or remove one specific console device path from the variable
177 @param ConVarName Console related variable name, ConIn, ConOut,
179 @param CustomizedConDevicePath The console device path which will be added to
180 the console variable ConVarName, this parameter
181 can not be multi-instance.
182 @param ExclusiveDevicePath The console device path which will be removed
183 from the console variable ConVarName, this
184 parameter can not be multi-instance.
186 @retval EFI_UNSUPPORTED The added device path is same to the removed one.
187 @retval EFI_SUCCESS Success add or remove the device path from the
193 BdsLibUpdateConsoleVariable (
194 IN CHAR16
*ConVarName
,
195 IN EFI_DEVICE_PATH_PROTOCOL
*CustomizedConDevicePath
,
196 IN EFI_DEVICE_PATH_PROTOCOL
*ExclusiveDevicePath
199 EFI_DEVICE_PATH_PROTOCOL
*VarConsole
;
200 UINTN DevicePathSize
;
201 EFI_DEVICE_PATH_PROTOCOL
*NewDevicePath
;
202 EFI_DEVICE_PATH_PROTOCOL
*TempNewDevicePath
;
209 // Notes: check the device path point, here should check
210 // with compare memory
212 if (CustomizedConDevicePath
== ExclusiveDevicePath
) {
213 return EFI_UNSUPPORTED
;
216 // Delete the ExclusiveDevicePath from current default console
218 VarConsole
= BdsLibGetVariableAndSize (
220 &gEfiGlobalVariableGuid
,
225 // Initialize NewDevicePath
227 NewDevicePath
= VarConsole
;
230 // If ExclusiveDevicePath is even the part of the instance in VarConsole, delete it.
231 // In the end, NewDevicePath is the final device path.
233 if (ExclusiveDevicePath
!= NULL
&& VarConsole
!= NULL
) {
234 NewDevicePath
= BdsLibDelPartMatchInstance (VarConsole
, ExclusiveDevicePath
);
237 // Try to append customized device path to NewDevicePath.
239 if (CustomizedConDevicePath
!= NULL
) {
240 if (!BdsLibMatchDevicePaths (NewDevicePath
, CustomizedConDevicePath
)) {
242 // Check if there is part of CustomizedConDevicePath in NewDevicePath, delete it.
244 NewDevicePath
= BdsLibDelPartMatchInstance (NewDevicePath
, CustomizedConDevicePath
);
246 // In the first check, the default console variable will be _ModuleEntryPoint,
247 // just append current customized device path
249 TempNewDevicePath
= NewDevicePath
;
250 NewDevicePath
= AppendDevicePathInstance (NewDevicePath
, CustomizedConDevicePath
);
251 if (TempNewDevicePath
!= NULL
) {
252 FreePool(TempNewDevicePath
);
258 // The attribute for ConInDev, ConOutDev and ErrOutDev does not include NV.
260 if (IsNvNeed(ConVarName
)) {
262 // ConVarName has NV attribute.
264 Attributes
= EFI_VARIABLE_BOOTSERVICE_ACCESS
| EFI_VARIABLE_RUNTIME_ACCESS
| EFI_VARIABLE_NON_VOLATILE
;
267 // ConVarName does not have NV attribute.
269 Attributes
= EFI_VARIABLE_BOOTSERVICE_ACCESS
| EFI_VARIABLE_RUNTIME_ACCESS
;
273 // Finally, Update the variable of the default console by NewDevicePath
277 &gEfiGlobalVariableGuid
,
279 GetDevicePathSize (NewDevicePath
),
283 if (VarConsole
== NewDevicePath
) {
284 if (VarConsole
!= NULL
) {
285 FreePool(VarConsole
);
288 if (VarConsole
!= NULL
) {
289 FreePool(VarConsole
);
291 if (NewDevicePath
!= NULL
) {
292 FreePool(NewDevicePath
);
302 Connect the console device base on the variable ConVarName, if
303 device path of the ConVarName is multi-instance device path, if
304 anyone of the instances is connected success, then this function
307 @param ConVarName Console related variable name, ConIn, ConOut,
310 @retval EFI_NOT_FOUND There is not any console devices connected
312 @retval EFI_SUCCESS Success connect any one instance of the console
313 device path base on the variable ConVarName.
318 BdsLibConnectConsoleVariable (
319 IN CHAR16
*ConVarName
323 EFI_DEVICE_PATH_PROTOCOL
*StartDevicePath
;
325 EFI_DEVICE_PATH_PROTOCOL
*Instance
;
326 EFI_DEVICE_PATH_PROTOCOL
*Next
;
327 EFI_DEVICE_PATH_PROTOCOL
*CopyOfDevicePath
;
331 Status
= EFI_SUCCESS
;
335 // Check if the console variable exist
337 StartDevicePath
= BdsLibGetVariableAndSize (
339 &gEfiGlobalVariableGuid
,
342 if (StartDevicePath
== NULL
) {
343 return EFI_UNSUPPORTED
;
346 CopyOfDevicePath
= StartDevicePath
;
349 // Check every instance of the console variable
351 Instance
= GetNextDevicePathInstance (&CopyOfDevicePath
, &Size
);
352 if (Instance
== NULL
) {
353 FreePool (StartDevicePath
);
354 return EFI_UNSUPPORTED
;
358 while (!IsDevicePathEndType (Next
)) {
359 Next
= NextDevicePathNode (Next
);
362 SetDevicePathEndNode (Next
);
364 // Connect the instance device path
366 Status
= BdsLibConnectDevicePath (Instance
);
367 if (EFI_ERROR (Status
)) {
369 // Delete the instance from the console varialbe
371 BdsLibUpdateConsoleVariable (ConVarName
, NULL
, Instance
);
376 } while (CopyOfDevicePath
!= NULL
);
378 FreePool (StartDevicePath
);
381 return EFI_NOT_FOUND
;
389 This function will search every simpletext device in current system,
390 and make every simpletext device as pertantial console device.
395 BdsLibConnectAllConsoles (
400 EFI_DEVICE_PATH_PROTOCOL
*ConDevicePath
;
402 EFI_HANDLE
*HandleBuffer
;
407 ConDevicePath
= NULL
;
410 // Update all the console variables
412 gBS
->LocateHandleBuffer (
414 &gEfiSimpleTextInProtocolGuid
,
420 for (Index
= 0; Index
< HandleCount
; Index
++) {
421 gBS
->HandleProtocol (
423 &gEfiDevicePathProtocolGuid
,
424 (VOID
**) &ConDevicePath
426 BdsLibUpdateConsoleVariable (L
"ConIn", ConDevicePath
, NULL
);
429 if (HandleBuffer
!= NULL
) {
430 FreePool(HandleBuffer
);
434 gBS
->LocateHandleBuffer (
436 &gEfiSimpleTextOutProtocolGuid
,
441 for (Index
= 0; Index
< HandleCount
; Index
++) {
442 gBS
->HandleProtocol (
444 &gEfiDevicePathProtocolGuid
,
445 (VOID
**) &ConDevicePath
447 BdsLibUpdateConsoleVariable (L
"ConOut", ConDevicePath
, NULL
);
448 BdsLibUpdateConsoleVariable (L
"ErrOut", ConDevicePath
, NULL
);
451 if (HandleBuffer
!= NULL
) {
452 FreePool(HandleBuffer
);
456 // Connect all console variables
458 BdsLibConnectAllDefaultConsoles ();
463 This function will connect console device base on the console
464 device variable ConIn, ConOut and ErrOut.
466 @retval EFI_SUCCESS At least one of the ConIn and ConOut device have
467 been connected success.
468 @retval EFI_STATUS Return the status of BdsLibConnectConsoleVariable ().
473 BdsLibConnectAllDefaultConsoles (
478 BOOLEAN SystemTableUpdated
;
481 // Connect all default console variables
485 // It seems impossible not to have any ConOut device on platform,
486 // so we check the status here.
488 Status
= BdsLibConnectConsoleVariable (L
"ConOut");
489 if (EFI_ERROR (Status
)) {
494 // Insert the performance probe for Console Out
496 PERF_START (NULL
, "ConOut", "BDS", 1);
497 PERF_END (NULL
, "ConOut", "BDS", 0);
500 // Because possibly the platform is legacy free, in such case,
501 // ConIn devices (Serial Port and PS2 Keyboard ) does not exist,
502 // so we need not check the status.
504 BdsLibConnectConsoleVariable (L
"ConIn");
507 // The _ModuleEntryPoint err out var is legal.
509 BdsLibConnectConsoleVariable (L
"ErrOut");
511 SystemTableUpdated
= FALSE
;
513 // Fill console handles in System Table if no console device assignd.
515 if (UpdateSystemTableConsole (L
"ConIn", &gEfiSimpleTextInProtocolGuid
, &gST
->ConsoleInHandle
, (VOID
**) &gST
->ConIn
)) {
516 SystemTableUpdated
= TRUE
;
518 if (UpdateSystemTableConsole (L
"ConOut", &gEfiSimpleTextOutProtocolGuid
, &gST
->ConsoleOutHandle
, (VOID
**) &gST
->ConOut
)) {
519 SystemTableUpdated
= TRUE
;
521 if (UpdateSystemTableConsole (L
"ErrOut", &gEfiSimpleTextOutProtocolGuid
, &gST
->StandardErrorHandle
, (VOID
**) &gST
->StdErr
)) {
522 SystemTableUpdated
= TRUE
;
525 if (SystemTableUpdated
) {
527 // Update the CRC32 in the EFI System Table header
530 gBS
->CalculateCrc32 (
542 Convert a *.BMP graphics image to a GOP blt buffer. If a NULL Blt buffer
543 is passed in a GopBlt buffer will be allocated by this routine. If a GopBlt
544 buffer is passed in it will be used if it is big enough.
546 @param BmpImage Pointer to BMP file
547 @param BmpImageSize Number of bytes in BmpImage
548 @param GopBlt Buffer containing GOP version of BmpImage.
549 @param GopBltSize Size of GopBlt in bytes.
550 @param PixelHeight Height of GopBlt/BmpImage in pixels
551 @param PixelWidth Width of GopBlt/BmpImage in pixels
553 @retval EFI_SUCCESS GopBlt and GopBltSize are returned.
554 @retval EFI_UNSUPPORTED BmpImage is not a valid *.BMP image
555 @retval EFI_BUFFER_TOO_SMALL The passed in GopBlt buffer is not big enough.
556 GopBltSize will contain the required size.
557 @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate.
563 IN UINTN BmpImageSize
,
564 IN OUT VOID
**GopBlt
,
565 IN OUT UINTN
*GopBltSize
,
566 OUT UINTN
*PixelHeight
,
567 OUT UINTN
*PixelWidth
572 BMP_IMAGE_HEADER
*BmpHeader
;
573 BMP_COLOR_MAP
*BmpColorMap
;
574 EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*BltBuffer
;
575 EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*Blt
;
576 UINT64 BltBufferSize
;
583 BmpHeader
= (BMP_IMAGE_HEADER
*) BmpImage
;
585 if (BmpHeader
->CharB
!= 'B' || BmpHeader
->CharM
!= 'M') {
586 return EFI_UNSUPPORTED
;
590 // Doesn't support compress.
592 if (BmpHeader
->CompressionType
!= 0) {
593 return EFI_UNSUPPORTED
;
597 // Calculate Color Map offset in the image.
600 BmpColorMap
= (BMP_COLOR_MAP
*) (Image
+ sizeof (BMP_IMAGE_HEADER
));
603 // Calculate graphics image data address in the image
605 Image
= ((UINT8
*) BmpImage
) + BmpHeader
->ImageOffset
;
609 // Calculate the BltBuffer needed size.
611 BltBufferSize
= MultU64x32 ((UINT64
) BmpHeader
->PixelWidth
, BmpHeader
->PixelHeight
);
613 // Ensure the BltBufferSize * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) doesn't overflow
615 if (BltBufferSize
> DivU64x32 ((UINTN
) ~0, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL
))) {
616 return EFI_UNSUPPORTED
;
618 BltBufferSize
= MultU64x32 (BltBufferSize
, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL
));
621 if (*GopBlt
== NULL
) {
623 // GopBlt is not allocated by caller.
625 *GopBltSize
= (UINTN
) BltBufferSize
;
626 *GopBlt
= AllocatePool (*GopBltSize
);
628 if (*GopBlt
== NULL
) {
629 return EFI_OUT_OF_RESOURCES
;
633 // GopBlt has been allocated by caller.
635 if (*GopBltSize
< (UINTN
) BltBufferSize
) {
636 *GopBltSize
= (UINTN
) BltBufferSize
;
637 return EFI_BUFFER_TOO_SMALL
;
641 *PixelWidth
= BmpHeader
->PixelWidth
;
642 *PixelHeight
= BmpHeader
->PixelHeight
;
645 // Convert image from BMP to Blt buffer format
648 for (Height
= 0; Height
< BmpHeader
->PixelHeight
; Height
++) {
649 Blt
= &BltBuffer
[(BmpHeader
->PixelHeight
- Height
- 1) * BmpHeader
->PixelWidth
];
650 for (Width
= 0; Width
< BmpHeader
->PixelWidth
; Width
++, Image
++, Blt
++) {
651 switch (BmpHeader
->BitPerPixel
) {
654 // Convert 1-bit (2 colors) BMP to 24-bit color
656 for (Index
= 0; Index
< 8 && Width
< BmpHeader
->PixelWidth
; Index
++) {
657 Blt
->Red
= BmpColorMap
[((*Image
) >> (7 - Index
)) & 0x1].Red
;
658 Blt
->Green
= BmpColorMap
[((*Image
) >> (7 - Index
)) & 0x1].Green
;
659 Blt
->Blue
= BmpColorMap
[((*Image
) >> (7 - Index
)) & 0x1].Blue
;
670 // Convert 4-bit (16 colors) BMP Palette to 24-bit color
672 Index
= (*Image
) >> 4;
673 Blt
->Red
= BmpColorMap
[Index
].Red
;
674 Blt
->Green
= BmpColorMap
[Index
].Green
;
675 Blt
->Blue
= BmpColorMap
[Index
].Blue
;
676 if (Width
< (BmpHeader
->PixelWidth
- 1)) {
679 Index
= (*Image
) & 0x0f;
680 Blt
->Red
= BmpColorMap
[Index
].Red
;
681 Blt
->Green
= BmpColorMap
[Index
].Green
;
682 Blt
->Blue
= BmpColorMap
[Index
].Blue
;
688 // Convert 8-bit (256 colors) BMP Palette to 24-bit color
690 Blt
->Red
= BmpColorMap
[*Image
].Red
;
691 Blt
->Green
= BmpColorMap
[*Image
].Green
;
692 Blt
->Blue
= BmpColorMap
[*Image
].Blue
;
699 Blt
->Blue
= *Image
++;
700 Blt
->Green
= *Image
++;
706 // Other bit format BMP is not supported.
712 return EFI_UNSUPPORTED
;
718 ImageIndex
= (UINTN
) (Image
- ImageHeader
);
719 if ((ImageIndex
% 4) != 0) {
721 // Bmp Image starts each row on a 32-bit boundary!
723 Image
= Image
+ (4 - (ImageIndex
% 4));
731 Use SystemTable Conout to stop video based Simple Text Out consoles from going
732 to the video device. Put up LogoFile on every video device that is a console.
734 @param[in] LogoFile File name of logo to display on the center of the screen.
736 @retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
737 @retval EFI_UNSUPPORTED Logo not found
743 IN EFI_GUID
*LogoFile
747 EFI_OEM_BADGING_PROTOCOL
*Badging
;
756 EFI_BADGING_FORMAT Format
;
757 EFI_BADGING_DISPLAY_ATTRIBUTE Attribute
;
762 EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*Blt
;
763 EFI_UGA_DRAW_PROTOCOL
*UgaDraw
;
766 EFI_GRAPHICS_OUTPUT_PROTOCOL
*GraphicsOutput
;
770 // Try to open GOP first
772 Status
= gBS
->HandleProtocol (gST
->ConsoleOutHandle
, &gEfiGraphicsOutputProtocolGuid
, (VOID
**) &GraphicsOutput
);
773 if (EFI_ERROR (Status
) && FeaturePcdGet (PcdUgaConsumeSupport
)) {
774 GraphicsOutput
= NULL
;
776 // Open GOP failed, try to open UGA
778 Status
= gBS
->HandleProtocol (gST
->ConsoleOutHandle
, &gEfiUgaDrawProtocolGuid
, (VOID
**) &UgaDraw
);
780 if (EFI_ERROR (Status
)) {
781 return EFI_UNSUPPORTED
;
785 // Erase Cursor from screen
787 gST
->ConOut
->EnableCursor (gST
->ConOut
, FALSE
);
790 Status
= gBS
->LocateProtocol (&gEfiOEMBadgingProtocolGuid
, NULL
, (VOID
**) &Badging
);
792 if (GraphicsOutput
!= NULL
) {
793 SizeOfX
= GraphicsOutput
->Mode
->Info
->HorizontalResolution
;
794 SizeOfY
= GraphicsOutput
->Mode
->Info
->VerticalResolution
;
796 } else if (UgaDraw
!= NULL
&& FeaturePcdGet (PcdUgaConsumeSupport
)) {
797 Status
= UgaDraw
->GetMode (UgaDraw
, &SizeOfX
, &SizeOfY
, &ColorDepth
, &RefreshRate
);
798 if (EFI_ERROR (Status
)) {
799 return EFI_UNSUPPORTED
;
802 return EFI_UNSUPPORTED
;
810 if (Badging
!= NULL
) {
812 // Get image from OEMBadging protocol.
814 Status
= Badging
->GetImage (
824 if (EFI_ERROR (Status
)) {
829 // Currently only support BMP format.
831 if (Format
!= EfiBadgingFormatBMP
) {
832 if (ImageData
!= NULL
) {
833 FreePool (ImageData
);
839 // Get the specified image from FV.
841 Status
= GetSectionFromAnyFv (LogoFile
, EFI_SECTION_RAW
, 0, (VOID
**) &ImageData
, &ImageSize
);
842 if (EFI_ERROR (Status
)) {
843 return EFI_UNSUPPORTED
;
848 Attribute
= EfiBadgingDisplayAttributeCenter
;
852 Status
= ConvertBmpToGopBlt (
860 if (EFI_ERROR (Status
)) {
861 FreePool (ImageData
);
863 if (Badging
== NULL
) {
871 // Calculate the display position according to Attribute.
874 case EfiBadgingDisplayAttributeLeftTop
:
879 case EfiBadgingDisplayAttributeCenterTop
:
880 DestX
= (SizeOfX
- Width
) / 2;
884 case EfiBadgingDisplayAttributeRightTop
:
885 DestX
= (SizeOfX
- Width
- CoordinateX
);
886 DestY
= CoordinateY
;;
889 case EfiBadgingDisplayAttributeCenterRight
:
890 DestX
= (SizeOfX
- Width
- CoordinateX
);
891 DestY
= (SizeOfY
- Height
) / 2;
894 case EfiBadgingDisplayAttributeRightBottom
:
895 DestX
= (SizeOfX
- Width
- CoordinateX
);
896 DestY
= (SizeOfY
- Height
- CoordinateY
);
899 case EfiBadgingDisplayAttributeCenterBottom
:
900 DestX
= (SizeOfX
- Width
) / 2;
901 DestY
= (SizeOfY
- Height
- CoordinateY
);
904 case EfiBadgingDisplayAttributeLeftBottom
:
906 DestY
= (SizeOfY
- Height
- CoordinateY
);
909 case EfiBadgingDisplayAttributeCenterLeft
:
911 DestY
= (SizeOfY
- Height
) / 2;
914 case EfiBadgingDisplayAttributeCenter
:
915 DestX
= (SizeOfX
- Width
) / 2;
916 DestY
= (SizeOfY
- Height
) / 2;
925 if ((DestX
>= 0) && (DestY
>= 0)) {
926 if (GraphicsOutput
!= NULL
) {
927 Status
= GraphicsOutput
->Blt (
937 Width
* sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL
)
939 } else if (UgaDraw
!= NULL
&& FeaturePcdGet (PcdUgaConsumeSupport
)) {
940 Status
= UgaDraw
->Blt (
942 (EFI_UGA_PIXEL
*) Blt
,
943 EfiUgaBltBufferToVideo
,
950 Width
* sizeof (EFI_UGA_PIXEL
)
953 Status
= EFI_UNSUPPORTED
;
957 FreePool (ImageData
);
963 if (Badging
== NULL
) {
972 Use SystemTable Conout to turn on video based Simple Text Out consoles. The
973 Simple Text Out screens will now be synced up with all non video output devices
975 @retval EFI_SUCCESS UGA devices are back in text mode and synced up.
986 // Enable Cursor on Screen
988 gST
->ConOut
->EnableCursor (gST
->ConOut
, TRUE
);