summaryrefslogtreecommitdiff
path: root/include/linux/mvf_sema4.h
diff options
context:
space:
mode:
authorRussell Robinson Jr <rrobinson@phytec.com>2013-02-21 15:14:59 -0800
committerRussell Robinson Jr <rrobinson@phytec.com>2013-03-14 17:37:37 -0700
commit58b87cfa999fdcc9ea6ce966f0a1cd96071e4b3a (patch)
treef1926676699c6eb1e7c5dce1e8145af83d4bd567 /include/linux/mvf_sema4.h
parent89df1897f9e305288503bccac1b7de0c196dca48 (diff)
Initial changes to support mcc and i2c semaphore for ping pong demoPD13.0.2
Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'include/linux/mvf_sema4.h')
-rw-r--r--include/linux/mvf_sema4.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/mvf_sema4.h b/include/linux/mvf_sema4.h
new file mode 100644
index 000000000000..898065afb23f
--- /dev/null
+++ b/include/linux/mvf_sema4.h
@@ -0,0 +1,15 @@
+#ifndef __MVF_SEMA4__
+#define __MVF_SEMA4__
+
+typedef struct mvf_sema4_handle_struct {
+ int gate_num;
+ int use_interrupts;
+ wait_queue_head_t wait_queue;
+} MVF_SEMA4;
+
+int mvf_sema4_assign(int gate_num, bool use_interrupts, MVF_SEMA4** sema4_p);
+int mvf_sema4_deassign(MVF_SEMA4 *sema4);
+int mvf_sema4_lock(MVF_SEMA4 *sema4, unsigned int timeout_us);
+int mvf_sema4_unlock(MVF_SEMA4 *sema4);
+
+#endif