From nobody Mon May 13 06:44:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39740+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39740+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1556517397; cv=none; d=zoho.com; s=zohoarc; b=FXxZwiITbHD5h1QjyajAK/0dyAPGi6JCNoUuqeSfIomZIKVKRqbJTsdn2u4c5+PhgxApKwdDZCf1I9mKDqJzyGi1zSBdJ1xk1dXQNiFSDuhDGeK3+Z5uizL4HnXphcmJ+TgXy9zTX7d44Zh/gY7aTDAeKjzKp5s+A6YY6n4QTwk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556517397; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=Rf3hEETFdEvCRhhKUP4jQbnkhOqm5YBp+yt4jacAwMQ=; b=iENnSUgn0iuTL+dEH0UrHtJGZRz7y7hb3hNuvUCCnIVNhnNQd1WjqOTSNUaF/TalJG89F4A+WX5DMrDRTjKZ3VqBYzE96ap7itPudQ8ViN0TStuCZxS2Zk28U3kSzuDSN58vWAoF8NCOlfl9xMhJBtnN/ABZbGcqxVUxss4AnAo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39740+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1556517397750567.0935163951284; Sun, 28 Apr 2019 22:56:37 -0700 (PDT) Return-Path: X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Sun, 28 Apr 2019 22:56:36 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 22:56:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,408,1549958400"; d="scan'208";a="341700967" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.157.133]) by fmsmga006.fm.intel.com with ESMTP; 28 Apr 2019 22:56:35 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Ray Ni Subject: [edk2-devel] [Patch V2] EmulatorPkg: Add the second console to Emulator Date: Mon, 29 Apr 2019 13:56:24 +0800 Message-Id: <20190429055624.16268-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1556517397; bh=7sF/6xDu6i2uoEYQ+Kkjzx+ZPx3PB4XnNqhmREoSmNw=; h=Cc:Date:From:Reply-To:Subject:To; b=B9OBGA/BnP7tdD7AwyTeCPigM2IJMsJUxj+p4gggTmrLM1u9sBNT3hjeYEf9mABplVn Y2LWNW+KTBwLmnFpiEu4TPk7aQBhLIMRQNgCgQyDcEE0NGW1LfBWhcYyBzan/rEHMomRQ eSWWnJ+RTObHjXLHUKuJ7jKxMHuGACt/RC0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D1687 Signed-off-by: Zhiguang Liu IN V2: change the indentation IN V1: It will show on both screens,if set gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window 1!GOP Window 2" in EmulatorPkg.dsc Cc: Jordan Justen Cc: Andrew Fish Cc: Ray Ni --- EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c | 36 ++++++++++++++++++= ++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmData.c b/EmulatorP= kg/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 =3D { gEndEntire }; =20 +EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath2 =3D { + { + { + { + 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 // @@ -50,6 +82,10 @@ BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] =3D { (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath, (CONSOLE_OUT | CONSOLE_IN) }, + { + (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath2, + (CONSOLE_OUT | CONSOLE_IN) + }, { NULL, 0 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39740): https://edk2.groups.io/g/devel/message/39740 Mute This Topic: https://groups.io/mt/31380402/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-