aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h3
-rw-r--r--include/acpi/acpi_drivers.h9
-rw-r--r--include/acpi/acpiosxf.h3
3 files changed, 13 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index a5ac0bc7f52e..f74f882609f8 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -327,6 +327,9 @@ int acpi_bus_get_private_data(acpi_handle, void **);
327extern int acpi_notifier_call_chain(struct acpi_device *, u32, u32); 327extern int acpi_notifier_call_chain(struct acpi_device *, u32, u32);
328extern int register_acpi_notifier(struct notifier_block *); 328extern int register_acpi_notifier(struct notifier_block *);
329extern int unregister_acpi_notifier(struct notifier_block *); 329extern int unregister_acpi_notifier(struct notifier_block *);
330
331extern int register_acpi_bus_notifier(struct notifier_block *nb);
332extern void unregister_acpi_bus_notifier(struct notifier_block *nb);
330/* 333/*
331 * External Functions 334 * External Functions
332 */ 335 */
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index efbaa271ee11..a35c9597d5b1 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -116,12 +116,17 @@ int acpi_processor_set_thermal_limit(acpi_handle handle, int type);
116/*-------------------------------------------------------------------------- 116/*--------------------------------------------------------------------------
117 Dock Station 117 Dock Station
118 -------------------------------------------------------------------------- */ 118 -------------------------------------------------------------------------- */
119struct acpi_dock_ops {
120 acpi_notify_handler handler;
121 acpi_notify_handler uevent;
122};
123
119#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) 124#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE)
120extern int is_dock_device(acpi_handle handle); 125extern int is_dock_device(acpi_handle handle);
121extern int register_dock_notifier(struct notifier_block *nb); 126extern int register_dock_notifier(struct notifier_block *nb);
122extern void unregister_dock_notifier(struct notifier_block *nb); 127extern void unregister_dock_notifier(struct notifier_block *nb);
123extern int register_hotplug_dock_device(acpi_handle handle, 128extern int register_hotplug_dock_device(acpi_handle handle,
124 acpi_notify_handler handler, 129 struct acpi_dock_ops *ops,
125 void *context); 130 void *context);
126extern void unregister_hotplug_dock_device(acpi_handle handle); 131extern void unregister_hotplug_dock_device(acpi_handle handle);
127#else 132#else
@@ -137,7 +142,7 @@ static inline void unregister_dock_notifier(struct notifier_block *nb)
137{ 142{
138} 143}
139static inline int register_hotplug_dock_device(acpi_handle handle, 144static inline int register_hotplug_dock_device(acpi_handle handle,
140 acpi_notify_handler handler, 145 struct acpi_dock_ops *ops,
141 void *context) 146 void *context)
142{ 147{
143 return -ENODEV; 148 return -ENODEV;
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index 3f93a6b4e17f..b91440ac0d16 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -193,6 +193,9 @@ acpi_status
193acpi_os_execute(acpi_execute_type type, 193acpi_os_execute(acpi_execute_type type,
194 acpi_osd_exec_callback function, void *context); 194 acpi_osd_exec_callback function, void *context);
195 195
196acpi_status
197acpi_os_hotplug_execute(acpi_osd_exec_callback function, void *context);
198
196void acpi_os_wait_events_complete(void *context); 199void acpi_os_wait_events_complete(void *context);
197 200
198void acpi_os_sleep(acpi_integer milliseconds); 201void acpi_os_sleep(acpi_integer milliseconds);