summaryrefslogtreecommitdiff
path: root/include/linux/mvf_sema4.h
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2013-03-29 13:08:55 -0400
committerJustin Waters <justin.waters@timesys.com>2013-03-29 13:08:55 -0400
commit21ceb093d796e94500502eee94a8cd5fcc76f619 (patch)
tree8f3255c05b10b382a361e1eca47794b3485c2572 /include/linux/mvf_sema4.h
parentf962cbcefdfad22ffff41e19ad4c5ff58815c05c (diff)
parentfcbe1245c34fa407ff20d6afd2f975e8f961a17b (diff)
Merge branch '3.0-pcm052' of ssh://github.com/tsfs/Vybrid-Linux into 3.0-pcm0523.0-pcm052-ts2.1
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