]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/SmmEndOfS3Resume.h: Add new protocol definition.
authorEric Dong <eric.dong@intel.com>
Wed, 11 Oct 2017 01:21:00 +0000 (09:21 +0800)
committerEric Dong <eric.dong@intel.com>
Thu, 12 Oct 2017 02:17:46 +0000 (10:17 +0800)
Add gEdkiiSmmEndOfS3ResumeProtocolGuid which used by SmmCore to
notify smm drives that S3 resume has finished.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec

diff --git a/MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h b/MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h
new file mode 100644 (file)
index 0000000..9716f6a
--- /dev/null
@@ -0,0 +1,26 @@
+/** @file\r
+  This Protocol will be installed at the end of S3 resume phase in SMM environment. \r
+  It allows for smm drivers to hook this point and do the requried tasks.\r
+\r
+  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials                          \r
+  are licensed and made available under the terms and conditions of the BSD License         \r
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+**/\r
+\r
+#ifndef __SMM_END_OF_S3_RESUME_H__\r
+#define __SMM_END_OF_S3_RESUME_H__\r
+\r
+#define EDKII_SMM_END_OF_S3_RESUME_PROTOCOL_GUID \\r
+  { \\r
+    0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } \\r
+  }\r
+\r
+extern EFI_GUID gEdkiiSmmEndOfS3ResumeProtocolGuid;\r
+\r
+#endif\r
index 9248d10da8810923f2c0efba0d6e15f2bb641408..20a07be96e5a983e10120d6099211a79f0e1bbca 100644 (file)
   ## Include/Protocol/IoMmu.h\r
   gEdkiiIoMmuProtocolGuid = { 0x4e939de9, 0xd948, 0x4b0f, { 0x88, 0xed, 0xe6, 0xe1, 0xce, 0x51, 0x7c, 0x1e } }\r
 \r
+  ## Include/Protocol/SmmEndofS3Resume.h\r
+  gEdkiiSmmEndOfS3ResumeProtocolGuid = { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } }\r
+\r
 #\r
 # [Error.gEfiMdeModulePkgTokenSpaceGuid]\r
 #   0x80000001 | Invalid value provided.\r