summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:37 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:37 +0200
commit9db8ed3312a2137b12cb0cb15c4267ead96dbf8b (patch)
treeefa8cebc8db28bf6e7fafae2d920f15d66381047 /include/driver.h
parent225b19227203911f9bda410746ef4e366a008852 (diff)
downloadbarebox-9db8ed3312a2137b12cb0cb15c4267ead96dbf8b.tar.gz
barebox-9db8ed3312a2137b12cb0cb15c4267ead96dbf8b.tar.xz
svn_rev_261
WIP Filesystem support
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/driver.h b/include/driver.h
index 0936462c94..c7ede1acc7 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -26,8 +26,11 @@ struct device_d {
*/
unsigned long map_base;
- void *platform_data;
- void *priv;
+ void *platform_data; /* board specific information about this device */
+ void *priv; /* data private to the driver */
+ void *type_data; /* In case this device is a specific device, this pointer
+ * points to the type specific device, i.e. eth_device
+ */
/* The driver for this device */
struct driver_d *driver;
@@ -55,9 +58,10 @@ struct driver_d {
int (*get) (struct device_d*, struct param_d *);
int (*set) (struct device_d*, struct param_d *, value_t val);
- void *driver_data;
unsigned long type;
- void *type_data;
+ void *type_data; /* In case this driver is of a specific type, i.e. a filesystem
+ * driver, this pointer points to the corresponding data struct
+ */
};
#define RW_SIZE(x) (x)