[PATCH] aic7xxx_osm build fix
[cris-mirror.git] / include / asm-m32r / irq.h
blob8ed77968ecb45c6a3f7d86e98ddb1611c9bd2daf
1 #ifdef __KERNEL__
2 #ifndef _ASM_M32R_IRQ_H
3 #define _ASM_M32R_IRQ_H
5 #include <linux/config.h>
7 #if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_USRV)
8 /*
9 * IRQ definitions for M32700UT
10 * M32700 Chip: 64 interrupts
11 * ICU of M32700UT-on-board PLD: 32 interrupts cascaded to INT1# chip pin
13 #define M32700UT_NUM_CPU_IRQ (64)
14 #define M32700UT_NUM_PLD_IRQ (32)
15 #define M32700UT_IRQ_BASE 0
16 #define M32700UT_CPU_IRQ_BASE M32700UT_IRQ_BASE
17 #define M32700UT_PLD_IRQ_BASE (M32700UT_CPU_IRQ_BASE + M32700UT_NUM_CPU_IRQ)
19 #define NR_IRQS (M32700UT_NUM_CPU_IRQ + M32700UT_NUM_PLD_IRQ)
20 #elif defined(CONFIG_PLAT_M32700UT)
22 * IRQ definitions for M32700UT(Rev.C) + M32R-LAN
23 * M32700 Chip: 64 interrupts
24 * ICU of M32700UT-on-board PLD: 32 interrupts cascaded to INT1# chip pin
25 * ICU of M32R-LCD-on-board PLD: 32 interrupts cascaded to INT2# chip pin
26 * ICU of M32R-LAN-on-board PLD: 32 interrupts cascaded to INT0# chip pin
28 #define M32700UT_NUM_CPU_IRQ (64)
29 #define M32700UT_NUM_PLD_IRQ (32)
30 #define M32700UT_NUM_LCD_PLD_IRQ (32)
31 #define M32700UT_NUM_LAN_PLD_IRQ (32)
32 #define M32700UT_IRQ_BASE 0
33 #define M32700UT_CPU_IRQ_BASE (M32700UT_IRQ_BASE)
34 #define M32700UT_PLD_IRQ_BASE \
35 (M32700UT_CPU_IRQ_BASE + M32700UT_NUM_CPU_IRQ)
36 #define M32700UT_LCD_PLD_IRQ_BASE \
37 (M32700UT_PLD_IRQ_BASE + M32700UT_NUM_PLD_IRQ)
38 #define M32700UT_LAN_PLD_IRQ_BASE \
39 (M32700UT_LCD_PLD_IRQ_BASE + M32700UT_NUM_LCD_PLD_IRQ)
41 #define NR_IRQS \
42 (M32700UT_NUM_CPU_IRQ + M32700UT_NUM_PLD_IRQ \
43 + M32700UT_NUM_LCD_PLD_IRQ + M32700UT_NUM_LAN_PLD_IRQ)
44 #elif defined(CONFIG_PLAT_OPSPUT)
46 * IRQ definitions for OPSPUT + M32R-LAN
47 * OPSP Chip: 64 interrupts
48 * ICU of OPSPUT-on-board PLD: 32 interrupts cascaded to INT1# chip pin
49 * ICU of M32R-LCD-on-board PLD: 32 interrupts cascaded to INT2# chip pin
50 * ICU of M32R-LAN-on-board PLD: 32 interrupts cascaded to INT0# chip pin
52 #define OPSPUT_NUM_CPU_IRQ (64)
53 #define OPSPUT_NUM_PLD_IRQ (32)
54 #define OPSPUT_NUM_LCD_PLD_IRQ (32)
55 #define OPSPUT_NUM_LAN_PLD_IRQ (32)
56 #define OPSPUT_IRQ_BASE 0
57 #define OPSPUT_CPU_IRQ_BASE (OPSPUT_IRQ_BASE)
58 #define OPSPUT_PLD_IRQ_BASE \
59 (OPSPUT_CPU_IRQ_BASE + OPSPUT_NUM_CPU_IRQ)
60 #define OPSPUT_LCD_PLD_IRQ_BASE \
61 (OPSPUT_PLD_IRQ_BASE + OPSPUT_NUM_PLD_IRQ)
62 #define OPSPUT_LAN_PLD_IRQ_BASE \
63 (OPSPUT_LCD_PLD_IRQ_BASE + OPSPUT_NUM_LCD_PLD_IRQ)
65 #define NR_IRQS \
66 (OPSPUT_NUM_CPU_IRQ + OPSPUT_NUM_PLD_IRQ \
67 + OPSPUT_NUM_LCD_PLD_IRQ + OPSPUT_NUM_LAN_PLD_IRQ)
68 #else
69 #define NR_IRQS 64
70 #endif
72 #define irq_canonicalize(irq) (irq)
74 #endif /* _ASM_M32R_IRQ_H */
75 #endif /* __KERNEL__ */