3 Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>
4 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.
195 OUT CHAR16
*StartOfBuffer
,
197 IN CONST CHAR16
*Format
,
204 Prints a formatted unicode string to a buffer
208 StartOfBuffer - Output buffer to print the formatted string into
209 StrLen - Size of Str. String is truncated to this size.
210 A size of 0 means there is no limit
211 Format - The format string
212 Marker - Vararg list consumed by processing Format.
216 String length returned in buffer
225 IN CONST CHAR16
*Format
,
232 SPrint function to process format and place the results in Buffer.
236 Buffer - Wide char buffer to print the results of the parsing of Format into.
238 BufferSize - Maximum number of characters to put into buffer. Zero means no
241 Format - Format string see file header for more details.
243 ... - Vararg list consumed by processing Format.
247 Number of characters printed.
263 Test whether a wide char is a valid control char.
271 TRUE - A control char
273 FALSE - Not a control char
286 Test whether a wide char is a normal printable char
294 True - A normal, printable char
295 FALSE - Not a normal, printable char
301 LibIsValidTextGraphics (
303 OUT CHAR8
*PcAnsi
, OPTIONAL
304 OUT CHAR8
*Ascii OPTIONAL
310 Detects if a Unicode char is for Box Drawing text graphics.
314 Graphic - Unicode char to test.
316 PcAnsi - Optional pointer to return PCANSI equivalent of Graphic.
318 Ascii - Optional pointer to return Ascii equivalent of Graphic.
322 TRUE if Gpaphic is a supported Unicode Box Drawing character.