![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/pci.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/rtc.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/pmc.h>
#include <types.h>
Go to the source code of this file.
Macros | |
#define | __SIMPLE_DEVICE__ |
Functions | |
const char *const * | soc_smi_sts_array (size_t *smi_arr) |
const char *const * | soc_tco_sts_array (size_t *tco_arr) |
const char *const * | soc_std_gpe_sts_array (size_t *gpe_arr) |
uint8_t * | pmc_mmio_regs (void) |
uintptr_t | soc_read_pmc_base (void) |
uint32_t * | soc_pmc_etr_addr (void) |
void | soc_get_gpi_gpe_configs (uint8_t *dw0, uint8_t *dw1, uint8_t *dw2) |
int | soc_get_rtc_failed (void) |
int | soc_prev_sleep_state (const struct chipset_power_state *ps, int prev_sleep_state) |
void | soc_fill_power_state (struct chipset_power_state *ps) |
uint16_t | get_pmbase (void) |
void | pmc_soc_set_afterg3_en (const bool on) |
Definition at line 163 of file pmutil.c.
References ACPI_BASE_ADDRESS.
Definition at line 93 of file pmutil.c.
References PCH_DEV_PMC, PCH_PWRM_BASE_ADDRESS, pci_read_config32(), and PWRMBASE.
Referenced by config_deep_sx(), config_deep_sX(), deep_s3_enabled(), deep_s5_enabled(), ignore_gbe_ltr(), pch_finalize(), pmc_init(), pmc_lock_abase(), pmc_lock_pmsync(), pmc_lock_smi(), pmc_lockdown_cfg(), pmc_lockdown_config(), pmc_soc_init(), soc_finalize(), and soc_pmc_init().
Definition at line 172 of file pmutil.c.
References GEN_PMCON_B, PCH_DEV_PMC, pci_read_config8(), pci_write_config8(), and SLEEP_AFTER_POWER_FAIL.
void soc_fill_power_state | ( | struct chipset_power_state * | ps | ) |
Definition at line 144 of file pmutil.c.
References BIOS_DEBUG, chipset_power_state::gblrst_cause, GBLRST_CAUSE0, GBLRST_CAUSE1, chipset_power_state::gen_pmcon_a, GEN_PMCON_A, chipset_power_state::gen_pmcon_b, GEN_PMCON_B, PCH_DEV_PMC, pci_read_config32(), pmc, pmc_mmio_regs(), printk, and read32().
int soc_get_rtc_failed | ( | void | ) |
Definition at line 118 of file pmutil.c.
References BIOS_ERR, GEN_PMCON_B, PCH_DEV_PMC, pci_s_read_config32(), printk, and RTC_BATTERY_DEAD.
Definition at line 103 of file pmutil.c.
References ETR, PCH_DEVFN_PMC, and pci_mmio_config32_addr().
int soc_prev_sleep_state | ( | const struct chipset_power_state * | ps, |
int | prev_sleep_state | ||
) |
Definition at line 130 of file pmutil.c.
References ACPI_S5, chipset_power_state::gen_pmcon_b, chipset_power_state::pm1_sts, prev_sleep_state(), PWR_FLR, SUS_PWR_FLR, and WAK_STS.
Definition at line 98 of file pmutil.c.
References pmc_mmio_regs().
const char* const* soc_smi_sts_array | ( | size_t * | smi_arr | ) |
Definition at line 23 of file pmutil.c.
References ARRAY_SIZE.
const char* const* soc_std_gpe_sts_array | ( | size_t * | gpe_arr | ) |
Definition at line 84 of file pmutil.c.
References ARRAY_SIZE.
const char* const* soc_tco_sts_array | ( | size_t * | tco_arr | ) |
Definition at line 58 of file pmutil.c.
References ARRAY_SIZE.