sleep.h (916B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2 3extern void acpi_enable_wakeup_devices(u8 sleep_state); 4extern void acpi_disable_wakeup_devices(u8 sleep_state); 5extern bool acpi_check_wakeup_handlers(void); 6 7extern struct list_head acpi_wakeup_device_list; 8extern struct mutex acpi_device_lock; 9 10extern void acpi_resume_power_resources(void); 11 12static 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} 17 18extern int acpi_s2idle_begin(void); 19extern int acpi_s2idle_prepare(void); 20extern int acpi_s2idle_prepare_late(void); 21extern bool acpi_s2idle_wake(void); 22extern void acpi_s2idle_restore_early(void); 23extern void acpi_s2idle_restore(void); 24extern void acpi_s2idle_end(void); 25 26extern void acpi_s2idle_setup(void); 27 28#ifdef CONFIG_ACPI_SLEEP 29extern bool acpi_sleep_default_s3; 30#else 31#define acpi_sleep_default_s3 (1) 32#endif