![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <spi-generic.h>
#include <spi_flash.h>
#include <string.h>
#include <cbmem.h>
#include <console/console.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <AGESA.h>
#include <northbridge/amd/agesa/agesa_helper.h>
Go to the source code of this file.
Macros | |
#define | S3_DATA_MTRR_SIZE 0x1000 |
#define | S3_DATA_NONVOLATILE_SIZE 0x1000 |
Enumerations | |
enum | S3_DATA_TYPE { S3DataTypeNonVolatile = 0 , S3DataTypeMTRR } |
Functions | |
static void | get_s3nv_data (S3_DATA_TYPE S3DataType, uintptr_t *pos, uintptr_t *len) |
AGESA_STATUS | OemInitResume (AMD_S3_PARAMS *dataBlock) |
AGESA_STATUS | OemS3LateRestore (AMD_S3_PARAMS *dataBlock) |
const void * | OemS3Saved_MTRR_Storage (void) |
enum S3_DATA_TYPE |
|
static |
Definition at line 26 of file oem_s3.c.
References S3_DATA_MTRR_SIZE, S3_DATA_NONVOLATILE_SIZE, S3DataTypeMTRR, and S3DataTypeNonVolatile.
Referenced by OemInitResume(), and OemS3Saved_MTRR_Storage().
AGESA_STATUS OemInitResume | ( | AMD_S3_PARAMS * | dataBlock | ) |
Definition at line 47 of file oem_s3.c.
References AGESA_FATAL, AGESA_SUCCESS, get_s3nv_data(), and S3DataTypeNonVolatile.
Referenced by amd_init_resume(), platform_BeforeInitPost(), and platform_BeforeInitResume().
AGESA_STATUS OemS3LateRestore | ( | AMD_S3_PARAMS * | dataBlock | ) |
Definition at line 63 of file oem_s3.c.
References AGESA_FATAL, AGESA_SUCCESS, BIOS_DEBUG, cbmem_find(), CBMEM_ID_RESUME_SCRATCH, HIGH_MEMORY_SCRATCH, NULL, and printk.
Referenced by amd_s3final_restore(), amd_s3late_restore(), and platform_BeforeS3LateRestore().
Definition at line 142 of file oem_s3.c.
References get_s3nv_data(), NULL, S3DataTypeMTRR, and spi_flash::size.
Referenced by restore_mtrr().