Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 1 | /* |
| 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älkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef S3_RESUME_H |
| 17 | #define S3_RESUME_H |
| 18 | |
| 19 | typedef enum { |
| 20 | S3DataTypeNonVolatile=0, ///< NonVolatile Data Type |
| 21 | S3DataTypeVolatile, ///< Volatile Data Type |
| 22 | S3DataTypeMTRR ///< MTRR storage |
| 23 | } S3_DATA_TYPE; |
| 24 | |
| 25 | void restore_mtrr(void); |
| 26 | void prepare_for_resume(void); |
| 27 | |
| 28 | u32 OemAgesaSaveS3Info (S3_DATA_TYPE S3DataType, u32 DataSize, void *Data); |
| 29 | void OemAgesaGetS3Info (S3_DATA_TYPE S3DataType, u32 *DataSize, void **Data); |
| 30 | void OemAgesaSaveMtrr (void); |
| 31 | |
| 32 | void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len); |
| 33 | |
| 34 | #endif |