diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-05-28 21:24:53 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-05-28 21:24:53 -0700 |
| commit | 44729bbae9481ffc5d4aabc7b873a0cf1a9aac37 (patch) | |
| tree | 1fa5dda5fe0a412bb5d25d724b376d79f74217f6 /include | |
| parent | 1138d8a0b482d6ab4425319f644d452ab7ff34f1 (diff) | |
| parent | 4220f3d3f00fd515bc804d40dd05f129610c710a (diff) | |
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-sync
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-linus
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 2ad1e9ff4f75..dd88f8b7cace 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -54,7 +54,7 @@ enum { }; struct device; - +struct device_driver; struct bus_type { char * name; @@ -68,6 +68,8 @@ struct bus_type { struct driver_dir_entry dir; struct driver_dir_entry device_dir; struct driver_dir_entry driver_dir; + + int (*bind) (struct device * dev, struct device_driver * drv); }; @@ -82,6 +84,11 @@ static inline struct bus_type * get_bus(struct bus_type * bus) extern void put_bus(struct bus_type * bus); +extern int bus_for_each_dev(struct bus_type * bus, void * data, + int (*callback)(struct device * dev, void * data)); +extern int bus_for_each_drv(struct bus_type * bus, void * data, + int (*callback)(struct device_driver * drv, void * data)); + struct device_driver { char * name; |
