From: Bret Barkelew <bret.barke...@microsoft.com> 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 <jian.j.w...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Turner <michael.tur...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhichao Gao <zhichao....@intel.com> --- .../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.<BR> + 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.<BR> + 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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel