aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vme.h
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2015-02-26 18:53:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 17:03:22 -0800
commitc74a804f115bdedcac72ea52ca33f46cfae3b74f (patch)
tree0e2c88fa7c1c0ba49147594f70d99688e9345c10 /include/linux/vme.h
parentstaging: vme: use image mutex for ioctl() (diff)
downloadlinux-dev-c74a804f115bdedcac72ea52ca33f46cfae3b74f.tar.xz
linux-dev-c74a804f115bdedcac72ea52ca33f46cfae3b74f.zip
staging: vme: mmap() support for vme_user
We also make sure that user won't be able to reconfigure the window while it is mmap'ed. Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Cc: Martyn Welch <martyn.welch@ge.com> Cc: Igor Alekseev <igor.alekseev@itep.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/vme.h')
-rw-r--r--include/linux/vme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/vme.h b/include/linux/vme.h
index 8cd6f19ca518..79242e9c06b8 100644
--- a/include/linux/vme.h
+++ b/include/linux/vme.h
@@ -137,6 +137,7 @@ ssize_t vme_master_read(struct vme_resource *, void *, size_t, loff_t);
ssize_t vme_master_write(struct vme_resource *, void *, size_t, loff_t);
unsigned int vme_master_rmw(struct vme_resource *, unsigned int, unsigned int,
unsigned int, loff_t);
+int vme_master_mmap(struct vme_resource *resource, struct vm_area_struct *vma);
void vme_master_free(struct vme_resource *);
struct vme_resource *vme_dma_request(struct vme_dev *, u32);