TianoCore EDK2 master
Loading...
Searching...
No Matches
Print2.h
Go to the documentation of this file.
1
12#ifndef __PPRINT2_H__
13#define __PPRINT2_H__
14
15#define EFI_PRINT2_PROTOCOL_GUID \
16 { 0xf05976ef, 0x83f1, 0x4f3d, { 0x86, 0x19, 0xf7, 0x59, 0x5d, 0x41, 0xe5, 0x38 } }
17
18//
19// Forward reference for pure ANSI compatability
20//
22
61typedef
63(EFIAPI *UNICODE_BS_PRINT)(
64 OUT CHAR16 *StartOfBuffer,
65 IN UINTN BufferSize,
66 IN CONST CHAR16 *FormatString,
67 IN BASE_LIST Marker
68 );
69
110typedef
112(EFIAPI *UNICODE_S_PRINT)(
113 OUT CHAR16 *StartOfBuffer,
114 IN UINTN BufferSize,
115 IN CONST CHAR16 *FormatString,
116 ...
117 );
118
156typedef
159 OUT CHAR16 *StartOfBuffer,
160 IN UINTN BufferSize,
161 IN CONST CHAR8 *FormatString,
162 IN BASE_LIST Marker
163 );
164
205typedef
208 OUT CHAR16 *StartOfBuffer,
209 IN UINTN BufferSize,
210 IN CONST CHAR8 *FormatString,
211 ...
212 );
213
255typedef
258 IN OUT CHAR16 *Buffer,
259 IN UINTN Flags,
260 IN INT64 Value,
261 IN UINTN Width
262 );
263
299typedef
301(EFIAPI *ASCII_BS_PRINT)(
302 OUT CHAR8 *StartOfBuffer,
303 IN UINTN BufferSize,
304 IN CONST CHAR8 *FormatString,
305 IN BASE_LIST Marker
306 );
307
346typedef
348(EFIAPI *ASCII_S_PRINT)(
349 OUT CHAR8 *StartOfBuffer,
350 IN UINTN BufferSize,
351 IN CONST CHAR8 *FormatString,
352 ...
353 );
354
392typedef
395 OUT CHAR8 *StartOfBuffer,
396 IN UINTN BufferSize,
397 IN CONST CHAR16 *FormatString,
398 IN BASE_LIST Marker
399 );
400
441typedef
444 OUT CHAR8 *StartOfBuffer,
445 IN UINTN BufferSize,
446 IN CONST CHAR16 *FormatString,
447 ...
448 );
449
489typedef
491(EFIAPI *ASCII_VALUE_TO_STRING)(
492 OUT CHAR8 *Buffer,
493 IN UINTN Flags,
494 IN INT64 Value,
495 IN UINTN Width
496 );
497
499 UNICODE_BS_PRINT UnicodeBSPrint;
500 UNICODE_S_PRINT UnicodeSPrint;
501 UNICODE_BS_PRINT_ASCII_FORMAT UnicodeBSPrintAsciiFormat;
502 UNICODE_S_PRINT_ASCII_FORMAT UnicodeSPrintAsciiFormat;
503 UNICODE_VALUE_TO_STRING UnicodeValueToString;
504 ASCII_BS_PRINT AsciiBSPrint;
505 ASCII_S_PRINT AsciiSPrint;
506 ASCII_BS_PRINT_UNICODE_FORMAT AsciiBSPrintUnicodeFormat;
507 ASCII_S_PRINT_UNICODE_FORMAT AsciiSPrintUnicodeFormat;
508 ASCII_VALUE_TO_STRING AsciiValueToString;
509};
510
511extern EFI_GUID gEfiPrint2ProtocolGuid;
512
513#define EFI_PRINT2S_PROTOCOL_GUID \
514 { 0xcc252d2, 0xc106, 0x4661, { 0xb5, 0xbd, 0x31, 0x47, 0xa4, 0xf8, 0x1f, 0x92 } }
515
516//
517// Forward reference for pure ANSI compatability
518//
520
572typedef
573RETURN_STATUS
575 IN OUT CHAR16 *Buffer,
576 IN UINTN BufferSize,
577 IN UINTN Flags,
578 IN INT64 Value,
579 IN UINTN Width
580 );
581
631typedef
632RETURN_STATUS
634 IN OUT CHAR8 *Buffer,
635 IN UINTN BufferSize,
636 IN UINTN Flags,
637 IN INT64 Value,
638 IN UINTN Width
639 );
640
642 UNICODE_BS_PRINT UnicodeBSPrint;
643 UNICODE_S_PRINT UnicodeSPrint;
644 UNICODE_BS_PRINT_ASCII_FORMAT UnicodeBSPrintAsciiFormat;
645 UNICODE_S_PRINT_ASCII_FORMAT UnicodeSPrintAsciiFormat;
646 UNICODE_VALUE_TO_STRING_S UnicodeValueToStringS;
647 ASCII_BS_PRINT AsciiBSPrint;
648 ASCII_S_PRINT AsciiSPrint;
649 ASCII_BS_PRINT_UNICODE_FORMAT AsciiBSPrintUnicodeFormat;
650 ASCII_S_PRINT_UNICODE_FORMAT AsciiSPrintUnicodeFormat;
651 ASCII_VALUE_TO_STRING_S AsciiValueToStringS;
652};
653
654extern EFI_GUID gEfiPrint2SProtocolGuid;
655
656#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
UINTN * BASE_LIST
Definition: Base.h:711
#define OUT
Definition: Base.h:284
UINTN(EFIAPI * ASCII_VALUE_TO_STRING)(OUT CHAR8 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print2.h:491
UINTN(EFIAPI * UNICODE_VALUE_TO_STRING)(IN OUT CHAR16 *Buffer, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print2.h:257
UINTN(EFIAPI * ASCII_S_PRINT_UNICODE_FORMAT)(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
Definition: Print2.h:443
UINTN(EFIAPI * ASCII_BS_PRINT_UNICODE_FORMAT)(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString, IN BASE_LIST Marker)
Definition: Print2.h:394
UINTN(EFIAPI * UNICODE_BS_PRINT_ASCII_FORMAT)(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN BASE_LIST Marker)
Definition: Print2.h:158
UINTN(EFIAPI * UNICODE_S_PRINT)(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
Definition: Print2.h:112
UINTN(EFIAPI * ASCII_S_PRINT)(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
Definition: Print2.h:348
RETURN_STATUS(EFIAPI * ASCII_VALUE_TO_STRING_S)(IN OUT CHAR8 *Buffer, IN UINTN BufferSize, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print2.h:633
RETURN_STATUS(EFIAPI * UNICODE_VALUE_TO_STRING_S)(IN OUT CHAR16 *Buffer, IN UINTN BufferSize, IN UINTN Flags, IN INT64 Value, IN UINTN Width)
Definition: Print2.h:574
UINTN(EFIAPI * ASCII_BS_PRINT)(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN BASE_LIST Marker)
Definition: Print2.h:301
UINTN(EFIAPI * UNICODE_BS_PRINT)(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString, IN BASE_LIST Marker)
Definition: Print2.h:63
UINTN(EFIAPI * UNICODE_S_PRINT_ASCII_FORMAT)(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
Definition: Print2.h:207
Definition: Base.h:213