X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFrameworkModulePkg%2FLibrary%2FPeiS3Lib%2FPeiS3Lib.c;h=2d63c99f5e3f0cc8d8b84cfd8d472a8dcb8c975d;hb=7db60f82527709afed683b322cdb2399f1a6a7a2;hp=875e1169f2301c3abe724c2c1e8b2d8b93c33222;hpb=4fb31c2c5828aa51a8bfed98778d1be919981d2b;p=mirror_edk2.git diff --git a/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c index 875e1169f2..2d63c99f5e 100644 --- a/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c +++ b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c @@ -1,7 +1,11 @@ -/**@file - S3 Library. This library class defines a set of methods related do S3 mode +/** @file + This library provides API to invoke the S3 resume vector in the APCI Table in S3 resume mode. -Copyright (c) 2006 - 2007 Intel Corporation + This library instance is no longer used and module using this library + class should update to directly locate EFI_PEI_S3_RESUME_PPI defined + in PI 1.2 specification. + +Copyright (c) 2006 - 2008 Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -11,7 +15,8 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -#include + +#include #include #include #include @@ -19,14 +24,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include /** - Calling this function causes the system restore config from S3. + This function is responsible for calling the S3 resume vector in the ACPI Tables. - @retval EFI_SUCESS Sucess to restore config from S3. + @retval EFI_SUCESS Success to restore config from S3. @retval Others Fail to restore config from S3. **/ EFI_STATUS EFIAPI -S3RestoreConfig ( +AcpiS3ResumeOs ( VOID ) { @@ -41,6 +46,6 @@ S3RestoreConfig ( ); ASSERT_EFI_ERROR (Status); - return S3Resume->S3RestoreConfig (GetPeiServicesTablePointer()); + return S3Resume->S3RestoreConfig ((EFI_PEI_SERVICES **) GetPeiServicesTablePointer()); }