]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/PrintDxe/Print.c
MdeModulePkg: Add the EFI_PRINT2S_PROTOCOL
[mirror_edk2.git] / MdeModulePkg / Universal / PrintDxe / Print.c
index af55acfd2ba2fd660ea6c4c0be2582ab86391eff..85bc724a9028211eaea1d1f785d45c08e2d522da 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  This driver produces Print2 protocol layered on top of the PrintLib from the MdePkg.\r
+  This driver produces Print2 protocols layered on top of the PrintLib from the MdePkg.\r
 \r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -35,6 +35,19 @@ CONST EFI_PRINT2_PROTOCOL mPrint2Protocol = {
   AsciiValueToString\r
 };\r
 \r
+CONST EFI_PRINT2S_PROTOCOL mPrint2SProtocol = {\r
+  UnicodeBSPrint,\r
+  UnicodeSPrint,\r
+  UnicodeBSPrintAsciiFormat,\r
+  UnicodeSPrintAsciiFormat,\r
+  UnicodeValueToStringS,\r
+  AsciiBSPrint,\r
+  AsciiSPrint,\r
+  AsciiBSPrintUnicodeFormat,\r
+  AsciiSPrintUnicodeFormat,\r
+  AsciiValueToStringS\r
+};\r
+\r
 /**\r
   The user Entry Point for Print module.\r
 \r
@@ -59,6 +72,7 @@ PrintEntryPoint (
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &mPrintThunkHandle,\r
                   &gEfiPrint2ProtocolGuid, &mPrint2Protocol,\r
+                  &gEfiPrint2SProtocolGuid, &mPrint2SProtocol,\r
                   NULL\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r