aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 31b6c87d6240..175f7b40c585 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -506,13 +506,16 @@ int acpi_bus_get_status(struct acpi_device *device);
506 506
507int acpi_bus_set_power(acpi_handle handle, int state); 507int acpi_bus_set_power(acpi_handle handle, int state);
508const char *acpi_power_state_string(int state); 508const char *acpi_power_state_string(int state);
509int acpi_device_get_power(struct acpi_device *device, int *state);
510int acpi_device_set_power(struct acpi_device *device, int state); 509int acpi_device_set_power(struct acpi_device *device, int state);
511int acpi_bus_init_power(struct acpi_device *device); 510int acpi_bus_init_power(struct acpi_device *device);
512int acpi_device_fix_up_power(struct acpi_device *device); 511int acpi_device_fix_up_power(struct acpi_device *device);
513int acpi_bus_update_power(acpi_handle handle, int *state_p); 512int acpi_bus_update_power(acpi_handle handle, int *state_p);
514int acpi_device_update_power(struct acpi_device *device, int *state_p); 513int acpi_device_update_power(struct acpi_device *device, int *state_p);
515bool acpi_bus_power_manageable(acpi_handle handle); 514bool acpi_bus_power_manageable(acpi_handle handle);
515int acpi_device_power_add_dependent(struct acpi_device *adev,
516 struct device *dev);
517void acpi_device_power_remove_dependent(struct acpi_device *adev,
518 struct device *dev);
516 519
517#ifdef CONFIG_PM 520#ifdef CONFIG_PM
518bool acpi_bus_can_wakeup(acpi_handle handle); 521bool acpi_bus_can_wakeup(acpi_handle handle);
@@ -651,6 +654,12 @@ static inline int acpi_pm_set_bridge_wakeup(struct device *dev, bool enable)
651} 654}
652#endif 655#endif
653 656
657#ifdef CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT
658bool acpi_sleep_state_supported(u8 sleep_state);
659#else
660static inline bool acpi_sleep_state_supported(u8 sleep_state) { return false; }
661#endif
662
654#ifdef CONFIG_ACPI_SLEEP 663#ifdef CONFIG_ACPI_SLEEP
655u32 acpi_target_system_state(void); 664u32 acpi_target_system_state(void);
656#else 665#else