]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c
a8583498afc13ccf10220ce53878cd4857f906e9
2 This library provides API to invoke the S3 resume vector in the APCI Table in S3 resume mode.
4 This library instance is no longer used and module using this library
5 class should update to directly locate EFI_PEI_S3_RESUME_PPI defined
6 in PI 1.2 specification.
8 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
14 #include <Library/PeiServicesLib.h>
15 #include <Library/PeiServicesTablePointerLib.h>
16 #include <Library/DebugLib.h>
18 #include <Ppi/S3Resume.h>
21 This function is responsible for calling the S3 resume vector in the ACPI Tables.
23 @retval EFI_SUCESS Success to restore config from S3.
24 @retval Others Fail to restore config from S3.
33 EFI_PEI_S3_RESUME_PPI
*S3Resume
;
35 Status
= PeiServicesLocatePpi (
36 &gEfiPeiS3ResumePpiGuid
,
41 ASSERT_EFI_ERROR (Status
);
43 return S3Resume
->S3RestoreConfig ((EFI_PEI_SERVICES
**) GetPeiServicesTablePointer());