coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
s3_resume.c File Reference
#include <device/mmio.h>
#include <stage_cache.h>
#include <mrc_cache.h>
#include <reset.h>
#include <console/console.h>
#include <soc/southbridge.h>
#include <amdblocks/s3_resume.h>
#include <amdblocks/acpi.h>
Include dependency graph for s3_resume.c:

Go to the source code of this file.

Macros

#define DEFAULT_MRC_VERSION   0
 

Functions

static void __noreturn reboot_from_resume (const char *message)
 
AGESA_STATUS OemInitResume (S3_DATA_BLOCK *dataBlock)
 
AGESA_STATUS OemS3LateRestore (S3_DATA_BLOCK *dataBlock)
 
AGESA_STATUS OemS3Save (S3_DATA_BLOCK *dataBlock)
 

Macro Definition Documentation

◆ DEFAULT_MRC_VERSION

#define DEFAULT_MRC_VERSION   0

Definition at line 13 of file s3_resume.c.

Function Documentation

◆ OemInitResume()

AGESA_STATUS OemInitResume ( S3_DATA_BLOCK *  dataBlock)

Definition at line 22 of file s3_resume.c.

References AGESA_SUCCESS, base, BIOS_SPEW, DEFAULT_MRC_VERSION, mrc_cache_current_mmap_leak(), MRC_TRAINING_DATA, printk, read32(), and reboot_from_resume().

Here is the call graph for this function:

◆ OemS3LateRestore()

AGESA_STATUS OemS3LateRestore ( S3_DATA_BLOCK *  dataBlock)

Definition at line 49 of file s3_resume.c.

References AGESA_FATAL, AGESA_SUCCESS, base, BIOS_ERR, BIOS_SPEW, NULL, printk, stage_cache_get_raw(), and STAGE_S3_DATA.

Here is the call graph for this function:

◆ OemS3Save()

AGESA_STATUS OemS3Save ( S3_DATA_BLOCK *  dataBlock)

Definition at line 68 of file s3_resume.c.

References AGESA_CRITICAL, AGESA_SUCCESS, BIOS_ERR, DEFAULT_MRC_VERSION, mrc_cache_stash_data(), MRC_TRAINING_DATA, printk, stage_cache_add_raw(), and STAGE_S3_DATA.

Here is the call graph for this function:

◆ reboot_from_resume()

static void __noreturn reboot_from_resume ( const char *  message)
static

Definition at line 15 of file s3_resume.c.

References BIOS_ERR, board_reset(), printk, and set_pm1cnt_s5().

Referenced by OemInitResume().

Here is the call graph for this function:
Here is the caller graph for this function: