8 #include <soc/pci_devs.h>
17 for (i = 0; i <= 31; i++) {
18 if (gpe0_sts & (1 << i))
#define ELOG_WAKE_SOURCE_RTC
#define ELOG_WAKE_SOURCE_PCIE
#define ELOG_TYPE_SUS_POWER_FAIL
#define ELOG_TYPE_THERM_TRIP
#define ELOG_TYPE_POWER_FAIL
#define ELOG_TYPE_ACPI_WAKE
#define ELOG_WAKE_SOURCE_PME
#define ELOG_WAKE_SOURCE_GPE
#define ELOG_WAKE_SOURCE_PWRBTN
#define ELOG_WAKE_SOURCE_PME_INTERNAL
#define ELOG_TYPE_POWER_BUTTON_OVERRIDE
#define ELOG_TYPE_SYSTEM_RESET
#define ELOG_TYPE_RTC_RESET
#define ELOG_TYPE_TCO_RESET
#define ELOG_WAKE_SOURCE_SMBUS
#define printk(level,...)
BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY, elog_bs_init, NULL)
int elog_add_event_byte(u8 event_type, u8 data)
int elog_add_event_wake(u8 source, u32 instance)
int elog_add_event(u8 event_type)
#define GBLRST_CAUSE0_THERMTRIP
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void elog_gsmi_cb_platform_log_wake_source(void)
#define TCO_STS_SECOND_TO
void pmc_fill_pm_reg_info(struct chipset_power_state *ps)
struct chipset_power_state * pmc_get_power_state(void)
static void pch_log_wake_source(const struct chipset_power_state *ps)
static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
static void pch_log_power_and_resets(const struct chipset_power_state *ps)
uint32_t prev_sleep_state