diff options
| author | Russell King <rmk@arm.linux.org.uk> | 2004-06-08 02:28:02 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-06-08 02:28:02 -0700 |
| commit | e13724956849975ef40cbc9898643f3074a1ed8a (patch) | |
| tree | 449df1dcb8efade1bf919f1a9d7fb76807de4c34 /include/linux/device.h | |
| parent | 7851ac39d57c2c2529cc7d4de71e41a1e91281ce (diff) | |
[PATCH] Add platform_get_resource()
This patch adds management of platform device resources to the
device model, allowing drivers to lookup resources, IRQs and DMA
numbers in the platform device resource array. We also add a
couple of functions which allow platform devices and their resources
to be registered.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index c91a6b481534..ed170f81ab60 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -377,6 +377,11 @@ extern void platform_device_unregister(struct platform_device *); extern struct bus_type platform_bus_type; extern struct device platform_bus; +extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int); +extern int platform_get_irq(struct platform_device *, unsigned int); +extern int platform_add_device(struct platform_device *); +extern int platform_add_devices(struct platform_device **, int); + /* drivers/base/power.c */ extern void device_shutdown(void); |
