From 59f0ef95e05f4a63da561bcb9bb6a0ebc6c034c5 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Wed, 11 Oct 2017 09:21:00 +0800 Subject: [PATCH] MdeModulePkg/SmmEndOfS3Resume.h: Add new protocol definition. Add gEdkiiSmmEndOfS3ResumeProtocolGuid which used by SmmCore to notify smm drives that S3 resume has finished. Cc: Ruiyu Ni Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni Reviewed-by: Jiewen Yao --- .../Include/Protocol/SmmEndOfS3Resume.h | 26 +++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h diff --git a/MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h b/MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h new file mode 100644 index 0000000000..9716f6a22a --- /dev/null +++ b/MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h @@ -0,0 +1,26 @@ +/** @file + This Protocol will be installed at the end of S3 resume phase in SMM environment. + It allows for smm drivers to hook this point and do the requried tasks. + + Copyright (c) 2017, 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 __SMM_END_OF_S3_RESUME_H__ +#define __SMM_END_OF_S3_RESUME_H__ + +#define EDKII_SMM_END_OF_S3_RESUME_PROTOCOL_GUID \ + { \ + 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } \ + } + +extern EFI_GUID gEdkiiSmmEndOfS3ResumeProtocolGuid; + +#endif diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 9248d10da8..20a07be96e 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -556,6 +556,9 @@ ## Include/Protocol/IoMmu.h gEdkiiIoMmuProtocolGuid = { 0x4e939de9, 0xd948, 0x4b0f, { 0x88, 0xed, 0xe6, 0xe1, 0xce, 0x51, 0x7c, 0x1e } } + ## Include/Protocol/SmmEndofS3Resume.h + gEdkiiSmmEndOfS3ResumeProtocolGuid = { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } } + # # [Error.gEfiMdeModulePkgTokenSpaceGuid] # 0x80000001 | Invalid value provided. -- 2.39.2