From nobody Fri Nov 1 04:26:40 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1523496746034575.2260200489367; Wed, 11 Apr 2018 18:32:26 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EB655226CD7A3; Wed, 11 Apr 2018 18:32:24 -0700 (PDT) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0043F22742A92 for ; Wed, 11 Apr 2018 18:32:22 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2018 18:32:22 -0700 Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga002.jf.intel.com with ESMTP; 11 Apr 2018 18:32:21 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=dandan.bi@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,439,1517904000"; d="scan'208";a="50091489" From: Dandan Bi To: edk2-devel@lists.01.org Date: Thu, 12 Apr 2018 09:31:36 +0800 Message-Id: <20180412013138.113904-2-dandan.bi@intel.com> X-Mailer: git-send-email 2.14.3.windows.1 In-Reply-To: <20180412013138.113904-1-dandan.bi@intel.com> References: <20180412013138.113904-1-dandan.bi@intel.com> Subject: [edk2] [patch 1/3] MdeModulePkg/UiApp: Signal event when enter/exit setup menu X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Dong , Liming Gao MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" These changes are to support notify callbacks when enter/exit setup menu, since some driver may need to hook setup enter/exit points to do something. We will signal setup enter/exit events for all setup menu enter/exit cases.Then the module which pay attention to these events can execute the callback. Cc: Eric Dong Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi --- MdeModulePkg/Application/UiApp/FrontPage.c | 4 +++- MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c | 3 ++- MdeModulePkg/Application/UiApp/UiApp.inf | 4 +++- MdeModulePkg/MdeModulePkg.dec | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Application/UiApp/FrontPage.c b/MdeModulePkg/Appl= ication/UiApp/FrontPage.c index adee67a8ac1..e5d2cb00c62 100644 --- a/MdeModulePkg/Application/UiApp/FrontPage.c +++ b/MdeModulePkg/Application/UiApp/FrontPage.c @@ -1,9 +1,9 @@ /** @file FrontPage routines to handle the callbacks and browser calls =20 -Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD = License which accompanies this distribution. The full text of the license may be = found at http://opensource.org/licenses/bsd-license.php =20 @@ -992,10 +992,11 @@ UiEntry ( REPORT_STATUS_CODE ( EFI_PROGRESS_CODE, (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_PC_USER_SETUP) ); =20 + EfiEventGroupSignal(&gEdkiiSetupEnterGuid); // // Indicate if the connect all has been performed before. // If has not been performed before, do here. // if (!ConnectAllHappened) { @@ -1024,10 +1025,11 @@ UiEntry ( if (mLanguageString !=3D NULL) { FreePool (mLanguageString); mLanguageString =3D NULL; } =20 + EfiEventGroupSignal(&gEdkiiSetupExitGuid); // //Will leave browser, check any reset required change is applied? if yes= , reset system // SetupResetReminder (); } diff --git a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c = b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c index 17fc3db507d..2c5f9d24204 100644 --- a/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c +++ b/MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c @@ -1,10 +1,10 @@ /** @file =20 This library class defines a set of interfaces to customize Ui module =20 -Copyright (c) 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made availabl= e under the terms and conditions of the BSD License that accompanies this distribu= tion. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php. =20 @@ -232,10 +232,11 @@ UiSupportLibCallbackHandler ( =20 case FRONT_PAGE_KEY_RESET: // // Reset // + EfiEventGroupSignal(&gEdkiiSetupExitGuid); gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL); *Status =3D EFI_UNSUPPORTED; =20 default: break; diff --git a/MdeModulePkg/Application/UiApp/UiApp.inf b/MdeModulePkg/Applic= ation/UiApp/UiApp.inf index d144462ce46..c212387e5be 100644 --- a/MdeModulePkg/Application/UiApp/UiApp.inf +++ b/MdeModulePkg/Application/UiApp/UiApp.inf @@ -1,9 +1,9 @@ ## @file # UiApp module is driver for BDS phase. # -# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at # http://opensource.org/licenses/bsd-license.php # =20 @@ -62,10 +62,12 @@ UefiBootManagerLib =20 [Guids] gEfiIfrTianoGuid ## CONSUMES ## GUID (Exten= ded IFR Guid Opcode) gEfiIfrFrontPageGuid ## CONSUMES ## GUID + gEdkiiSetupEnterGuid ## CONSUMES ## GUID + gEdkiiSetupExitGuid ## CONSUMES ## GUID =20 [Protocols] gEfiSmbiosProtocolGuid ## CONSUMES gEfiHiiConfigAccessProtocolGuid ## CONSUMES =20 diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index cc397185f7b..e0bdf5ecdf3 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -407,10 +407,16 @@ gEdkiiEndOfS3ResumeGuid =3D { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0= xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } } =20 ## Include/Guid/S3SmmInitDone.h gEdkiiS3SmmInitDoneGuid =3D { 0x8f9d4825, 0x797d, 0x48fc, { 0x84, 0x71, = 0x84, 0x50, 0x25, 0x79, 0x2e, 0xf6 } } =20 + ## Guid used to create/signal the event of entering Setup. + gEdkiiSetupEnterGuid =3D { 0xcb9f5b38, 0x1729, 0x4bc0, { 0x87, 0xfe, 0x= f7, 0x67, 0x92, 0x56, 0xb6, 0xc5 } } + + ## Guid used to create/signal the event of exiting Setup. + gEdkiiSetupExitGuid =3D { 0x2729f07f, 0x2f8b, 0x44b2, { 0xb8, 0xc1, 0x= c9, 0x8e, 0xcf, 0xba, 0x8d, 0x3f } } + [Ppis] ## Include/Ppi/AtaController.h gPeiAtaControllerPpiGuid =3D { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0,= 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }} =20 ## Include/Ppi/UsbHostController.h --=20 2.14.3.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel