patch-2.1.53 linux/include/asm-ppc/irq.h

Next file: linux/include/asm-ppc/namei.h
Previous file: linux/include/asm-ppc/io.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.52/linux/include/asm-ppc/irq.h linux/include/asm-ppc/irq.h
@@ -3,7 +3,19 @@
 
 #include <linux/config.h>
 
-#define NR_IRQS 32
+/*
+ * this is the # irq's for all ppc arch's (pmac/chrp/prep)
+ * so it is the max of them all - which happens to be chrp
+ * -- Cort
+ */
+#define NR_IRQS			(NUM_8259_INTERRUPTS+NUM_OPENPIC_INTERRUPTS)
+
+#define NUM_8259_INTERRUPTS	16
+#define NUM_OPENPIC_INTERRUPTS	20
+#define is_8259_irq(n)		((n) < NUM_8259_INTERRUPTS)
+#define openpic_to_irq(n)	((n)+NUM_8259_INTERRUPTS)
+#define irq_to_openpic(n)	((n)-NUM_8259_INTERRUPTS)
+#define IRQ_8259_CASCADE	NUM_8259_INTERRUPTS
 
 extern void disable_irq(unsigned int);
 extern void enable_irq(unsigned int);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov