]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c
Change the function name.
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / PeiS3Lib / PeiS3Lib.c
... / ...
CommitLineData
1/**@file\r
2 S3 Library. This library class defines a set of methods related do S3 mode\r
3\r
4Copyright (c) 2006 - 2007 Intel Corporation\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14#include <FrameworkPei.h>\r
15#include <Library/PeiServicesLib.h>\r
16#include <Library/PeiServicesTablePointerLib.h>\r
17#include <Library/DebugLib.h>\r
18\r
19#include <Ppi/S3Resume.h>\r
20\r
21/**\r
22 This function is responsible for calling the S3 resume vector in the ACPI Tables.\r
23 \r
24 @retval EFI_SUCESS Sucess to restore config from S3.\r
25 @retval Others Fail to restore config from S3.\r
26**/\r
27EFI_STATUS\r
28EFIAPI\r
29AcpiS3ResumeOs (\r
30 VOID\r
31 )\r
32{\r
33 EFI_STATUS Status;\r
34 EFI_PEI_S3_RESUME_PPI *S3Resume;\r
35 \r
36 Status = PeiServicesLocatePpi (\r
37 &gEfiPeiS3ResumePpiGuid,\r
38 0,\r
39 NULL,\r
40 (VOID **)&S3Resume\r
41 );\r
42 ASSERT_EFI_ERROR (Status);\r
43\r
44 return S3Resume->S3RestoreConfig (GetPeiServicesTablePointer()); \r
45}\r
46\r