15 u16 pm1_sts, gen_pmcon_3, tco2_sts;
16 u32 gpe0_sts, gpe0_en;
31 if (gen_pmcon_2 & (1 << 0))
35 if (gen_pmcon_3 & (1 << 14))
39 if (gen_pmcon_2 & (1 << 1))
43 if (gen_pmcon_2 & (1 << 0))
47 if (tco2_sts & (1 << 1))
51 if (pm1_sts & (1 << 11))
55 if (gen_pmcon_2 & (1 << 4))
59 if (gen_pmcon_3 & (1 << 9))
63 if (pm1_sts & (1 << 15))
72 if (pm1_sts & (1 << 10))
76 if (pm1_sts & (1 << 14))
80 if (gpe0_sts & (1 << 13))
84 if (gpe0_sts & (1 << 13))
88 for (i = 0; i < 16; i++) {
89 if ((gpe0_sts & (1 << (16+i))) && (gpe0_en & (1 << (16+i))))
94 if (gpe0_sts & (1 << 7))
static int acpi_is_wakeup_s3(void)
#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_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_PME_INTERNAL
#define ELOG_TYPE_POWER_BUTTON_OVERRIDE
#define ELOG_TYPE_SYSTEM_RESET
#define ELOG_TYPE_TCO_RESET
#define ELOG_WAKE_SOURCE_SMBUS
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
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 __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)