2 S3 Library. This library class defines a set of methods related do S3 mode
4 Copyright (c) 2006 - 2007 Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #include <FrameworkPei.h>
15 #include <Library/PeiServicesLib.h>
16 #include <Library/PeiServicesTablePointerLib.h>
17 #include <Library/DebugLib.h>
19 #include <Ppi/S3Resume.h>
22 This function is responsible for calling the S3 resume vector in the ACPI Tables.
24 @retval EFI_SUCESS Sucess to restore config from S3.
25 @retval Others Fail to restore config from S3.
34 EFI_PEI_S3_RESUME_PPI
*S3Resume
;
36 Status
= PeiServicesLocatePpi (
37 &gEfiPeiS3ResumePpiGuid
,
42 ASSERT_EFI_ERROR (Status
);
44 return S3Resume
->S3RestoreConfig (GetPeiServicesTablePointer());