summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-11-17 22:21:37 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:13:44 +0900
commite269a951690c377d33dd23c9836a73404d42c41f (patch)
tree54ddde6f7ca1a5e3b350178e20b80663a6d33a3f /include
parentffa7fc3fd0d9398b4b51c88c43b4eb562b338e58 (diff)
downloadlinux-3.10-e269a951690c377d33dd23c9836a73404d42c41f.tar.gz
linux-3.10-e269a951690c377d33dd23c9836a73404d42c41f.tar.bz2
linux-3.10-e269a951690c377d33dd23c9836a73404d42c41f.zip
dma-buf: add dma-buf-test driver
Change-Id: Ia7d3608d3ec033453147c1bb500aca144ee42902 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/dma-buf-test.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/dma-buf-test.h b/include/uapi/linux/dma-buf-test.h
new file mode 100644
index 00000000000..ad421f198db
--- /dev/null
+++ b/include/uapi/linux/dma-buf-test.h
@@ -0,0 +1,13 @@
+#include <linux/ioctl.h>
+#include <linux/types.h>
+
+struct dmabuf_create {
+ __u32 flags;
+ __u32 size;
+ __u32 fd;
+};
+
+#define DMABUF_IOCTL_BASE 'D'
+#define DMABUF_IOCTL_CREATE _IOWR(DMABUF_IOCTL_BASE, 0, struct dmabuf_create)
+#define DMABUF_IOCTL_DELETE _IOWR(DMABUF_IOCTL_BASE, 1, int)
+#define DMABUF_IOCTL_EXPORT _IOWR(DMABUF_IOCTL_BASE, 2, int)