coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c File Reference
#include <arch/io.h>
#include <arch/romstage.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <cbmem.h>
#include <elog.h>
#include <romstage_handoff.h>
#include <string.h>
#include <timestamp.h>
#include <soc/iomap.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/romstage.h>
Include dependency graph for romstage.c:

Go to the source code of this file.

Functions

static void migrate_power_state (int is_recovery)
 
static struct chipset_power_statefill_power_state (void)
 
static int chipset_prev_sleep_state (const struct chipset_power_state *ps)
 
void mainboard_romstage_entry (void)
 

Variables

static struct chipset_power_state power_state
 

Function Documentation

◆ chipset_prev_sleep_state()

static int chipset_prev_sleep_state ( const struct chipset_power_state ps)
static

Definition at line 62 of file romstage.c.

References ACPI_BASE_ADDRESS, ACPI_S0, ACPI_S3, ACPI_S5, CONFIG, chipset_power_state::gen_pmcon1, outl(), PM1_CNT, chipset_power_state::pm1_cnt, chipset_power_state::pm1_sts, prev_sleep_state(), PWR_FLR, SLP_TYP, SUS_PWR_FLR, and WAK_STS.

Referenced by mainboard_romstage_entry().

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

◆ fill_power_state()

◆ mainboard_romstage_entry()

◆ migrate_power_state()

static void migrate_power_state ( int  is_recovery)
static

Definition at line 21 of file romstage.c.

References BIOS_DEBUG, cbmem_add(), CBMEM_ID_POWER_STATE, memcpy(), NULL, power_state, and printk.

Here is the call graph for this function:

Variable Documentation

◆ power_state

struct chipset_power_state power_state
static