coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpi_pm.c File Reference
#include <acpi/acpi.h>
#include <acpi/acpi_pm.h>
#include <cbmem.h>
#include <console/console.h>
#include <smbios.h>
Include dependency graph for acpi_pm.c:

Go to the source code of this file.

Functions

void __weak mainboard_suspend_resume (void)
 
uint8_t acpi_get_preferred_pm_profile (void)
 
struct chipset_power_stateacpi_get_pm_state (void)
 
int acpi_pm_state_for_elog (const struct chipset_power_state **ps)
 
int acpi_pm_state_for_rtc (const struct chipset_power_state **ps)
 
int acpi_pm_state_for_wake (const struct chipset_power_state **ps)
 

Function Documentation

◆ acpi_get_pm_state()

struct chipset_power_state* acpi_get_pm_state ( void  )

Definition at line 31 of file acpi_pm.c.

References cbmem_find(), and CBMEM_ID_POWER_STATE.

Referenced by acpi_pm_state_for_elog(), acpi_pm_state_for_rtc(), acpi_pm_state_for_wake(), pmc_get_power_state(), and rtc_failure().

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

◆ acpi_get_preferred_pm_profile()

uint8_t acpi_get_preferred_pm_profile ( void  )

Definition at line 14 of file acpi_pm.c.

References PM_DESKTOP, PM_MOBILE, PM_TABLET, PM_UNSPECIFIED, SMBIOS_ENCLOSURE_CONVERTIBLE, SMBIOS_ENCLOSURE_DESKTOP, SMBIOS_ENCLOSURE_DETACHABLE, SMBIOS_ENCLOSURE_LAPTOP, SMBIOS_ENCLOSURE_TABLET, SMBIOS_ENCLOSURE_UNKNOWN, and smbios_mainboard_enclosure_type().

Referenced by acpi_create_fadt().

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

◆ acpi_pm_state_for_elog()

int acpi_pm_state_for_elog ( const struct chipset_power_state **  ps)

Definition at line 41 of file acpi_pm.c.

References acpi_get_pm_state(), BIOS_ERR, and printk.

Referenced by acpi_pm_gpe_add_events_print_events(), gpio_add_events(), pch_log_state(), and southcluster_log_state().

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

◆ acpi_pm_state_for_rtc()

int acpi_pm_state_for_rtc ( const struct chipset_power_state **  ps)

Definition at line 51 of file acpi_pm.c.

References acpi_get_pm_state(), BIOS_ERR, and printk.

Referenced by soc_get_rtc_failed().

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

◆ acpi_pm_state_for_wake()

int acpi_pm_state_for_wake ( const struct chipset_power_state **  ps)

Definition at line 61 of file acpi_pm.c.

References acpi_get_pm_state(), BIOS_ERR, and printk.

Referenced by acpi_save_wake_source().

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

◆ mainboard_suspend_resume()

void __weak mainboard_suspend_resume ( void  )

Definition at line 9 of file acpi_pm.c.

Referenced by acpi_resume().

Here is the caller graph for this function: