TianoCore EDK2 master
Loading...
Searching...
No Matches
Print.c File Reference

Go to the source code of this file.

Functions

UINTN EFIAPI PrintDxeUnicodeValueToString (IN OUT CHAR16 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
 
UINTN EFIAPI PrintDxeAsciiValueToString (OUT CHAR8 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
 
EFI_STATUS EFIAPI PrintEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_HANDLE mPrintThunkHandle = NULL
 
CONST EFI_PRINT2_PROTOCOL mPrint2Protocol
 
CONST EFI_PRINT2S_PROTOCOL mPrint2SProtocol
 

Detailed Description

This driver produces Print2 protocols layered on top of the PrintLib from the MdePkg.

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

Definition in file Print.c.

Function Documentation

◆ PrintDxeAsciiValueToString()

UINTN EFIAPI PrintDxeAsciiValueToString ( OUT CHAR8 *  Buffer,
IN UINTN  Flags,
IN INT64  Value,
IN UINTN  Width 
)

Implementaion of the AsciiValueToString service in EFI_PRINT2_PROTOCOL.

Parameters
BufferA pointer to the output buffer for the produced Null-terminated ASCII string.
FlagsThe bitmask of flags that specify left justification, zero pad, and commas.
ValueThe 64-bit signed value to convert to a string.
WidthThe maximum number of ASCII characters to place in Buffer, not including the Null-terminator.
Returns
0.

Definition at line 64 of file Print.c.

◆ PrintDxeUnicodeValueToString()

UINTN EFIAPI PrintDxeUnicodeValueToString ( IN OUT CHAR16 *  Buffer,
IN UINTN  Flags,
IN INT64  Value,
IN UINTN  Width 
)

Implementaion of the UnicodeValueToString service in EFI_PRINT2_PROTOCOL.

Parameters
BufferThe pointer to the output buffer for the produced Null-terminated Unicode string.
FlagsThe bitmask of flags that specify left justification, zero pad, and commas.
ValueThe 64-bit signed value to convert to a string.
WidthThe maximum number of Unicode characters to place in Buffer, not including the Null-terminator.
Returns
0.

Definition at line 35 of file Print.c.

◆ PrintEntryPoint()

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

The user Entry Point for Print module.

This is the entry point for Print DXE Driver. It installs the Print2 Protocol.

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.
OthersSome error occurs when executing this entry point.

Definition at line 119 of file Print.c.

Variable Documentation

◆ mPrint2Protocol

CONST EFI_PRINT2_PROTOCOL mPrint2Protocol
Initial value:
= {
}
UINTN EFIAPI UnicodeBSPrintAsciiFormat(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN BASE_LIST Marker)
Definition: PrintLib.c:530
UINTN EFIAPI AsciiBSPrintUnicodeFormat(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString, IN BASE_LIST Marker)
Definition: PrintLib.c:935
UINTN EFIAPI AsciiSPrintUnicodeFormat(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
Definition: PrintLib.c:988
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
Definition: PrintLib.c:408
UINTN EFIAPI UnicodeSPrintAsciiFormat(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
Definition: PrintLib.c:583
UINTN EFIAPI UnicodeBSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString, IN BASE_LIST Marker)
Definition: PrintLib.c:354
UINTN EFIAPI AsciiBSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN BASE_LIST Marker)
Definition: PrintLib.c:763
UINTN EFIAPI AsciiSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
Definition: PrintLib.c:813
UINTN EFIAPI PrintDxeAsciiValueToString(OUT CHAR8 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print.c:64
UINTN EFIAPI PrintDxeUnicodeValueToString(IN OUT CHAR16 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print.c:35

Definition at line 79 of file Print.c.

◆ mPrint2SProtocol

CONST EFI_PRINT2S_PROTOCOL mPrint2SProtocol
Initial value:
= {
}
RETURN_STATUS EFIAPI UnicodeValueToStringS(IN OUT CHAR16 *Buffer, IN UINTN BufferSize, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: PrintLib.c:652
RETURN_STATUS EFIAPI AsciiValueToStringS(IN OUT CHAR8 *Buffer, IN UINTN BufferSize, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: PrintLib.c:1055

Definition at line 92 of file Print.c.

◆ mPrintThunkHandle

EFI_HANDLE mPrintThunkHandle = NULL

Definition at line 77 of file Print.c.