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

Go to the source code of this file.

Functions

static void migrate_power_state (int is_recovery)
 
static int prev_sleep_state (const struct chipset_power_state *ps)
 
static void dump_power_state (struct chipset_power_state *ps)
 
struct chipset_power_statefill_power_state (void)
 

Variables

static struct chipset_power_state power_state
 

Function Documentation

◆ dump_power_state()

◆ fill_power_state()

◆ migrate_power_state()

static void migrate_power_state ( int  is_recovery)
static

Definition at line 19 of file power_state.c.

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

Here is the call graph for this function:

◆ prev_sleep_state()

static int prev_sleep_state ( const struct chipset_power_state ps)
static

Definition at line 36 of file power_state.c.

References ACPI_BASE_ADDRESS, ACPI_S0, ACPI_S3, ACPI_S5, CONFIG, outl(), PM1_CNT, PWR_FLR, SLP_TYP, SUS_PWR_FLR, and WAK_STS.

Referenced by acpi_get_sleep_type(), chipset_prev_sleep_state(), fill_power_state(), mainboard_romstage_entry(), pmc_prev_sleep_state(), raminit(), and soc_prev_sleep_state().

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

Variable Documentation

◆ power_state

struct chipset_power_state power_state
static

Definition at line 1 of file power_state.c.

Referenced by fill_power_state(), and migrate_power_state().