From nobody Fri May 10 01:36:04 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+39732+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+39732+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1556507119; cv=none; d=zoho.com; s=zohoarc; b=fN0XMECTTm+OPVrkwh1iN8LoKGe9h2CSOO1/wXmdzfL+rY3bEly0MulVy6/h2OBYy/f8s6OkIsPlsiNvC8/FPV2hi2EJ64xDUtq2dk25ga2EQXA4tJ9xIkpub9sPmTapIpnS8ChWIA7kmY27LxSyF/jwrRbBI9TJIdCBGh657XA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556507119; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=MZxdSTSd03j+jIwG63JRKQZoue7YLernQDRwQ8DNxsA=; b=XKytr0xC4+Ih2gzPI+DNzBa4uJJUh3SEQMRJJLTV/+fwpXfILe6Jk54wSKBZb5zXpzxf3aCKPLvgtxq2yMJUxHr/vV44tPsDOU1epkHn/fHvQKerCyuA3qG8JEW6aVo4S7GfYwNAlbMUQC35cl0O0NR1wKfsoklCY/sPbA3qkYQ= 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+39732+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 1556507119222600.4363550611371; Sun, 28 Apr 2019 20:05:19 -0700 (PDT) Return-Path: X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Sun, 28 Apr 2019 20:05:18 -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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 20:05:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,408,1549958400"; d="scan'208";a="341670730" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.157.133]) by fmsmga006.fm.intel.com with ESMTP; 28 Apr 2019 20:05:16 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Ray Ni Subject: [edk2-devel] [PATCH] EmulatorPkg: Add the second console to Emulator Date: Mon, 29 Apr 2019 11:04:25 +0800 Message-Id: <20190429030425.20556-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=1556507118; bh=RaZZV/V5ShPe5eEjn2amcoKh3F/W5hBNWlIDAj5+lCY=; h=Cc:Date:From:Reply-To:Subject:To; b=ttk2ZfUJCPyySBrelAlPVgawad2G7Hq6H5MRfWQcRbWBO1gnlNbjSAoqE3YkV92AVGR B2aWzBA53jp8HigjDiioAARfdlc8IG/w2XVXf0XKQo99lqZEWhUbSBLJHRgNPvE4HRus3 6DrLHe5lFP5/0waneUuo3eAFtnWx/laf2e8= 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 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 Reviewed-by: Jordan Justen --- 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..5288ee49f3 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 // @@ -51,6 +83,10 @@ BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[] =3D { (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 (#39732): https://edk2.groups.io/g/devel/message/39732 Mute This Topic: https://groups.io/mt/31379376/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-