Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
Rafael J. Wysocki | 78f5f02 | 2010-07-06 22:09:38 -0400 | [diff] [blame] | 3 | extern void acpi_enable_wakeup_devices(u8 sleep_state); |
| 4 | extern void acpi_disable_wakeup_devices(u8 sleep_state); |
Hans de Goede | ddfd9dc | 2020-04-03 17:48:33 +0200 | [diff] [blame] | 5 | extern bool acpi_check_wakeup_handlers(void); |
Shaohua Li | 9090589 | 2009-04-07 10:24:29 +0800 | [diff] [blame] | 6 | |
| 7 | extern struct list_head acpi_wakeup_device_list; |
| 8 | extern struct mutex acpi_device_lock; |
Rafael J. Wysocki | 781d737 | 2013-01-17 14:11:06 +0100 | [diff] [blame] | 9 | |
| 10 | extern void acpi_resume_power_resources(void); |
Rafael J. Wysocki | e3e9b57 | 2016-01-04 22:05:20 +0100 | [diff] [blame] | 11 | |
| 12 | static inline acpi_status acpi_set_waking_vector(u32 wakeup_address) |
| 13 | { |
| 14 | return acpi_set_firmware_waking_vector( |
| 15 | (acpi_physical_address)wakeup_address, 0); |
| 16 | } |
Rafael J. Wysocki | fef9867 | 2020-12-17 20:23:17 +0100 | [diff] [blame] | 17 | |
| 18 | extern int acpi_s2idle_begin(void); |
| 19 | extern int acpi_s2idle_prepare(void); |
| 20 | extern int acpi_s2idle_prepare_late(void); |
| 21 | extern bool acpi_s2idle_wake(void); |
| 22 | extern void acpi_s2idle_restore_early(void); |
| 23 | extern void acpi_s2idle_restore(void); |
| 24 | extern void acpi_s2idle_end(void); |
| 25 | |
| 26 | extern void acpi_s2idle_setup(void); |
| 27 | |
| 28 | #ifdef CONFIG_ACPI_SLEEP |
| 29 | extern bool acpi_sleep_default_s3; |
| 30 | #else |
| 31 | #define acpi_sleep_default_s3 (1) |
| 32 | #endif |