summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/include/itronsys/intr.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/itron/include/itronsys/intr.h')
-rw-r--r--cpukit/itron/include/itronsys/intr.h103
1 files changed, 103 insertions, 0 deletions
diff --git a/cpukit/itron/include/itronsys/intr.h b/cpukit/itron/include/itronsys/intr.h
new file mode 100644
index 0000000000..07f0c038f2
--- /dev/null
+++ b/cpukit/itron/include/itronsys/intr.h
@@ -0,0 +1,103 @@
+/*
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#ifndef __ITRON_INTERRUPT_h_
+#define __ITRON_INTERRUPT_h_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Define Interrupt (def_int) Structure
+ */
+
+typedef struct t_dint {
+ ATR intatr; /* interrupt handler attributes */
+ FP inthdr; /* interrupt handler address */
+ /* additional information may be included depending on the implementation */
+} T_DINT;
+
+/*
+ * Interrupt Functions
+ */
+
+/*
+ * def_int - Define Interrupt Handler
+ */
+
+ER def_int(
+ UINT dintno,
+ T_DINT *pk_dint
+);
+
+/*
+ * ret_int - Return from Interrupt Handler
+ */
+
+void ret_int( void );
+
+/*
+ * ret_wup - Return and Wakeup Task
+ */
+
+void ret_wup(
+ ID tskid
+);
+
+/*
+ * loc_cpu - Lock CPU
+ */
+
+ER loc_cpu( void );
+
+/*
+ * unl_cpu - Unlock CPU
+ */
+
+ER unl_cpu( void );
+
+/*
+ * dis_int - Disable Interrupt
+ */
+
+ER dis_int(
+ UINT eintno
+);
+
+/*
+ * ena_int - Enable Interrupt
+ */
+
+ER ena_int(
+ UINT eintno
+);
+
+/*
+ * chg_iXX - Change Interrupt Mask(Level or Priority)
+ */
+
+ER chg_iXX(
+ UINT iXXXX
+);
+
+/*
+ * ref_iXX - Reference Interrupt Mask(Level or Priority)
+ */
+
+ER ref_iXX(
+ UINT *p_iXXXX
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */
+