summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h b/c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h
new file mode 100644
index 0000000000..3359869920
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq_supp.h
@@ -0,0 +1,42 @@
+#ifndef IRQ_SHARED_IRQ_C_GLUE_H
+#define IRQ_SHARED_IRQ_C_GLUE_H
+/*
+ * This header describes the routines that are needed by the shared
+ * version of 'irq.c' (implementing the RTEMS irq API). They
+ * must be provided by the BSP.
+ *
+ * The license and distribution terms for this file may be
+ * found in found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ */
+
+#include <rtems/irq.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * PIC-independent functions to enable/disable interrupt lines at
+ * the pic.
+ *
+ * NOTE: the routines must ignore requests for enabling/disabling
+ * interrupts that are outside of the range handled by the
+ * PIC(s).
+ */
+extern void BSP_enable_irq_at_pic (const rtems_irq_number irqLine);
+extern void BSP_disable_irq_at_pic (const rtems_irq_number irqLine);
+
+/*
+ * Initialize the PIC.
+ * Return nonzero on success, zero on failure (which will be treated
+ * as fatal by the manager).
+ */
+extern int BSP_setup_the_pic (rtems_irq_global_settings* config);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif