/** @file\r
Internal header file for S3 Boot Script Saver state driver.\r
\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 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
#include <Library/UefiRuntimeServicesTableLib.h>\r
#include <Library/S3BootScriptLib.h>\r
#include <Library/SmbusLib.h>\r
+#include <Library/PcdLib.h>\r
#include <IndustryStandard/SmBus.h>\r
/**\r
Adds a record into S3 boot script table.\r
/** @file\r
Implementation for S3 Boot Script Saver state driver.\r
\r
- Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 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
{\r
\r
+ if (!PcdGetBool (PcdAcpiS3Enable)) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
\r
return gBS->InstallProtocolInterface (\r
&mHandle,\r
#\r
# It will install S3 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
BaseMemoryLib\r
BaseLib\r
S3BootScriptLib\r
+ PcdLib\r
\r
[Protocols]\r
gEfiS3SaveStateProtocolGuid ## PRODUCES\r
\r
\r
+[Pcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES\r
+\r
[Depex]\r
TRUE\r
\r