xref: /aosp_15_r20/external/coreboot/src/soc/intel/common/block/include/intelblocks/acpi_wake_source.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _INTEL_COMMON_ACPI_H_
4 #define _INTEL_COMMON_ACPI_H_
5 
6 #include <stdint.h>
7 
8 /*
9  * SOC specific handler to provide the wake source data for ACPI _SWS.
10  *
11  * @pm1:  PM1_STS register with only enabled events set
12  * @gpe0: GPE0_STS registers with only enabled events set
13  *
14  * return the number of registers in the gpe0 array or -1 if nothing
15  * is provided by this function.
16  */
17 int soc_fill_acpi_wake(const struct chipset_power_state *ps, uint32_t *pm1, uint32_t **gpe0);
18 
19 #endif /* _INTEL_COMMON_ACPI_H_ */
20