13 { 0x00, 0x00, 0x00, 0x00 },
14 { 0x98, 0x00, 0x00, 0x00 },
15 { 0x00, 0x98, 0x00, 0x00 },
16 { 0x98, 0x98, 0x00, 0x00 },
17 { 0x00, 0x00, 0x98, 0x00 },
18 { 0x98, 0x00, 0x98, 0x00 },
19 { 0x00, 0x98, 0x98, 0x00 },
20 { 0x98, 0x98, 0x98, 0x00 },
21 { 0x10, 0x10, 0x10, 0x00 },
22 { 0xff, 0x10, 0x10, 0x00 },
23 { 0x10, 0xff, 0x10, 0x00 },
24 { 0xff, 0xff, 0x10, 0x00 },
25 { 0x10, 0x10, 0xff, 0x00 },
26 { 0xf0, 0x10, 0xff, 0x00 },
27 { 0x10, 0xff, 0xff, 0x00 },
28 { 0xff, 0xff, 0xff, 0x00 }
61 ASSERT (Format !=
NULL);
62 ASSERT (((
UINTN)Format & BIT0) == 0);
63 ASSERT (Console !=
NULL);
65 BufferSize = (
PcdGet32 (PcdUefiLibMaxPrintBufferSize) + 1) *
sizeof (CHAR16);
70 ASSERT (Buffer !=
NULL);
76 if ((Console !=
NULL) && (Return > 0)) {
80 Status = Console->OutputString (Console, Buffer);
81 if (EFI_ERROR (Status)) {
200 ASSERT (Format !=
NULL);
201 ASSERT (Console !=
NULL);
203 BufferSize = (
PcdGet32 (PcdUefiLibMaxPrintBufferSize) + 1) *
sizeof (CHAR16);
207 if (Buffer ==
NULL) {
208 ASSERT (Buffer !=
NULL);
214 if (Console !=
NULL) {
218 Status = Console->OutputString (Console, Buffer);
219 if (EFI_ERROR (Status)) {
258 ASSERT (Format !=
NULL);
298 ASSERT (Format !=
NULL);
353 UINT32 HorizontalResolution;
354 UINT32 VerticalResolution;
359 UINTN RowInfoArraySize;
364 HorizontalResolution = 0;
365 VerticalResolution = 0;
371 ASSERT (ConsoleHandle !=
NULL);
373 Status =
gBS->HandleProtocol (
375 &gEfiGraphicsOutputProtocolGuid,
376 (
VOID **)&GraphicsOutput
378 if (EFI_ERROR (Status)) {
382 Status =
gBS->HandleProtocol (
384 &gEfiSimpleTextOutProtocolGuid,
388 if (EFI_ERROR (Status)) {
392 if (GraphicsOutput !=
NULL) {
399 ASSERT ((HorizontalResolution != 0) && (VerticalResolution != 0));
401 Status =
gBS->LocateProtocol (&gEfiHiiFontProtocolGuid,
NULL, (
VOID **)&HiiFont);
402 if (EFI_ERROR (Status)) {
409 ASSERT (Blt !=
NULL);
413 Blt->Width = (UINT16)(HorizontalResolution);
414 Blt->Height = (UINT16)(VerticalResolution);
418 if (Foreground !=
NULL) {
422 &FontInfo.ForegroundColor,
428 if (Background !=
NULL) {
432 &FontInfo.BackgroundColor,
438 if (GraphicsOutput !=
NULL) {
439 Blt->Image.Screen = GraphicsOutput;
441 Status = HiiFont->StringToImage (
443 EFI_HII_IGNORE_IF_NO_GLYPH | EFI_HII_OUT_FLAG_CLIP |
444 EFI_HII_OUT_FLAG_CLIP_CLEAN_X | EFI_HII_OUT_FLAG_CLIP_CLEAN_Y |
445 EFI_HII_IGNORE_LINE_BREAK | EFI_HII_DIRECT_TO_SCREEN,
455 if (EFI_ERROR (Status)) {
465 if (RowInfoArraySize != 0) {
542 ASSERT (Format !=
NULL);
543 ASSERT (((
UINTN)Format & BIT0) == 0);
547 BufferSize = (
PcdGet32 (PcdUefiLibMaxPrintBufferSize) + 1) *
sizeof (CHAR16);
551 if (Buffer ==
NULL) {
552 ASSERT (Buffer !=
NULL);
625 ASSERT (Format !=
NULL);
629 BufferSize = (
PcdGet32 (PcdUefiLibMaxPrintBufferSize) + 1) *
sizeof (CHAR16);
633 if (Buffer ==
NULL) {
634 ASSERT (Buffer !=
NULL);
673 IN CHAR16 *String OPTIONAL,
678 UINTN CharactersRequired;
680 CHAR16 *BufferToReturn;
684 CharactersRequired =
SPrintLength (FormatString, ExtraMarker);
687 if (String !=
NULL) {
688 SizeRequired =
StrSize (String) + (CharactersRequired *
sizeof (CHAR16));
690 SizeRequired =
sizeof (CHAR16) + (CharactersRequired *
sizeof (CHAR16));
695 if (BufferToReturn ==
NULL) {
698 BufferToReturn[0] = L
'\0';
701 if (String !=
NULL) {
702 StrCpyS (BufferToReturn, SizeRequired /
sizeof (CHAR16), String);
705 UnicodeVSPrint (BufferToReturn +
StrLen (BufferToReturn), (CharactersRequired+1) *
sizeof (CHAR16), FormatString, Marker);
707 ASSERT (
StrSize (BufferToReturn) == SizeRequired);
709 return (BufferToReturn);
738 IN CHAR16 *String OPTIONAL,
UINTN EFIAPI StrSize(IN CONST CHAR16 *String)
RETURN_STATUS EFIAPI StrCpyS(OUT CHAR16 *Destination, IN UINTN DestMax, IN CONST CHAR16 *Source)
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
UINTN EFIAPI UnicodeVSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString, IN VA_LIST Marker)
UINTN EFIAPI UnicodeVSPrintAsciiFormat(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN VA_LIST Marker)
UINTN EFIAPI UnicodeSPrintAsciiFormat(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
UINTN EFIAPI SPrintLength(IN CONST CHAR16 *FormatString, IN VA_LIST Marker)
#define VA_START(Marker, Parameter)
#define VA_COPY(Dest, Start)
#define GLOBAL_REMOVE_IF_UNREFERENCED
#define PcdGet32(TokenName)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)
EFI_STRING_ID NewString(IN CHAR16 *String, IN EFI_HII_HANDLE HiiHandle)
UINTN AsciiInternalPrint(IN CONST CHAR8 *Format, IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Console, IN VA_LIST Marker)
UINTN EFIAPI PrintXY(IN UINTN PointX, IN UINTN PointY, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL, IN CONST CHAR16 *Format,...)
CHAR16 *EFIAPI CatVSPrint(IN CHAR16 *String OPTIONAL, IN CONST CHAR16 *FormatString, IN VA_LIST Marker)
UINTN EFIAPI AsciiErrorPrint(IN CONST CHAR8 *Format,...)
UINTN EFIAPI AsciiPrint(IN CONST CHAR8 *Format,...)
UINTN InternalPrintGraphic(IN UINTN PointX, IN UINTN PointY, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background, IN CHAR16 *Buffer, IN UINTN PrintNum)
UINTN EFIAPI ErrorPrint(IN CONST CHAR16 *Format,...)
CHAR16 *EFIAPI CatSPrint(IN CHAR16 *String OPTIONAL, IN CONST CHAR16 *FormatString,...)
UINTN InternalPrint(IN CONST CHAR16 *Format, IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Console, IN VA_LIST Marker)
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
UINTN EFIAPI AsciiPrintXY(IN UINTN PointX, IN UINTN PointY, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL, IN CONST CHAR8 *Format,...)
EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE * Mode
EFI_SIMPLE_TEXT_OUTPUT_MODE * Mode
UINT32 VerticalResolution
UINT32 HorizontalResolution
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION * Info
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * StdErr
EFI_HANDLE ConsoleOutHandle
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * ConOut