3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Light weight lib to support EFI drivers.
22 #ifndef _EFI_PRINT_LIB_H_
23 #define _EFI_PRINT_LIB_H_
25 #include EFI_PROTOCOL_DEFINITION(GraphicsOutput)
26 #include EFI_PROTOCOL_DEFINITION(UgaDraw)
27 #include EFI_PROTOCOL_DEFINITION(Print)
31 IN CONST CHAR16
*ErrorString
,
32 IN CONST CHAR8
*Format
,
39 Print function for a maximum of EFI_DRIVER_LIB_MAX_PRINT_BUFFER ascii
44 ErrorString - Error message printed first
46 Format - Ascii format string see file header for more details.
48 ... - Vararg list consumed by processing Format.
52 Number of characters printed.
68 Dump error info by hex.
72 Indent - Indent number
73 Offset - Offset number
74 DataSize - Size of user data
75 UserData - User data to dump
86 IN CONST CHAR16
*Format
,
93 Prints a formatted unicode string to the default console
101 Length of string printed to the console
110 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*Foreground
, OPTIONAL
111 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL
*Background
, OPTIONAL
119 Prints a formatted unicode string to the default console
123 X - X coordinate to start printing
125 Y - Y coordinate to start printing
127 ForeGround - Foreground color
129 BackGround - Background color
133 ... - Print arguments
137 Length of string printed to the console
144 IN CONST CHAR8
*Format
,
151 Print function for a maximum of EFI_DRIVER_LIB_MAX_PRINT_BUFFER ascii
156 Format - Ascii format string see file header for more details.
158 ... - Vararg list consumed by processing Format.
162 Number of characters printed.
169 IN CONST CHAR16
*Format
,
176 Print function for a maximum of EFI_DRIVER_LIB_MAX_PRINT_BUFFER ascii
181 Format - Ascii format string see file header for more details.
183 ... - Vararg list consumed by processing Format.
187 Number of characters printed.
194 OUT CHAR16
*StartOfBuffer
,
196 IN CONST CHAR16
*Format
,
203 Prints a formatted unicode string to a buffer
207 StartOfBuffer - Output buffer to print the formatted string into
208 StrLen - Size of Str. String is truncated to this size.
209 A size of 0 means there is no limit
210 Format - The format string
211 Marker - Vararg list consumed by processing Format.
215 String length returned in buffer
224 IN CONST CHAR16
*Format
,
231 SPrint function to process format and place the results in Buffer.
235 Buffer - Wide char buffer to print the results of the parsing of Format into.
237 BufferSize - Maximum number of characters to put into buffer. Zero means no
240 Format - Format string see file header for more details.
242 ... - Vararg list consumed by processing Format.
246 Number of characters printed.
262 Test whether a wide char is a valid control char.
270 TRUE - A control char
272 FALSE - Not a control char
285 Test whether a wide char is a normal printable char
293 True - A normal, printable char
294 FALSE - Not a normal, printable char
300 LibIsValidTextGraphics (
302 OUT CHAR8
*PcAnsi
, OPTIONAL
303 OUT CHAR8
*Ascii OPTIONAL
309 Detects if a Unicode char is for Box Drawing text graphics.
313 Graphic - Unicode char to test.
315 PcAnsi - Optional pointer to return PCANSI equivalent of Graphic.
317 Ascii - Optional pointer to return Ascii equivalent of Graphic.
321 TRUE if Gpaphic is a supported Unicode Box Drawing character.