summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@geena.pdx.osdl.net>2002-05-27 19:58:58 -0700
committerPatrick Mochel <mochel@geena.pdx.osdl.net>2002-05-27 19:58:58 -0700
commit8f1640cbd899a01f3c4be8b48d3a4cf4a910c76f (patch)
tree510dc8b3b7e4e8a5f277220f94c478d17089519e /include/linux/device.h
parentcfff1d8f5243e04c7d04d36ec7e559b5c41eeb9f (diff)
deivce model: actually compile and use bus drivers
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 970b974918d6..078c65e02370 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -63,6 +63,11 @@ struct bus_type {
list_t node;
list_t devices;
+ list_t drivers;
+
+ struct driver_dir_entry dir;
+ struct driver_dir_entry device_dir;
+ struct driver_dir_entry driver_dir;
};
@@ -102,6 +107,7 @@ struct device {
atomic_t refcount; /* refcount to make sure the device
* persists for the right amount of time */
+ struct bus_type * bus; /* type of bus device is on */
struct driver_dir_entry dir;
struct device_driver *driver; /* which driver has allocated this