summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:32 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:32 +0200
commit76694f989c28e50b6db5b278f854904ef3d690cf (patch)
tree2bf315d2a680e55a3aef438aff21b3c804e49f0b /include/driver.h
parentdbafd2e1384ab8da104ca2a72f649b7cee7de15b (diff)
downloadbarebox-76694f989c28e50b6db5b278f854904ef3d690cf.tar.gz
barebox-76694f989c28e50b6db5b278f854904ef3d690cf.tar.xz
svn_rev_204
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h
index 24f28032ec..7cc1d51435 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -7,11 +7,12 @@
#define MAP_WRITE 2
struct param_d {
- char *(*get)(struct device_d *, ulong cookie);
- int (*set)(struct device_d *, ulong cookie, char *val);
+ char *(*get)(struct device_d *, struct param_d *param);
+ int (*set)(struct device_d *, struct param_d *param, char *val);
char *name;
ulong cookie;
struct param_d *next;
+ void *val;
};
#define DEVICE_TYPE_UNKNOWN 0