VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/AcpiS3SaveDxe/AcpiS3Save.h@ 58464

Last change on this file since 58464 was 58464, checked in by vboxsync, 9 years ago

EFI/Firmware: Export new files and directories.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1/** @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
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette