summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorZhiguang Liu <zhiguang.liu@intel.com>2019-04-29 09:40:26 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-05-08 16:21:49 +0800
commit792f0d4f12ad5c01afdf9c92df8c479ff0f19a79 (patch)
tree94bce1fd23b0f4790f5dd74efa255b2303c121f3 /EmulatorPkg
parent23ea5bfea2a23c2d01f7c4be115cfc363f43c69f (diff)
downloadedk2-792f0d4f12ad5c01afdf9c92df8c479ff0f19a79.tar.gz
edk2-792f0d4f12ad5c01afdf9c92df8c479ff0f19a79.tar.bz2
edk2-792f0d4f12ad5c01afdf9c92df8c479ff0f19a79.zip
EmulatorPkg: Support a second GOP window
Two GOP screens will be created if PcdEmuGop is set in EmulatorPkg.dsc: gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window 1!GOP Window 2" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1687 Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Ray Ni <ray.ni@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c b/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c
index 633a97d14a..1151021606 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
}