diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-m32r/irq.h |
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-m32r/irq.h')
-rw-r--r-- | include/asm-m32r/irq.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/include/asm-m32r/irq.h b/include/asm-m32r/irq.h new file mode 100644 index 000000000000..8ed77968ecb4 --- /dev/null +++ b/include/asm-m32r/irq.h | |||
@@ -0,0 +1,75 @@ | |||
1 | #ifdef __KERNEL__ | ||
2 | #ifndef _ASM_M32R_IRQ_H | ||
3 | #define _ASM_M32R_IRQ_H | ||
4 | |||
5 | #include <linux/config.h> | ||
6 | |||
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 | ||
12 | */ | ||
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) | ||
18 | |||
19 | #define NR_IRQS (M32700UT_NUM_CPU_IRQ + M32700UT_NUM_PLD_IRQ) | ||
20 | #elif defined(CONFIG_PLAT_M32700UT) | ||
21 | /* | ||
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 | ||
27 | */ | ||
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) | ||
40 | |||
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) | ||
45 | /* | ||
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 | ||
51 | */ | ||
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) | ||
64 | |||
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 | ||
71 | |||
72 | #define irq_canonicalize(irq) (irq) | ||
73 | |||
74 | #endif /* _ASM_M32R_IRQ_H */ | ||
75 | #endif /* __KERNEL__ */ | ||