From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 47E5CAC13AA for ; Thu, 29 Feb 2024 15:29:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=A17nLote7q+AfNEFKDrpVQTg+6S/GhHFmlyHRWSUIv8=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1709220579; v=1; b=nFDejjbWp7fBbSTSU3Otby1SRF3VxKaQO9ub9zDCkj9VEyQCO59GEWxw3xd3+rkYFL//iDna m4XZ5/4jNwjcg2QXhj9KoNZroEsNCU2d3ueyi06C/9fW8M0q0Sr10vFen80lq8uaufx9mLSMVsD kDDZ5NHMPmto0LVz6tOIZS88= X-Received: by 127.0.0.2 with SMTP id MXYRYY7687511xzGQTVVALFh; Thu, 29 Feb 2024 07:29:39 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mx.groups.io with SMTP id smtpd.web10.28004.1709220579386931327 for ; Thu, 29 Feb 2024 07:29:39 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="3540018" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="3540018" X-Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 07:29:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="12544542" X-Received: from evancy.sh.intel.com ([10.239.159.137]) by orviesa003.jf.intel.com with ESMTP; 29 Feb 2024 07:29:38 -0800 From: "Chai, Evan" To: devel@edk2.groups.io Cc: Andrei Warkentin , Sunil V L , Yong Li Subject: [edk2-devel] [PATCH 1/3] RISC-V/PlatformBootManagerLib: add terminal interaction interface Date: Thu, 29 Feb 2024 23:24:50 +0800 Message-Id: <20240229152452.1096498-2-evan.chai@intel.com> In-Reply-To: <20240229152452.1096498-1-evan.chai@intel.com> References: <20240229152452.1096498-1-evan.chai@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,evan.chai@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: dradkzR37kblNiJ7I43TAwftx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=nFDejjbW; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Fixed the hotkey not wokring in SCT(like F5, F6, F9, etc...), causing all SCT tests to be run only through the command line. This change provides a standard terminal interaction interface in the UEFI environment. Cc: Andrei Warkentin Cc: Sunil V L Cc: Yong Li Signed-off-by: Evan Chai --- Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootMan= ager.c | 7 ++++++- Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootMan= ager.h | 12 +++++++++++- Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootMan= agerLib.inf | 2 ++ Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformData.c = | 15 ++++++++++++++- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManager.c b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManage= rLib/PlatformBootManager.c index 21667f42..c2336a07 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c @@ -2,7 +2,7 @@ This file include all platform actions=0D =0D Copyright (c) 2021-2022, Hewlett Packard Enterprise Development LP. All ri= ghts reserved.
=0D -Copyright (c) 2015, Intel Corporation. All rights reserved.
=0D +Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -169,6 +169,11 @@ PlatformBootManagerBeforeConsole ( //=0D EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid);=0D =0D + //=0D + // Add the hardcoded serial console device path to ConIn, ConOut, ErrOut= .=0D + //=0D + PlatformUefiEnvHotkeyRegister ();=0D +=0D //=0D // Update the console variables.=0D //=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManager.h b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManage= rLib/PlatformBootManager.h index 7da15b01..8b71045f 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.h +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.h @@ -2,7 +2,7 @@ Head file for BDS Platform specific code=0D =0D Copyright (c) 2016, Hewlett Packard Enterprise Development LP. All rights = reserved.
=0D -Copyright (c) 2015, Intel Corporation. All rights reserved.
=0D +Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -106,4 +106,14 @@ PlatformBootManagerShowProgress ( IN UINTN PreviousValue=0D );=0D =0D +/**=0D + It provides a standard interface for interacting with terminal devices i= n=0D + the UEFI environment.=0D +**/=0D +VOID=0D +EFIAPI=0D +PlatformUefiEnvHotkeyRegister (=0D + VOID=0D + );=0D +=0D #endif // _PLATFORM_BOOT_MANAGER_H=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManagerLib.inf b/Platform/RISC-V/PlatformPkg/Library/PlatformBootM= anagerLib/PlatformBootManagerLib.inf index caefae3b..0dd0cd67 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf @@ -2,6 +2,7 @@ # Include all platform action which can be customized by IBV/OEM.=0D #=0D # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D +# Copyright (c) 2024, Intel Corporation. All rights reserved.
=0D #=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D @@ -42,6 +43,7 @@ =0D [Guids]=0D gEfiEndOfDxeEventGroupGuid=0D + gEfiTtyTermGuid=0D =0D [Protocols]=0D gEfiGenericMemTestProtocolGuid ## CONSUMES=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformData.c b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pl= atformData.c index 4a79c6ca..3b66f3c8 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformDa= ta.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformDa= ta.c @@ -3,7 +3,7 @@ ConIn/ConOut variables.=0D =0D Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights = reserved.
=0D -Copyright (c) 2015, Intel Corporation. All rights reserved.
=0D +Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -51,3 +51,16 @@ PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[] =3D { 0=0D }=0D };=0D +=0D +/**=0D + It provides a standard interface for interacting with terminal devices i= n=0D + the UEFI environment.=0D +**/=0D +VOID=0D +EFIAPI=0D +PlatformUefiEnvHotkeyRegister (=0D + VOID=0D + )=0D +{=0D + CopyGuid (&gSerialConsoleDevicePath0.TerminalType.Guid, &gEfiTtyTermGuid= );=0D +}=0D --=20 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116172): https://edk2.groups.io/g/devel/message/116172 Mute This Topic: https://groups.io/mt/104645138/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-