8 #include <soc/southbridge.h>
13 #define DEFAULT_MRC_VERSION 0
36 for (i = 0; i < 4; i++)
38 if (erased == 0xffffffff)
41 dataBlock->NvStorage =
base;
42 dataBlock->NvStorageSize = size;
44 dataBlock->NvStorage, (
size_t)dataBlock->NvStorageSize);
60 dataBlock->VolatileStorage =
base;
61 dataBlock->VolatileStorageSize = size;
63 dataBlock->VolatileStorage, (
size_t)dataBlock->VolatileStorageSize);
71 dataBlock->NvStorage, dataBlock->NvStorageSize) < 0) {
77 dataBlock->VolatileStorageSize);
unsigned int AGESA_STATUS
static uint32_t read32(const void *addr)
#define printk(level,...)
__noreturn void board_reset(void)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_SPEW
BIOS_SPEW - Excessively verbose output.
int mrc_cache_stash_data(int type, uint32_t version, const void *data, size_t size)
Returns < 0 on error, 0 on success.
void * mrc_cache_current_mmap_leak(int type, uint32_t version, size_t *data_size)
mrc_cache_mmap_leak
#define DEFAULT_MRC_VERSION
static void __noreturn reboot_from_resume(const char *message)
AGESA_STATUS OemS3Save(S3_DATA_BLOCK *dataBlock)
AGESA_STATUS OemS3LateRestore(S3_DATA_BLOCK *dataBlock)
AGESA_STATUS OemInitResume(S3_DATA_BLOCK *dataBlock)
static void stage_cache_add_raw(int stage_id, const void *base, const size_t size)
static void stage_cache_get_raw(int stage_id, void **base, size_t *size)