blob: f952055f888a2e36cd72e1b48d8948ac9ed5fc29 [file] [log] [blame]
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +03001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030014 */
15
16#ifndef S3_RESUME_H
17#define S3_RESUME_H
18
19typedef enum {
20 S3DataTypeNonVolatile=0, ///< NonVolatile Data Type
21 S3DataTypeVolatile, ///< Volatile Data Type
22 S3DataTypeMTRR ///< MTRR storage
23} S3_DATA_TYPE;
24
25void restore_mtrr(void);
26void prepare_for_resume(void);
27
28u32 OemAgesaSaveS3Info (S3_DATA_TYPE S3DataType, u32 DataSize, void *Data);
29void OemAgesaGetS3Info (S3_DATA_TYPE S3DataType, u32 *DataSize, void **Data);
30void OemAgesaSaveMtrr (void);
31
32void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len);
33
34#endif