patch-2.4.19 linux-2.4.19/include/asm-mips/galileo-boards/ev64120int.h
Next file: linux-2.4.19/include/asm-mips/galileo-boards/ev96100.h
Previous file: linux-2.4.19/include/asm-mips/galileo-boards/ev64120.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-mips/galileo-boards/ev64120int.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -urN linux-2.4.18/include/asm-mips/galileo-boards/ev64120int.h linux-2.4.19/include/asm-mips/galileo-boards/ev64120int.h
@@ -0,0 +1,36 @@
+#ifndef IRQ_HANDLER_
+#define IRQ_HANDLER_
+
+#define INT_CAUSE_MAIN 0
+#define INT_CAUSE_HIGH 1
+
+#define MAX_CAUSE_REGS 4
+#define MAX_CAUSE_REG_WIDTH 32
+
+void hook_irq_handler (int int_cause , int bit_num , void *isr_ptr);
+int disable_galileo_irq (int int_cause , int bit_num);
+int enable_galileo_irq (int int_cause , int bit_num);
+
+extern struct tq_struct irq_handlers[MAX_CAUSE_REGS][MAX_CAUSE_REG_WIDTH];
+
+/*
+ PCI interrupts will come in on either the INTA or
+ INTD interrups lines, which are mapped to the #2 and
+ #5 interrupt pins of the MIPS. On our boards, they
+ all either come in on IntD or they all come in on
+ IntA, they aren't mixed. There can be numerous PCI
+ interrupts, so we keep a list of the "requested"
+ interrupt numbers and go through the list whenever
+ we get an IntA/D.
+
+ All PCI interrupts have numbers >= 20 by arbitrary convention. Any
+ interrupt < 8 is an interrupt that is maskable on the
+ MIPS.
+*/
+
+#define TIMER 4
+#define INTA 2
+#define INTD 5
+
+
+#endif /* IRQ_HANDLER_ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)