Cc: Feng Tian <feng.tian@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
/** @file\r
Implementation for S3 SMM Boot Script Saver state driver.\r
\r
/** @file\r
Implementation for S3 SMM Boot Script Saver state driver.\r
\r
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
)\r
{\r
EFI_HANDLE Handle;\r
)\r
{\r
EFI_HANDLE Handle;\r
+\r
+ if (!PcdGetBool (PcdAcpiS3Enable)) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
\r
Handle = NULL;\r
return gSmst->SmmInstallProtocolInterface (\r
\r
Handle = NULL;\r
return gSmst->SmmInstallProtocolInterface (\r
#\r
# It will install S3 SMM Save State protocol to store or record various IO operations to be replayed during an S3 resume.\r
#\r
#\r
# It will install S3 SMM Save State protocol to store or record various IO operations to be replayed during an S3 resume.\r
#\r
-# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are\r
# licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials are\r
# licensed and made available under the terms and conditions of the BSD License\r
BaseMemoryLib\r
BaseLib\r
S3BootScriptLib\r
BaseMemoryLib\r
BaseLib\r
S3BootScriptLib\r
\r
[Protocols]\r
gEfiS3SmmSaveStateProtocolGuid ## PRODUCES\r
\r
\r
[Protocols]\r
gEfiS3SmmSaveStateProtocolGuid ## PRODUCES\r
\r
+[Pcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES\r
+\r