16 for (i = 0; i <= 31; i++) {
17 if (gpe0_sts & (1 << i))
int acpi_pm_state_for_elog(const struct chipset_power_state **ps)
#define TCO2_STS_SECOND_TO
#define ELOG_WAKE_SOURCE_RTC
#define ELOG_TYPE_RESET_BUTTON
#define ELOG_WAKE_SOURCE_PCIE
#define ELOG_TYPE_PWROK_FAIL
#define ELOG_TYPE_SUS_POWER_FAIL
#define ELOG_TYPE_THERM_TRIP
#define ELOG_TYPE_POWER_FAIL
#define ELOG_TYPE_SYS_PWROK_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
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)
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