diff options
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index d9019821aa60..89c60b0f6408 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -222,7 +222,8 @@ struct acpi_device_power_flags { | |||
222 | u32 power_resources:1; /* Power resources */ | 222 | u32 power_resources:1; /* Power resources */ |
223 | u32 inrush_current:1; /* Serialize Dx->D0 */ | 223 | u32 inrush_current:1; /* Serialize Dx->D0 */ |
224 | u32 power_removed:1; /* Optimize Dx->D0 */ | 224 | u32 power_removed:1; /* Optimize Dx->D0 */ |
225 | u32 reserved:28; | 225 | u32 ignore_parent:1; /* Power is independent of parent power state */ |
226 | u32 reserved:27; | ||
226 | }; | 227 | }; |
227 | 228 | ||
228 | struct acpi_device_power_state { | 229 | struct acpi_device_power_state { |
@@ -338,20 +339,6 @@ struct acpi_bus_event { | |||
338 | u32 data; | 339 | u32 data; |
339 | }; | 340 | }; |
340 | 341 | ||
341 | struct acpi_eject_event { | ||
342 | struct acpi_device *device; | ||
343 | u32 event; | ||
344 | }; | ||
345 | |||
346 | struct acpi_hp_work { | ||
347 | struct work_struct work; | ||
348 | acpi_handle handle; | ||
349 | u32 type; | ||
350 | void *context; | ||
351 | }; | ||
352 | void alloc_acpi_hp_work(acpi_handle handle, u32 type, void *context, | ||
353 | void (*func)(struct work_struct *work)); | ||
354 | |||
355 | extern struct kobject *acpi_kobj; | 342 | extern struct kobject *acpi_kobj; |
356 | extern int acpi_bus_generate_netlink_event(const char*, const char*, u8, int); | 343 | extern int acpi_bus_generate_netlink_event(const char*, const char*, u8, int); |
357 | void acpi_bus_private_data_handler(acpi_handle, void *); | 344 | void acpi_bus_private_data_handler(acpi_handle, void *); |
@@ -390,7 +377,6 @@ int acpi_scan_add_handler(struct acpi_scan_handler *handler); | |||
390 | int acpi_bus_register_driver(struct acpi_driver *driver); | 377 | int acpi_bus_register_driver(struct acpi_driver *driver); |
391 | void acpi_bus_unregister_driver(struct acpi_driver *driver); | 378 | void acpi_bus_unregister_driver(struct acpi_driver *driver); |
392 | int acpi_bus_scan(acpi_handle handle); | 379 | int acpi_bus_scan(acpi_handle handle); |
393 | void acpi_bus_hot_remove_device(void *context); | ||
394 | void acpi_bus_trim(struct acpi_device *start); | 380 | void acpi_bus_trim(struct acpi_device *start); |
395 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); | 381 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); |
396 | int acpi_match_device_ids(struct acpi_device *device, | 382 | int acpi_match_device_ids(struct acpi_device *device, |
@@ -398,6 +384,9 @@ int acpi_match_device_ids(struct acpi_device *device, | |||
398 | int acpi_create_dir(struct acpi_device *); | 384 | int acpi_create_dir(struct acpi_device *); |
399 | void acpi_remove_dir(struct acpi_device *); | 385 | void acpi_remove_dir(struct acpi_device *); |
400 | 386 | ||
387 | typedef void (*acpi_hp_callback)(void *data, u32 src); | ||
388 | |||
389 | acpi_status acpi_hotplug_execute(acpi_hp_callback func, void *data, u32 src); | ||
401 | 390 | ||
402 | /** | 391 | /** |
403 | * module_acpi_driver(acpi_driver) - Helper macro for registering an ACPI driver | 392 | * module_acpi_driver(acpi_driver) - Helper macro for registering an ACPI driver |