From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=zhichao.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 7982E211DDA3C for ; Mon, 1 Apr 2019 22:49:13 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 22:49:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,298,1549958400"; d="scan'208";a="139225708" Received: from gaozhic-mobl.ccr.corp.intel.com ([10.239.196.135]) by orsmga003.jf.intel.com with ESMTP; 01 Apr 2019 22:49:11 -0700 From: Zhichao Gao To: edk2-devel@lists.01.org Cc: Bret Barkelew , Jian J Wang , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner Date: Tue, 2 Apr 2019 13:49:04 +0800 Message-Id: <20190402054905.19396-2-zhichao.gao@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20190402054905.19396-1-zhichao.gao@intel.com> References: <20190402054905.19396-1-zhichao.gao@intel.com> Subject: [PATCH 1/2] MdeModulePkg: Add event guids X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2019 05:49:13 -0000 From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1676 Add event guids: gEfiEventPreReadyToBootGuid and gEfiEventPostReadyToBootGuid. And add the related header files. These two guid can be used to notify function before and after ReadyToBoot event. Cc: Jian J Wang Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhichao Gao --- .../Include/Guid/EventPostReadyToBoot.h | 24 +++++++++++++++++++ .../Include/Guid/EventPreReadyToBoot.h | 24 +++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 6 +++++ 3 files changed, 54 insertions(+) create mode 100644 MdeModulePkg/Include/Guid/EventPostReadyToBoot.h create mode 100644 MdeModulePkg/Include/Guid/EventPreReadyToBoot.h diff --git a/MdeModulePkg/Include/Guid/EventPostReadyToBoot.h b/MdeModulePkg/Include/Guid/EventPostReadyToBoot.h new file mode 100644 index 0000000000..591bccb42d --- /dev/null +++ b/MdeModulePkg/Include/Guid/EventPostReadyToBoot.h @@ -0,0 +1,24 @@ +/** @file + GUID is the name of events used with CreateEventEx in order to be notified + when closely after ReadyToBoot. + + Copyright (c) 2019, 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 + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#ifndef __EVENT_POST_READY_TO_BOOT_H__ +#define __EVENT_POST_READY_TO_BOOT_H__ + +#define EVENT_POST_READY_TO_BOOT_GUID \ + { 0xa5b489b4, 0x18fd, 0x4425, { 0x91, 0xa4, 0x61, 0x3a, 0xdd, 0xd2, 0x74, 0x5 } } + +extern EFI_GUID gEfiEventPostReadyToBootGuid; + +#endif + diff --git a/MdeModulePkg/Include/Guid/EventPreReadyToBoot.h b/MdeModulePkg/Include/Guid/EventPreReadyToBoot.h new file mode 100644 index 0000000000..8e6329b90d --- /dev/null +++ b/MdeModulePkg/Include/Guid/EventPreReadyToBoot.h @@ -0,0 +1,24 @@ +/** @file + GUID is the name of events used with CreateEventEx in order to be notified + when closely before ReadyToBoot. + + Copyright (c) 2019, 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 + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#ifndef __EVENT_PRE_READY_TO_BOOT_H__ +#define __EVENT_PRE_READY_TO_BOOT_H__ + +#define EVENT_PRE_READY_TO_BOOT_GUID \ + { 0x7b94c75c, 0x36a4, 0x4aa4, { 0xa1, 0xdf, 0x14, 0xbc, 0x9a, 0x04, 0x9a, 0xe4 } } + +extern EFI_GUID gEfiEventPreReadyToBootGuid; + +#endif + diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 9bbd0572f5..43992b7f65 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -425,6 +425,12 @@ ## Include/Guid/S3StorageDeviceInitList.h gS3StorageDeviceInitListGuid = { 0x310e9b8c, 0xcf90, 0x421e, { 0x8e, 0x9b, 0x9e, 0xef, 0xb6, 0x17, 0xc8, 0xef } } + ## Include/Guid/EventPreReadyToBoot.h + gEfiEventPreReadyToBootGuid = { 0x7b94c75c, 0x36a4, 0x4aa4, {0xa1, 0xdf, 0x14, 0xbc, 0x9a, 0x04, 0x9a, 0xe4 } } + + ##Include/Guid/EventPostReadyToBoot.h + gEfiEventPostReadyToBootGuid = { 0xa5b489b4, 0x18fd, 0x4425, { 0x91, 0xa4, 0x61, 0x3a, 0xdd, 0xd2, 0x74, 0x5 } } + [Ppis] ## Include/Ppi/AtaController.h gPeiAtaControllerPpiGuid = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }} -- 2.21.0.windows.1