coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmlib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { MAINBOARD_POWER_STATE_OFF , MAINBOARD_POWER_STATE_ON , MAINBOARD_POWER_STATE_PREVIOUS }
 

Functions

void pm_set_power_failure_state (void)
 
void fill_chipset_state (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAINBOARD_POWER_STATE_OFF 
MAINBOARD_POWER_STATE_ON 
MAINBOARD_POWER_STATE_PREVIOUS 

Definition at line 6 of file pmlib.h.

Function Documentation

◆ fill_chipset_state()

void fill_chipset_state ( void  )

Definition at line 12 of file chipset_state.c.

References acpi_fill_pm_gpe_state(), chipset_state, chipset_power_state::gpe_state, gpio_fill_wake_state(), and chipset_power_state::gpio_state.

Referenced by car_stage_entry(), and elog_gsmi_cb_platform_log_wake_source().

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

◆ pm_set_power_failure_state()

void pm_set_power_failure_state ( void  )

Definition at line 16 of file pmlib.c.

References BIOS_INFO, BIOS_WARNING, MAINBOARD_POWER_STATE_OFF, MAINBOARD_POWER_STATE_ON, MAINBOARD_POWER_STATE_PREVIOUS, pm_io_write8(), PM_RTC_SHADOW_REG, printk, PWR_FAIL_OFF, PWR_FAIL_ON, PWR_FAIL_PREV, and PWR_PWRSTATE.

Referenced by bootblock_fch_init(), and fch_early_init().

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