xref: /openbmc/linux/drivers/acpi/sleep.h (revision 276e552e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 extern void acpi_enable_wakeup_devices(u8 sleep_state);
4 extern void acpi_disable_wakeup_devices(u8 sleep_state);
5 extern bool acpi_check_wakeup_handlers(void);
6 
7 extern struct list_head acpi_wakeup_device_list;
8 extern struct mutex acpi_device_lock;
9 
10 extern void acpi_resume_power_resources(void);
11 extern void acpi_turn_off_unused_power_resources(void);
12 
13 static inline acpi_status acpi_set_waking_vector(u32 wakeup_address)
14 {
15 	return acpi_set_firmware_waking_vector(
16 				(acpi_physical_address)wakeup_address, 0);
17 }
18 
19 extern int acpi_s2idle_begin(void);
20 extern int acpi_s2idle_prepare(void);
21 extern int acpi_s2idle_prepare_late(void);
22 extern bool acpi_s2idle_wake(void);
23 extern void acpi_s2idle_restore_early(void);
24 extern void acpi_s2idle_restore(void);
25 extern void acpi_s2idle_end(void);
26 
27 extern void acpi_s2idle_setup(void);
28 
29 #ifdef CONFIG_ACPI_SLEEP
30 extern bool acpi_sleep_default_s3;
31 #else
32 #define acpi_sleep_default_s3	(1)
33 #endif
34