aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/dma_buf_lock/src/dma_buf_lock.h
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2017-07-27 09:49:27 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2017-07-27 09:49:27 +0100
commit815b4c4b5fbcfb1e92e8dcc90f79e72aa3f43df4 (patch)
tree854243daf112af8eb31e8c85d6b2494a50815016 /drivers/base/dma_buf_lock/src/dma_buf_lock.h
parentf39188fb718d2ec1272e5174a69a40f3c05c1cd2 (diff)
parent1b154a44b8c6ad2ee1550be20e9a70622b12e99b (diff)
Merge branch '4.4-armlt-mali' into 4.4-armlt
Diffstat (limited to 'drivers/base/dma_buf_lock/src/dma_buf_lock.h')
-rwxr-xr-xdrivers/base/dma_buf_lock/src/dma_buf_lock.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/base/dma_buf_lock/src/dma_buf_lock.h b/drivers/base/dma_buf_lock/src/dma_buf_lock.h
new file mode 100755
index 000000000000..e1b9348b9cfd
--- /dev/null
+++ b/drivers/base/dma_buf_lock/src/dma_buf_lock.h
@@ -0,0 +1,42 @@
+/*
+ *
+ * (C) COPYRIGHT 2012 ARM Limited. All rights reserved.
+ *
+ * This program is free software and is provided to you under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation, and any use by you of this program is subject to the terms
+ * of such GNU licence.
+ *
+ * A copy of the licence is included with the program, and can also be obtained
+ * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+
+
+#ifndef _DMA_BUF_LOCK_H
+#define _DMA_BUF_LOCK_H
+
+typedef enum dma_buf_lock_exclusive
+{
+ DMA_BUF_LOCK_NONEXCLUSIVE = 0,
+ DMA_BUF_LOCK_EXCLUSIVE = -1
+} dma_buf_lock_exclusive;
+
+typedef struct dma_buf_lock_k_request
+{
+ int count;
+ int *list_of_dma_buf_fds;
+ int timeout;
+ dma_buf_lock_exclusive exclusive;
+} dma_buf_lock_k_request;
+
+#define DMA_BUF_LOCK_IOC_MAGIC '~'
+
+#define DMA_BUF_LOCK_FUNC_LOCK_ASYNC _IOW(DMA_BUF_LOCK_IOC_MAGIC, 11, dma_buf_lock_k_request)
+
+#define DMA_BUF_LOCK_IOC_MINNR 11
+#define DMA_BUF_LOCK_IOC_MAXNR 11
+
+#endif /* _DMA_BUF_LOCK_H */