aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/arm/midgard/mali_base_kernel_sync.h
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2016-02-04 16:08:23 +0000
committerJon Medhurst <tixy@linaro.org>2016-02-04 16:08:23 +0000
commit0d13672449e3e30baff49fd47fe69303e4a39d0f (patch)
tree0cc61f418dbbf6744682c61656ffa53835877d6e /drivers/gpu/arm/midgard/mali_base_kernel_sync.h
parent2333e36efb821bf4fb57b276aeb55f268fbe41cc (diff)
parentdc02b233f167b7bd3b5ee8030fd9f06e5f884b63 (diff)
Merge branch 'lsk-3.18-armlt-mali' into integration-lsk-3.18-armlt-androidlsk-3.18-armlt-20160204
Conflicts: arch/arm64/boot/dts/arm/juno-base.dtsi linaro/configs/vexpress64.conf
Diffstat (limited to 'drivers/gpu/arm/midgard/mali_base_kernel_sync.h')
-rwxr-xr-xdrivers/gpu/arm/midgard/mali_base_kernel_sync.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/gpu/arm/midgard/mali_base_kernel_sync.h b/drivers/gpu/arm/midgard/mali_base_kernel_sync.h
new file mode 100755
index 000000000000..a24791f4af7c
--- /dev/null
+++ b/drivers/gpu/arm/midgard/mali_base_kernel_sync.h
@@ -0,0 +1,47 @@
+/*
+ *
+ * (C) COPYRIGHT 2012-2013 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.
+ *
+ */
+
+
+
+
+
+/**
+ * @file
+ * Base cross-proccess sync API.
+ */
+
+#ifndef _BASE_KERNEL_SYNC_H_
+#define _BASE_KERNEL_SYNC_H_
+
+#include <linux/ioctl.h>
+
+#define STREAM_IOC_MAGIC '~'
+
+/* Fence insert.
+ *
+ * Inserts a fence on the stream operated on.
+ * Fence can be waited via a base fence wait soft-job
+ * or triggered via a base fence trigger soft-job.
+ *
+ * Fences must be cleaned up with close when no longer needed.
+ *
+ * No input/output arguments.
+ * Returns
+ * >=0 fd
+ * <0 error code
+ */
+#define STREAM_IOC_FENCE_INSERT _IO(STREAM_IOC_MAGIC, 0)
+
+#endif /* _BASE_KERNEL_SYNC_H_ */