coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootstate.h>
#include <console/console.h>
#include <device/pci_ops.h>
#include <elog.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/xhci.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | pme_map |
Functions | |
static void | pch_log_gpio_gpe (u32 gpe0_sts, u32 gpe0_en, int start) |
static void | pch_log_rp_wake_source (void) |
static void | pch_log_pme_internal_wake_source (void) |
static void | pch_log_wake_source (const struct chipset_power_state *ps) |
static void | pch_log_power_and_resets (const struct chipset_power_state *ps) |
static void | pch_log_state (void *unused) |
BOOT_STATE_INIT_ENTRY (BS_DEV_INIT, BS_ON_EXIT, pch_log_state, NULL) | |
void | elog_gsmi_cb_platform_log_wake_source (void) |
BOOT_STATE_INIT_ENTRY | ( | BS_DEV_INIT | , |
BS_ON_EXIT | , | ||
pch_log_state | , | ||
NULL | |||
) |
Definition at line 185 of file elog.c.
References pch_log_wake_source(), and pmc_fill_pm_reg_info().
Definition at line 18 of file elog.c.
References elog_add_event_wake(), and ELOG_WAKE_SOURCE_GPE.
Referenced by pch_log_wake_source().
Definition at line 56 of file elog.c.
References ARRAY_SIZE, elog_add_event_wake(), ELOG_WAKE_SOURCE_PME_CSE, ELOG_WAKE_SOURCE_PME_GBE, ELOG_WAKE_SOURCE_PME_HDA, ELOG_WAKE_SOURCE_PME_INTERNAL, ELOG_WAKE_SOURCE_PME_SATA, ELOG_WAKE_SOURCE_PME_WIFI, ELOG_WAKE_SOURCE_PME_XDCI, ELOG_WAKE_SOURCE_PME_XHCI, PCH_DEVFN_CNVI_WIFI, PCH_DEVFN_CSE, PCH_DEVFN_GBE, PCH_DEVFN_HDA, PCH_DEVFN_SATA, PCH_DEVFN_USBOTG, PCH_DEVFN_XHCI, PCI_DEV, pci_dev_is_wake_source(), PCI_FUNC, PCI_SLOT, and xhci_update_wake_event().
Referenced by pch_log_wake_source().
|
static |
Definition at line 130 of file elog.c.
References ACPI_S0, ACPI_S3, elog_add_event(), elog_add_event_byte(), ELOG_TYPE_ACPI_WAKE, ELOG_TYPE_POWER_BUTTON_OVERRIDE, ELOG_TYPE_POWER_FAIL, ELOG_TYPE_RTC_RESET, ELOG_TYPE_SUS_POWER_FAIL, ELOG_TYPE_SYSTEM_RESET, ELOG_TYPE_TCO_RESET, ELOG_TYPE_THERM_TRIP, chipset_power_state::gblrst_cause, GBLRST_CAUSE0_THERMTRIP, chipset_power_state::gen_pmcon_a, chipset_power_state::gen_pmcon_b, HOST_RST_STS, chipset_power_state::pm1_sts, PRBTNOR_STS, chipset_power_state::prev_sleep_state, PWR_FLR, RTC_BATTERY_DEAD, SUS_PWR_FLR, chipset_power_state::tco2_sts, and TCO_STS_SECOND_TO.
Referenced by pch_log_state().
Definition at line 30 of file elog.c.
References ARRAY_SIZE, pme_map::devfn, elog_add_event_wake(), ELOG_WAKE_SOURCE_PME_PCIE1, ELOG_WAKE_SOURCE_PME_PCIE10, ELOG_WAKE_SOURCE_PME_PCIE11, ELOG_WAKE_SOURCE_PME_PCIE12, ELOG_WAKE_SOURCE_PME_PCIE2, ELOG_WAKE_SOURCE_PME_PCIE3, ELOG_WAKE_SOURCE_PME_PCIE4, ELOG_WAKE_SOURCE_PME_PCIE5, ELOG_WAKE_SOURCE_PME_PCIE6, ELOG_WAKE_SOURCE_PME_PCIE7, ELOG_WAKE_SOURCE_PME_PCIE8, ELOG_WAKE_SOURCE_PME_PCIE9, MIN, PCH_DEVFN_PCIE1, PCH_DEVFN_PCIE10, PCH_DEVFN_PCIE11, PCH_DEVFN_PCIE12, PCH_DEVFN_PCIE2, PCH_DEVFN_PCIE3, PCH_DEVFN_PCIE4, PCH_DEVFN_PCIE5, PCH_DEVFN_PCIE6, PCH_DEVFN_PCIE7, PCH_DEVFN_PCIE8, PCH_DEVFN_PCIE9, PCI_DEV, pci_dev_is_wake_source(), PCI_FUNC, PCI_SLOT, and pme_map::wake_source.
Referenced by pch_log_wake_source().
Definition at line 166 of file elog.c.
References ACPI_S0, BIOS_ERR, pch_log_power_and_resets(), pch_log_wake_source(), pmc_get_power_state(), chipset_power_state::prev_sleep_state, and printk.
|
static |
Definition at line 96 of file elog.c.
References elog_add_event_wake(), ELOG_WAKE_SOURCE_PME, ELOG_WAKE_SOURCE_PWRBTN, ELOG_WAKE_SOURCE_RTC, ELOG_WAKE_SOURCE_SMBUS, chipset_power_state::gpe0_en, chipset_power_state::gpe0_sts, GPE_31_0, GPE_63_32, GPE_95_64, GPE_STD, pch_log_gpio_gpe(), pch_log_pme_internal_wake_source(), pch_log_rp_wake_source(), PCIEXPWAK_STS, chipset_power_state::pm1_sts, PME_B0_STS, PME_STS, PWRBTN_STS, RTC_STS, and SMB_WAK_STS.
Referenced by elog_gsmi_cb_platform_log_wake_source(), and pch_log_state().