diff options
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index e050254ae143..c5a61cd6c1a5 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -35,15 +35,33 @@ static inline void acpi_debugfs_init(void) { return; } | |||
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | /* -------------------------------------------------------------------------- | 37 | /* -------------------------------------------------------------------------- |
38 | Device Node Initialization / Removal | ||
39 | -------------------------------------------------------------------------- */ | ||
40 | #define ACPI_STA_DEFAULT (ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED | \ | ||
41 | ACPI_STA_DEVICE_UI | ACPI_STA_DEVICE_FUNCTIONING) | ||
42 | |||
43 | int acpi_device_add(struct acpi_device *device, | ||
44 | void (*release)(struct device *)); | ||
45 | void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, | ||
46 | int type, unsigned long long sta); | ||
47 | void acpi_device_add_finalize(struct acpi_device *device); | ||
48 | void acpi_free_ids(struct acpi_device *device); | ||
49 | |||
50 | /* -------------------------------------------------------------------------- | ||
38 | Power Resource | 51 | Power Resource |
39 | -------------------------------------------------------------------------- */ | 52 | -------------------------------------------------------------------------- */ |
40 | int acpi_power_init(void); | 53 | int acpi_power_init(void); |
54 | void acpi_power_resources_list_free(struct list_head *list); | ||
55 | int acpi_extract_power_resources(union acpi_object *package, unsigned int start, | ||
56 | struct list_head *list); | ||
57 | int acpi_add_power_resource(acpi_handle handle); | ||
58 | void acpi_power_add_remove_device(struct acpi_device *adev, bool add); | ||
59 | int acpi_power_min_system_level(struct list_head *list); | ||
41 | int acpi_device_sleep_wake(struct acpi_device *dev, | 60 | int acpi_device_sleep_wake(struct acpi_device *dev, |
42 | int enable, int sleep_state, int dev_state); | 61 | int enable, int sleep_state, int dev_state); |
43 | int acpi_power_get_inferred_state(struct acpi_device *device, int *state); | 62 | int acpi_power_get_inferred_state(struct acpi_device *device, int *state); |
44 | int acpi_power_on_resources(struct acpi_device *device, int state); | 63 | int acpi_power_on_resources(struct acpi_device *device, int state); |
45 | int acpi_power_transition(struct acpi_device *device, int state); | 64 | int acpi_power_transition(struct acpi_device *device, int state); |
46 | int acpi_bus_init_power(struct acpi_device *device); | ||
47 | 65 | ||
48 | int acpi_wakeup_device_init(void); | 66 | int acpi_wakeup_device_init(void); |
49 | void acpi_early_processor_set_pdc(void); | 67 | void acpi_early_processor_set_pdc(void); |