diff options
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 3c94a732b4b3..6f1afd9118c8 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -41,6 +41,17 @@ void acpi_container_init(void); | |||
41 | #else | 41 | #else |
42 | static inline void acpi_container_init(void) {} | 42 | static inline void acpi_container_init(void) {} |
43 | #endif | 43 | #endif |
44 | #ifdef CONFIG_ACPI_HOTPLUG_MEMORY | ||
45 | void acpi_memory_hotplug_init(void); | ||
46 | #else | ||
47 | static inline void acpi_memory_hotplug_init(void) {} | ||
48 | #endif | ||
49 | |||
50 | void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug, | ||
51 | const char *name); | ||
52 | int acpi_scan_add_handler_with_hotplug(struct acpi_scan_handler *handler, | ||
53 | const char *hotplug_profile_name); | ||
54 | void acpi_scan_hotplug_enabled(struct acpi_hotplug_profile *hotplug, bool val); | ||
44 | 55 | ||
45 | #ifdef CONFIG_DEBUG_FS | 56 | #ifdef CONFIG_DEBUG_FS |
46 | extern struct dentry *acpi_debugfs_dir; | 57 | extern struct dentry *acpi_debugfs_dir; |
@@ -48,6 +59,11 @@ int acpi_debugfs_init(void); | |||
48 | #else | 59 | #else |
49 | static inline void acpi_debugfs_init(void) { return; } | 60 | static inline void acpi_debugfs_init(void) { return; } |
50 | #endif | 61 | #endif |
62 | #ifdef CONFIG_X86_INTEL_LPSS | ||
63 | void acpi_lpss_init(void); | ||
64 | #else | ||
65 | static inline void acpi_lpss_init(void) {} | ||
66 | #endif | ||
51 | 67 | ||
52 | /* -------------------------------------------------------------------------- | 68 | /* -------------------------------------------------------------------------- |
53 | Device Node Initialization / Removal | 69 | Device Node Initialization / Removal |
@@ -60,7 +76,7 @@ int acpi_device_add(struct acpi_device *device, | |||
60 | void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, | 76 | void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, |
61 | int type, unsigned long long sta); | 77 | int type, unsigned long long sta); |
62 | void acpi_device_add_finalize(struct acpi_device *device); | 78 | void acpi_device_add_finalize(struct acpi_device *device); |
63 | void acpi_free_ids(struct acpi_device *device); | 79 | void acpi_free_pnp_ids(struct acpi_device_pnp *pnp); |
64 | 80 | ||
65 | /* -------------------------------------------------------------------------- | 81 | /* -------------------------------------------------------------------------- |
66 | Power Resource | 82 | Power Resource |
@@ -131,4 +147,7 @@ static inline void suspend_nvs_restore(void) {} | |||
131 | -------------------------------------------------------------------------- */ | 147 | -------------------------------------------------------------------------- */ |
132 | struct platform_device; | 148 | struct platform_device; |
133 | 149 | ||
150 | int acpi_create_platform_device(struct acpi_device *adev, | ||
151 | const struct acpi_device_id *id); | ||
152 | |||
134 | #endif /* _ACPI_INTERNAL_H_ */ | 153 | #endif /* _ACPI_INTERNAL_H_ */ |