fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / asm-m32r / irq.h
index f83e59f..2f93f47 100644 (file)
@@ -1,9 +1,7 @@
+#ifdef __KERNEL__
 #ifndef _ASM_M32R_IRQ_H
 #define _ASM_M32R_IRQ_H
 
-/* $Id$ */
-
-#include <linux/config.h>
 
 #if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_USRV)
 /*
 #define NR_IRQS \
        (OPSPUT_NUM_CPU_IRQ + OPSPUT_NUM_PLD_IRQ \
        + OPSPUT_NUM_LCD_PLD_IRQ + OPSPUT_NUM_LAN_PLD_IRQ)
-#else
-#define NR_IRQS        64
-#endif
 
-#define irq_canonicalize(irq)  (irq)
+#elif defined(CONFIG_PLAT_M32104UT)
+/*
+ * IRQ definitions for M32104UT
+ *  M32104 Chip: 64 interrupts
+ *  ICU of M32104UT-on-board PLD: 32 interrupts cascaded to INT1# chip pin
+ */
+#define        M32104UT_NUM_CPU_IRQ    (64)
+#define M32104UT_NUM_PLD_IRQ   (32)
+#define M32104UT_IRQ_BASE      0
+#define M32104UT_CPU_IRQ_BASE  M32104UT_IRQ_BASE
+#define M32104UT_PLD_IRQ_BASE  (M32104UT_CPU_IRQ_BASE + M32104UT_NUM_CPU_IRQ)
 
-#ifndef __ASSEMBLY__
-extern void disable_irq(unsigned int);
-extern void disable_irq_nosync(unsigned int);
-extern void enable_irq(unsigned int);
+#define NR_IRQS        \
+    (M32104UT_NUM_CPU_IRQ + M32104UT_NUM_PLD_IRQ)
 
-struct irqaction;
-struct pt_regs;
-int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
+#else
+#define NR_IRQS        64
 #endif
 
-#endif /* _ASM_M32R_IRQ_H */
+#define irq_canonicalize(irq)  (irq)
 
+#endif /* _ASM_M32R_IRQ_H */
+#endif /* __KERNEL__ */