summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Include
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-12 08:13:33 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-12 08:13:33 +0000
commit2ad4dad029f3931e952ca6c766cab815aa930a17 (patch)
tree316b87060f7defe48d8785ff59afa5a2fc3d6a1c /MdeModulePkg/Include
parenta88c89156f078ba943e4699e38c45f58c25f2876 (diff)
downloadedk2-platforms-2ad4dad029f3931e952ca6c766cab815aa930a17.tar.xz
1. Update internal EfiPrint protocol to contain all print interfaces provided by PrintLib class of MdePkg. 2. Update SetupBrowserDxe driver to produce new EfiPrint protocol.
3. Update EdkDxePrintLib instance to implement all interfaces defined in PrintLib class based on new EfiPrint protocol. 4. Update Nt32Pkg platform.dsc to use EdkDxePrintLib instance for UEFI_APPLICATION modules. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4109 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r--MdeModulePkg/Include/Protocol/Print.h57
1 files changed, 53 insertions, 4 deletions
diff --git a/MdeModulePkg/Include/Protocol/Print.h b/MdeModulePkg/Include/Protocol/Print.h
index c381295f31..b640cb0b2f 100644
--- a/MdeModulePkg/Include/Protocol/Print.h
+++ b/MdeModulePkg/Include/Protocol/Print.h
@@ -23,7 +23,7 @@ Abstract:
#define __PPRINT_H__
#define EFI_PRINT_PROTOCOL_GUID \
- { 0xdf2d868e, 0x32fc, 0x4cf0, {0x8e, 0x6b, 0xff, 0xd9, 0x5d, 0x13, 0x43, 0xd0 } }
+ { 0x5bcc3dbc, 0x8c57, 0x450a, { 0xbb, 0xc, 0xa1, 0xc0, 0xbd, 0xde, 0x48, 0xc } }
//
// Forward reference for pure ANSI compatability
@@ -33,18 +33,67 @@ typedef struct _EFI_PRINT_PROTOCOL EFI_PRINT_PROTOCOL;
typedef
UINTN
-(EFIAPI *EFI_VSPRINT) (
+(EFIAPI *UNI_VSPRINT) (
OUT CHAR16 *StartOfBuffer,
IN UINTN BufferSize,
IN CONST CHAR16 *FormatString,
IN VA_LIST Marker
);
+typedef
+UINTN
+(EFIAPI *UNI_VSPRINT_ASCII) (
+ OUT CHAR16 *StartOfBuffer,
+ IN UINTN BufferSize,
+ IN CONST CHAR8 *FormatString,
+ IN VA_LIST Marker
+ );
+
+typedef
+UINTN
+(EFIAPI *VALUE_TO_UNISTRING) (
+ IN OUT CHAR16 *Buffer,
+ IN UINTN Flags,
+ IN INT64 Value,
+ IN UINTN Width
+ );
+
+typedef
+UINTN
+(EFIAPI *ASCII_VSPRINT) (
+ OUT CHAR8 *StartOfBuffer,
+ IN UINTN BufferSize,
+ IN CONST CHAR8 *FormatString,
+ IN VA_LIST Marker
+ );
+
+typedef
+UINTN
+(EFIAPI *ASCII_VSPRINT_UNI) (
+ OUT CHAR8 *StartOfBuffer,
+ IN UINTN BufferSize,
+ IN CONST CHAR16 *FormatString,
+ IN VA_LIST Marker
+ );
+
+typedef
+UINTN
+(EFIAPI *VALUE_TO_ASCIISTRING) (
+ IN OUT CHAR8 *Buffer,
+ IN UINTN Flags,
+ IN INT64 Value,
+ IN UINTN Width
+ );
+
struct _EFI_PRINT_PROTOCOL {
- EFI_VSPRINT VSPrint;
+ UNI_VSPRINT VSPrint;
+ UNI_VSPRINT_ASCII UniVSPrintAscii;
+ VALUE_TO_UNISTRING UniValueToString;
+ ASCII_VSPRINT AsciiVSPrint;
+ ASCII_VSPRINT_UNI AsciiVSPrintUni;
+ VALUE_TO_ASCIISTRING AsciiValueToString;
};
-
extern EFI_GUID gEfiPrintProtocolGuid;
#endif