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 <stdint.h>
#include <elog.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/xhci.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
Go to the source code of this file.
Data Structures | |
struct | pme_status_info |
Macros | |
#define | __SIMPLE_DEVICE__ |
#define | PME_STS_BIT (1 << 15) |
Functions | |
static void | pch_log_pme_internal_wake_source (void) |
static void | pch_log_gpio_gpe (u32 gpe0_sts, u32 gpe0_en, int start) |
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 177 of file elog.c.
References pch_log_wake_source(), and pmc_fill_pm_reg_info().
Definition at line 76 of file elog.c.
References elog_add_event_wake(), and ELOG_WAKE_SOURCE_GPE.
Referenced by pch_log_wake_source().
Definition at line 23 of file elog.c.
References ARRAY_SIZE, pme_status_info::dev, 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_DEV_CNViWIFI, PCH_DEV_CSE, PCH_DEV_GBE, PCH_DEV_HDA, PCH_DEV_SATA, PCH_DEV_USBOTG, PCH_DEVFN_XHCI, pci_read_config16(), PME_STS_BIT, val, and xhci_update_wake_event().
Referenced by pch_log_wake_source().
|
static |
Definition at line 122 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 158 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 88 of file elog.c.
References elog_add_event_wake(), ELOG_WAKE_SOURCE_PCIE, 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(), 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().