coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pm_state.c File Reference
#include <acpi/acpi_gnvs.h>
#include <acpi/acpi_pm.h>
#include <amdblocks/acpi.h>
#include <bootstate.h>
#include <soc/acpi.h>
#include <soc/nvs.h>
#include <soc/southbridge.h>
#include <types.h>
Include dependency graph for pm_state.c:

Go to the source code of this file.

Functions

static int get_index_bit (uint32_t value, uint16_t limit)
 
static void pm_fill_gnvs (struct global_nvs *gnvs, const struct acpi_pm_gpe_state *state)
 
static void acpi_save_wake_source (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_PRE_DEVICE, BS_ON_ENTRY, acpi_save_wake_source, NULL)
 

Function Documentation

◆ acpi_save_wake_source()

static void acpi_save_wake_source ( void unused)
static

Definition at line 46 of file pm_state.c.

References acpi_pm_state_for_wake(), acpi_reset_gnvs_for_wake(), gnvs, chipset_power_state::gpe_state, and pm_fill_gnvs().

Here is the call graph for this function:

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_PRE_DEVICE  ,
BS_ON_ENTRY  ,
acpi_save_wake_source  ,
NULL   
)

◆ get_index_bit()

static int get_index_bit ( uint32_t  value,
uint16_t  limit 
)
static

Definition at line 12 of file pm_state.c.

References TOTAL_BITS, and value.

Referenced by pm_fill_gnvs().

Here is the caller graph for this function:

◆ pm_fill_gnvs()

static void pm_fill_gnvs ( struct global_nvs gnvs,
const struct acpi_pm_gpe_state state 
)
static

Definition at line 33 of file pm_state.c.

References get_index_bit(), gnvs, GPE0_LIMIT, global_nvs::gpei, PM1_LIMIT, and global_nvs::pm1i.

Referenced by acpi_save_wake_source().

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