diff options
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 9ad142476f33..8d0e1290bc76 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -351,6 +351,27 @@ int acpi_match_ids (struct acpi_device *device, char *ids); | |||
351 | int acpi_create_dir(struct acpi_device *); | 351 | int acpi_create_dir(struct acpi_device *); |
352 | void acpi_remove_dir(struct acpi_device *); | 352 | void acpi_remove_dir(struct acpi_device *); |
353 | 353 | ||
354 | |||
355 | /* | ||
356 | * Bind physical devices with ACPI devices | ||
357 | */ | ||
358 | #include <linux/device.h> | ||
359 | struct acpi_bus_type { | ||
360 | struct list_head list; | ||
361 | struct bus_type *bus; | ||
362 | /* For general devices under the bus*/ | ||
363 | int (*find_device)(struct device *, acpi_handle*); | ||
364 | /* For bridges, such as PCI root bridge, IDE controller */ | ||
365 | int (*find_bridge)(struct device *, acpi_handle *); | ||
366 | }; | ||
367 | int register_acpi_bus_type(struct acpi_bus_type *); | ||
368 | int unregister_acpi_bus_type(struct acpi_bus_type *); | ||
369 | struct device *acpi_get_physical_device(acpi_handle); | ||
370 | /* helper */ | ||
371 | acpi_handle acpi_get_child(acpi_handle, acpi_integer); | ||
372 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | ||
373 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->firmware_data)) | ||
374 | |||
354 | #endif /*CONFIG_ACPI_BUS*/ | 375 | #endif /*CONFIG_ACPI_BUS*/ |
355 | 376 | ||
356 | #endif /*__ACPI_BUS_H__*/ | 377 | #endif /*__ACPI_BUS_H__*/ |