diff options
author | Kristen Accardi <kristen.c.accardi@intel.com> | 2006-06-28 03:07:16 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-28 03:07:16 -0400 |
commit | a5e1b94008f2a96abf4a0c0371a55a56b320c13e (patch) | |
tree | 3e3a254fdbc565c4f85a66cc6dfaa60319e919a9 /include/acpi/acpi_drivers.h | |
parent | a6a888b3c20cf559c8a2e6e4d86c570dda2ef0f5 (diff) |
ACPI: dock driver
Create a driver which lives in the acpi subsystem to handle dock events.
This driver is not an "ACPI" driver, because acpi drivers require that the
object be present when the driver is loaded.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acpi_drivers.h')
-rw-r--r-- | include/acpi/acpi_drivers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index b425f9bb6d43..6a5bdcefec64 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -110,4 +110,21 @@ int acpi_processor_set_thermal_limit(acpi_handle handle, int type); | |||
110 | 110 | ||
111 | extern int acpi_specific_hotkey_enabled; | 111 | extern int acpi_specific_hotkey_enabled; |
112 | 112 | ||
113 | /*-------------------------------------------------------------------------- | ||
114 | Dock Station | ||
115 | -------------------------------------------------------------------------- */ | ||
116 | #if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) | ||
117 | extern int is_dock_device(acpi_handle handle); | ||
118 | extern int register_dock_notifier(struct notifier_block *nb); | ||
119 | extern void unregister_dock_notifier(struct notifier_block *nb); | ||
120 | extern int register_hotplug_dock_device(acpi_handle handle, | ||
121 | acpi_notify_handler handler, void *context); | ||
122 | extern void unregister_hotplug_dock_device(acpi_handle handle); | ||
123 | #else | ||
124 | #define is_dock_device(h) (0) | ||
125 | #define register_dock_notifier(nb) (-ENODEV) | ||
126 | #define unregister_dock_notifier(nb) do { } while(0) | ||
127 | #define register_hotplug_dock_device(h1, h2, c) (-ENODEV) | ||
128 | #define unregister_hotplug_dock_device(h) do { } while(0) | ||
129 | #endif | ||
113 | #endif /*__ACPI_DRIVERS_H__*/ | 130 | #endif /*__ACPI_DRIVERS_H__*/ |