summaryrefslogtreecommitdiff
path: root/drivers/media/sprd_sensor/csi2/csi_system.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/media/sprd_sensor/csi2/csi_system.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'drivers/media/sprd_sensor/csi2/csi_system.h')
-rw-r--r--drivers/media/sprd_sensor/csi2/csi_system.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/media/sprd_sensor/csi2/csi_system.h b/drivers/media/sprd_sensor/csi2/csi_system.h
new file mode 100644
index 00000000..21f19886
--- /dev/null
+++ b/drivers/media/sprd_sensor/csi2/csi_system.h
@@ -0,0 +1,28 @@
+/*
+ * system.h
+ *
+ * Created on: Jun 25, 2010
+ * Author: klabadi & dlopo
+ */
+
+#ifndef SYSTEM_H_
+#define SYSTEM_H_
+
+#include "csi_types.h"
+
+typedef enum
+{
+ CSI_INT_ERR1 = 1, CSI_INT_ERR2
+} interrupt_id_t;
+void system_sleep_ms(unsigned ms);
+int system_thread_create(void* handle, thread_t p_func, void* param);
+int system_thread_destruct(void* handle);
+int system_start(thread_t thread);
+int system_interrupt_disable(interrupt_id_t id);
+int system_interrupt_enable(interrupt_id_t id);
+int system_interrupt_acknowledge(interrupt_id_t id);
+int system_interrupt_handler_register(interrupt_id_t id, handler_t handler, void * param);
+int system_interrupt_handler_unregister(interrupt_id_t id);
+
+
+#endif /* SYSTEM_H_ */ \ No newline at end of file