summaryrefslogtreecommitdiffstats
path: root/arch/mips/jazz/irq.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-26 00:44:39 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-26 00:44:39 +0000
commitcb16a6c4fa8d87827f3cdea2d56940c3e943301e (patch)
treea8d900b82a5930ab8c17b20ac89979ecff27bcd3 /arch/mips/jazz/irq.c
parente4d8ca1906ea4139cf3cef237b731d38dd983920 (diff)
Some changes to get Jazz to compile again. There are other changes
needed which I won't checkin yet.
Diffstat (limited to 'arch/mips/jazz/irq.c')
-rw-r--r--arch/mips/jazz/irq.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/mips/jazz/irq.c b/arch/mips/jazz/irq.c
new file mode 100644
index 000000000..8dcad3257
--- /dev/null
+++ b/arch/mips/jazz/irq.c
@@ -0,0 +1,45 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 1992 Linus Torvalds
+ * Copyright (C) 1994 - 2001 Ralf Baechle
+ */
+#include <linux/delay.h>
+#include <linux/init.h>
+#include <linux/irq.h>
+#include <linux/interrupt.h>
+#include <linux/kernel.h>
+#include <linux/spinlock.h>
+
+#include <asm/io.h>
+#include <asm/jazz.h>
+
+extern asmlinkage void jazz_handle_int(void);
+
+/*
+ * On systems with i8259-style interrupt controllers we assume for
+ * driver compatibility reasons interrupts 0 - 15 to be the i8295
+ * interrupts even if the hardware uses a different interrupt numbering.
+ */
+void __init init_IRQ (void)
+{
+ int i;
+
+ set_except_vector(0, jazz_handle_int);
+
+ init_generic_irq();
+ init_i8259_irqs(); /* Integrated i8259 */
+#if 0
+ init_jazz_irq();
+
+ /* Actually we've got more interrupts to handle ... */
+ for (i = PCIMT_IRQ_INT2; i <= PCIMT_IRQ_ETHERNET; i++) {
+ irq_desc[i].status = IRQ_DISABLED;
+ irq_desc[i].action = 0;
+ irq_desc[i].depth = 1;
+ irq_desc[i].handler = &pciasic_irq_type;
+ }
+#endif
+}