acpi_drivers.h (af7a535688a758d15f06a98833e6a143b29af9de) | acpi_drivers.h (1253f7aabfebc51446dbec5c8895c5c8846dfe06) |
---|---|
1/* 2 * acpi_drivers.h ($Revision: 31 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 101 unchanged lines hidden (view full) --- 110#define ACPI_PROCESSOR_LIMIT_INCREMENT 0x01 111#define ACPI_PROCESSOR_LIMIT_DECREMENT 0x02 112 113int acpi_processor_set_thermal_limit(acpi_handle handle, int type); 114 115/*-------------------------------------------------------------------------- 116 Dock Station 117 -------------------------------------------------------------------------- */ | 1/* 2 * acpi_drivers.h ($Revision: 31 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 101 unchanged lines hidden (view full) --- 110#define ACPI_PROCESSOR_LIMIT_INCREMENT 0x01 111#define ACPI_PROCESSOR_LIMIT_DECREMENT 0x02 112 113int acpi_processor_set_thermal_limit(acpi_handle handle, int type); 114 115/*-------------------------------------------------------------------------- 116 Dock Station 117 -------------------------------------------------------------------------- */ |
118struct acpi_dock_ops { 119 acpi_notify_handler handler; 120 acpi_notify_handler uevent; 121}; 122 |
|
118#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) 119extern int is_dock_device(acpi_handle handle); 120extern int register_dock_notifier(struct notifier_block *nb); 121extern void unregister_dock_notifier(struct notifier_block *nb); 122extern int register_hotplug_dock_device(acpi_handle handle, | 123#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) 124extern int is_dock_device(acpi_handle handle); 125extern int register_dock_notifier(struct notifier_block *nb); 126extern void unregister_dock_notifier(struct notifier_block *nb); 127extern int register_hotplug_dock_device(acpi_handle handle, |
123 acpi_notify_handler handler, | 128 struct acpi_dock_ops *ops, |
124 void *context); 125extern void unregister_hotplug_dock_device(acpi_handle handle); 126#else 127static inline int is_dock_device(acpi_handle handle) 128{ 129 return 0; 130} 131static inline int register_dock_notifier(struct notifier_block *nb) 132{ 133 return -ENODEV; 134} 135static inline void unregister_dock_notifier(struct notifier_block *nb) 136{ 137} 138static inline int register_hotplug_dock_device(acpi_handle handle, | 129 void *context); 130extern void unregister_hotplug_dock_device(acpi_handle handle); 131#else 132static inline int is_dock_device(acpi_handle handle) 133{ 134 return 0; 135} 136static inline int register_dock_notifier(struct notifier_block *nb) 137{ 138 return -ENODEV; 139} 140static inline void unregister_dock_notifier(struct notifier_block *nb) 141{ 142} 143static inline int register_hotplug_dock_device(acpi_handle handle, |
139 acpi_notify_handler handler, | 144 struct acpi_dock_ops *ops, |
140 void *context) 141{ 142 return -ENODEV; 143} 144static inline void unregister_hotplug_dock_device(acpi_handle handle) 145{ 146} 147#endif 148 149/*-------------------------------------------------------------------------- 150 Suspend/Resume 151 -------------------------------------------------------------------------- */ 152extern int acpi_sleep_init(void); 153 154#endif /*__ACPI_DRIVERS_H__*/ | 145 void *context) 146{ 147 return -ENODEV; 148} 149static inline void unregister_hotplug_dock_device(acpi_handle handle) 150{ 151} 152#endif 153 154/*-------------------------------------------------------------------------- 155 Suspend/Resume 156 -------------------------------------------------------------------------- */ 157extern int acpi_sleep_init(void); 158 159#endif /*__ACPI_DRIVERS_H__*/ |