]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c
EmulatorPkg/Win: ReadKeyStrokeEx() always returns correct KeyState
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / PeiS3Lib / PeiS3Lib.c
CommitLineData
0f13d71c 1/** @file\r
0a6f4824 2 This library provides API to invoke the S3 resume vector in the APCI Table in S3 resume mode.\r
7db60f82 3\r
4 This library instance is no longer used and module using this library\r
5 class should update to directly locate EFI_PEI_S3_RESUME_PPI defined\r
0a6f4824 6 in PI 1.2 specification.\r
4fb31c2c 7\r
0a6f4824 8Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
180a5a35 9This program and the accompanying materials\r
4fb31c2c 10are licensed and made available under the terms and conditions of the BSD License\r
11which accompanies this distribution. The full text of the license may be found at\r
12http://opensource.org/licenses/bsd-license.php\r
13\r
14THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
15WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16\r
17**/\r
7db60f82 18\r
19#include <PiPei.h>\r
4fb31c2c 20#include <Library/PeiServicesLib.h>\r
21#include <Library/PeiServicesTablePointerLib.h>\r
22#include <Library/DebugLib.h>\r
23\r
24#include <Ppi/S3Resume.h>\r
25\r
26/**\r
e8da1266 27 This function is responsible for calling the S3 resume vector in the ACPI Tables.\r
0a6f4824 28\r
7db60f82 29 @retval EFI_SUCESS Success to restore config from S3.\r
4fb31c2c 30 @retval Others Fail to restore config from S3.\r
31**/\r
32EFI_STATUS\r
33EFIAPI\r
e8da1266 34AcpiS3ResumeOs (\r
4fb31c2c 35 VOID\r
36 )\r
37{\r
38 EFI_STATUS Status;\r
39 EFI_PEI_S3_RESUME_PPI *S3Resume;\r
0a6f4824 40\r
4fb31c2c 41 Status = PeiServicesLocatePpi (\r
42 &gEfiPeiS3ResumePpiGuid,\r
43 0,\r
44 NULL,\r
45 (VOID **)&S3Resume\r
46 );\r
47 ASSERT_EFI_ERROR (Status);\r
48\r
0a6f4824 49 return S3Resume->S3RestoreConfig ((EFI_PEI_SERVICES **) GetPeiServicesTablePointer());\r
4fb31c2c 50}\r
51\r