summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-14 10:25:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-14 10:25:56 +0200
commite133ccdda8c351da29404d6f8fe3242b375c9e99 (patch)
tree5d45f606d66e4040f46b7b126423572bc3ae8ffd /include/driver.h
parente3dde870301088469300c1ae69c346ed558b6ca8 (diff)
downloadbarebox-e133ccdda8c351da29404d6f8fe3242b375c9e99.tar.gz
barebox-e133ccdda8c351da29404d6f8fe3242b375c9e99.tar.xz
implement memmap for mem driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index e2b6d669dc..d4e7c132c9 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -240,6 +240,7 @@ int dev_memmap(struct device_d *dev, void **map, int flags);
/* These are used by drivers which work with direct memory accesses */
ssize_t mem_read(struct device_d *dev, void *buf, size_t count, ulong offset, ulong flags);
ssize_t mem_write(struct device_d *dev, const void *buf, size_t count, ulong offset, ulong flags);
+int mem_memmap(struct device_d *dev, void **map, int flags);
/* Use this if you have nothing to do in your drivers probe function */
int dummy_probe(struct device_d *);