aboutsummaryrefslogtreecommitdiff
path: root/include/mach/md32_wdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/md32_wdt.h')
-rw-r--r--include/mach/md32_wdt.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/mach/md32_wdt.h b/include/mach/md32_wdt.h
new file mode 100644
index 000000000..30532aea1
--- /dev/null
+++ b/include/mach/md32_wdt.h
@@ -0,0 +1,35 @@
+
+#ifndef __MT6582_MD32INT_H__
+#define __MT6582_MD32INT_H__
+
+
+
+#define MD32_MAX_USER 20
+#define MD2HOST_IPCR 0x1005001C
+
+/*Define MD32 IRQ Type*/
+#define MD32_IPC_INT 0x100
+#define WDT_INT 0x200
+#define PMEM_DISP_INT 0x400
+#define DMEM_DISP_INT 0x800
+/*Define Watchdog Register*/
+#define WDT_CON 0x10050084
+#define WDT_KICT 0x10050088
+
+typedef struct {
+ void (*wdt_func[MD32_MAX_USER]) (void *);
+ void (*reset_func[MD32_MAX_USER]) (void *);
+ char MODULE_NAME[MD32_MAX_USER][100];
+ void *private_data[MD32_MAX_USER];
+ int in_use[MD32_MAX_USER];
+} md32_wdt_func;
+
+typedef struct {
+ void (*assert_func[MD32_MAX_USER]) (void *);
+ void (*reset_func[MD32_MAX_USER]) (void *);
+ char MODULE_NAME[MD32_MAX_USER][100];
+ void *private_data[MD32_MAX_USER];
+ int in_use[MD32_MAX_USER];
+} md32_assert_func;
+
+#endif