diff options
Diffstat (limited to 'include/acpi/acpi_bus.h')
| -rw-r--r-- | include/acpi/acpi_bus.h | 11 |
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 | ||
| 507 | int acpi_bus_set_power(acpi_handle handle, int state); | 507 | int acpi_bus_set_power(acpi_handle handle, int state); |
| 508 | const char *acpi_power_state_string(int state); | 508 | const char *acpi_power_state_string(int state); |
| 509 | int acpi_device_get_power(struct acpi_device *device, int *state); | ||
| 510 | int acpi_device_set_power(struct acpi_device *device, int state); | 509 | int acpi_device_set_power(struct acpi_device *device, int state); |
| 511 | int acpi_bus_init_power(struct acpi_device *device); | 510 | int acpi_bus_init_power(struct acpi_device *device); |
| 512 | int acpi_device_fix_up_power(struct acpi_device *device); | 511 | int acpi_device_fix_up_power(struct acpi_device *device); |
| 513 | int acpi_bus_update_power(acpi_handle handle, int *state_p); | 512 | int acpi_bus_update_power(acpi_handle handle, int *state_p); |
| 514 | int acpi_device_update_power(struct acpi_device *device, int *state_p); | 513 | int acpi_device_update_power(struct acpi_device *device, int *state_p); |
| 515 | bool acpi_bus_power_manageable(acpi_handle handle); | 514 | bool acpi_bus_power_manageable(acpi_handle handle); |
| 515 | int acpi_device_power_add_dependent(struct acpi_device *adev, | ||
| 516 | struct device *dev); | ||
| 517 | void acpi_device_power_remove_dependent(struct acpi_device *adev, | ||
| 518 | struct device *dev); | ||
| 516 | 519 | ||
| 517 | #ifdef CONFIG_PM | 520 | #ifdef CONFIG_PM |
| 518 | bool acpi_bus_can_wakeup(acpi_handle handle); | 521 | bool 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 | ||
| 658 | bool acpi_sleep_state_supported(u8 sleep_state); | ||
| 659 | #else | ||
| 660 | static inline bool acpi_sleep_state_supported(u8 sleep_state) { return false; } | ||
| 661 | #endif | ||
| 662 | |||
| 654 | #ifdef CONFIG_ACPI_SLEEP | 663 | #ifdef CONFIG_ACPI_SLEEP |
| 655 | u32 acpi_target_system_state(void); | 664 | u32 acpi_target_system_state(void); |
| 656 | #else | 665 | #else |
