public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] EmulatorPkg: Add the second console to Emulator
@ 2019-04-29  3:04 Zhiguang Liu
  2019-04-29  4:53 ` [edk2-devel] " Jordan Justen
  0 siblings, 1 reply; 3+ messages in thread
From: Zhiguang Liu @ 2019-04-29  3:04 UTC (permalink / raw)
  To: devel; +Cc: Jordan Justen, Andrew Fish, Ray Ni

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1687

Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>

It will show on both screens,if set
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window 1!GOP Window 2"
in EmulatorPkg.dsc

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
---
 EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c b/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c
index 633a97d14a..5288ee49f3 100644
--- a/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c
+++ b/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c
@@ -42,6 +42,38 @@ EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath = {
   gEndEntire
 };
 
+EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath2 = {
+  {
+    {
+      {
+        HARDWARE_DEVICE_PATH,
+        HW_VENDOR_DP,
+        {
+          (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
+          (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+        }
+      },
+      EMU_THUNK_PROTOCOL_GUID
+    },
+    0
+  },
+  {
+    {
+      {
+        HARDWARE_DEVICE_PATH,
+        HW_VENDOR_DP,
+        {
+          (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
+          (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+        },
+      },
+      EMU_GRAPHICS_WINDOW_PROTOCOL_GUID,
+    },
+    1
+  },
+  gEndEntire
+};
+
 //
 // Predefined platform default console device path
 //
@@ -51,6 +83,10 @@ BDS_CONSOLE_CONNECT_ENTRY   gPlatformConsole[] = {
     (CONSOLE_OUT | CONSOLE_IN)
   },
   {
+(EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath2,
+    (CONSOLE_OUT | CONSOLE_IN)
+  },
+    {
     NULL,
     0
   }
-- 
2.21.0.windows.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-29  5:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-29  3:04 [PATCH] EmulatorPkg: Add the second console to Emulator Zhiguang Liu
2019-04-29  4:53 ` [edk2-devel] " Jordan Justen
2019-04-29  5:54   ` Zhiguang Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox