blob: 65974a34027c11e55b77cfd12da4b7a69db02304 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 This is an implementation of the ACPI S3 Save protocol. This is defined in
3 S3 boot path specification 0.9.
4
5Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
6
7This program and the accompanying materials
8are licensed and made available under the terms and conditions
9of the BSD License which accompanies this distribution. The
10full text of the license may be found at
11http://opensource.org/licenses/bsd-license.php
12
13THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15
16**/
17
18#ifndef _ACPI_S3_SAVE_H_
19#define _ACPI_S3_SAVE_H_
20
21/**
22 Gets the buffer of legacy memory below 1 MB
23 This function is to get the buffer in legacy memory below 1MB that is required during S3 resume.
24
25 @param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
26 @param Size The returned size of legacy memory below 1 MB.
27
28 @retval EFI_SUCCESS Size is successfully returned.
29 @retval EFI_INVALID_PARAMETER The pointer Size is NULL.
30
31**/
32EFI_STATUS
33EFIAPI
34LegacyGetS3MemorySize (
35 IN EFI_ACPI_S3_SAVE_PROTOCOL * This,
36 OUT UINTN * Size
37 );
38
39/**
40 Prepares all information that is needed in the S3 resume boot path.
41
42 Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path
43
44 @param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.
45 @param LegacyMemoryAddress The base address of legacy memory.
46
47 @retval EFI_NOT_FOUND Some necessary information cannot be found.
48 @retval EFI_SUCCESS All information was saved successfully.
49 @retval EFI_OUT_OF_RESOURCES Resources were insufficient to save all the information.
50 @retval EFI_INVALID_PARAMETER The memory range is not located below 1 MB.
51
52**/
53EFI_STATUS
54EFIAPI
55S3Ready (
56 IN EFI_ACPI_S3_SAVE_PROTOCOL *This,
57 IN VOID *LegacyMemoryAddress
58 );
59#endif