aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h21
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
42static inline void acpi_container_init(void) {} 42static inline void acpi_container_init(void) {}
43#endif 43#endif
44#ifdef CONFIG_ACPI_HOTPLUG_MEMORY
45void acpi_memory_hotplug_init(void);
46#else
47static inline void acpi_memory_hotplug_init(void) {}
48#endif
49
50void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug,
51 const char *name);
52int acpi_scan_add_handler_with_hotplug(struct acpi_scan_handler *handler,
53 const char *hotplug_profile_name);
54void acpi_scan_hotplug_enabled(struct acpi_hotplug_profile *hotplug, bool val);
44 55
45#ifdef CONFIG_DEBUG_FS 56#ifdef CONFIG_DEBUG_FS
46extern struct dentry *acpi_debugfs_dir; 57extern struct dentry *acpi_debugfs_dir;
@@ -48,6 +59,11 @@ int acpi_debugfs_init(void);
48#else 59#else
49static inline void acpi_debugfs_init(void) { return; } 60static inline void acpi_debugfs_init(void) { return; }
50#endif 61#endif
62#ifdef CONFIG_X86_INTEL_LPSS
63void acpi_lpss_init(void);
64#else
65static 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,
60void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, 76void 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);
62void acpi_device_add_finalize(struct acpi_device *device); 78void acpi_device_add_finalize(struct acpi_device *device);
63void acpi_free_ids(struct acpi_device *device); 79void 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 -------------------------------------------------------------------------- */
132struct platform_device; 148struct platform_device;
133 149
150int 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_ */