diff options
author | Maciej W. Rozycki <macro@mips.com> | 2006-09-12 14:12:18 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-09-27 08:37:42 -0400 |
commit | fc095a902181b72ce77a10feb7b36ba1cbacd736 (patch) | |
tree | fdd84f9ea29f26dea3ae340ca168e2a2df27b3be | |
parent | 3ee24e1b1e0b5ae413a85ba63677a7110915e3af (diff) |
[MIPS] Atlas: update interrupt handling
The following change updates the Atlas interrupt handling to match that
of Malta. Tested with a 5Kc and a 34Kf successfully.
Signed-off-by: Maciej W. Rozycki <macro@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mips-boards/atlas/atlas_int.c | 105 | ||||
-rw-r--r-- | arch/mips/mips-boards/atlas/atlas_setup.c | 2 | ||||
-rw-r--r-- | arch/mips/mips-boards/generic/time.c | 7 | ||||
-rw-r--r-- | arch/mips/pci/fixup-atlas.c | 20 | ||||
-rw-r--r-- | include/asm-mips/mach-atlas/mc146818rtc.h | 2 | ||||
-rw-r--r-- | include/asm-mips/mips-boards/atlasint.h | 124 |
6 files changed, 189 insertions, 71 deletions
diff --git a/arch/mips/mips-boards/atlas/atlas_int.c b/arch/mips/mips-boards/atlas/atlas_int.c index fb25e0377f11..a020a3cb4f4b 100644 --- a/arch/mips/mips-boards/atlas/atlas_int.c +++ b/arch/mips/mips-boards/atlas/atlas_int.c | |||
@@ -1,6 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * Carsten Langgaard, carstenl@mips.com | 2 | * Copyright (C) 1999, 2000, 2006 MIPS Technologies, Inc. |
3 | * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved. | 3 | * All rights reserved. |
4 | * Authors: Carsten Langgaard <carstenl@mips.com> | ||
5 | * Maciej W. Rozycki <macro@mips.com> | ||
4 | * | 6 | * |
5 | * ######################################################################## | 7 | * ######################################################################## |
6 | * | 8 | * |
@@ -25,17 +27,20 @@ | |||
25 | */ | 27 | */ |
26 | #include <linux/compiler.h> | 28 | #include <linux/compiler.h> |
27 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/irq.h> | ||
28 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
29 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
30 | #include <linux/interrupt.h> | 33 | #include <linux/interrupt.h> |
31 | #include <linux/kernel_stat.h> | 34 | #include <linux/kernel_stat.h> |
32 | 35 | ||
33 | #include <asm/irq.h> | 36 | #include <asm/gdb-stub.h> |
34 | #include <asm/io.h> | 37 | #include <asm/io.h> |
38 | #include <asm/irq_cpu.h> | ||
39 | #include <asm/msc01_ic.h> | ||
40 | |||
35 | #include <asm/mips-boards/atlas.h> | 41 | #include <asm/mips-boards/atlas.h> |
36 | #include <asm/mips-boards/atlasint.h> | 42 | #include <asm/mips-boards/atlasint.h> |
37 | #include <asm/gdb-stub.h> | 43 | #include <asm/mips-boards/generic.h> |
38 | |||
39 | 44 | ||
40 | static struct atlas_ictrl_regs *atlas_hw0_icregs; | 45 | static struct atlas_ictrl_regs *atlas_hw0_icregs; |
41 | 46 | ||
@@ -47,13 +52,13 @@ static struct atlas_ictrl_regs *atlas_hw0_icregs; | |||
47 | 52 | ||
48 | void disable_atlas_irq(unsigned int irq_nr) | 53 | void disable_atlas_irq(unsigned int irq_nr) |
49 | { | 54 | { |
50 | atlas_hw0_icregs->intrsten = (1 << (irq_nr-ATLASINT_BASE)); | 55 | atlas_hw0_icregs->intrsten = 1 << (irq_nr - ATLAS_INT_BASE); |
51 | iob(); | 56 | iob(); |
52 | } | 57 | } |
53 | 58 | ||
54 | void enable_atlas_irq(unsigned int irq_nr) | 59 | void enable_atlas_irq(unsigned int irq_nr) |
55 | { | 60 | { |
56 | atlas_hw0_icregs->intseten = (1 << (irq_nr-ATLASINT_BASE)); | 61 | atlas_hw0_icregs->intseten = 1 << (irq_nr - ATLAS_INT_BASE); |
57 | iob(); | 62 | iob(); |
58 | } | 63 | } |
59 | 64 | ||
@@ -107,7 +112,7 @@ static inline void atlas_hw0_irqdispatch(struct pt_regs *regs) | |||
107 | if (unlikely(int_status == 0)) | 112 | if (unlikely(int_status == 0)) |
108 | return; | 113 | return; |
109 | 114 | ||
110 | irq = ATLASINT_BASE + ls1bit32(int_status); | 115 | irq = ATLAS_INT_BASE + ls1bit32(int_status); |
111 | 116 | ||
112 | DEBUG_INT("atlas_hw0_irqdispatch: irq=%d\n", irq); | 117 | DEBUG_INT("atlas_hw0_irqdispatch: irq=%d\n", irq); |
113 | 118 | ||
@@ -161,15 +166,14 @@ static inline unsigned int irq_ffs(unsigned int pending) | |||
161 | } | 166 | } |
162 | 167 | ||
163 | /* | 168 | /* |
164 | * IRQs on the Atlas board look basically (barring software IRQs which we | 169 | * IRQs on the Atlas board look basically like (all external interrupt |
165 | * don't use at all and all external interrupt sources are combined together | 170 | * sources are combined together on hardware interrupt 0 (MIPS IRQ 2)): |
166 | * on hardware interrupt 0 (MIPS IRQ 2)) like: | ||
167 | * | 171 | * |
168 | * MIPS IRQ Source | 172 | * MIPS IRQ Source |
169 | * -------- ------ | 173 | * -------- ------ |
170 | * 0 Software (ignored) | 174 | * 0 Software 0 (reschedule IPI on MT) |
171 | * 1 Software (ignored) | 175 | * 1 Software 1 (remote call IPI on MT) |
172 | * 2 Combined hardware interrupt (hw0) | 176 | * 2 Combined Atlas hardware interrupt (hw0) |
173 | * 3 Hardware (ignored) | 177 | * 3 Hardware (ignored) |
174 | * 4 Hardware (ignored) | 178 | * 4 Hardware (ignored) |
175 | * 5 Hardware (ignored) | 179 | * 5 Hardware (ignored) |
@@ -179,7 +183,7 @@ static inline unsigned int irq_ffs(unsigned int pending) | |||
179 | * We handle the IRQ according to _our_ priority which is: | 183 | * We handle the IRQ according to _our_ priority which is: |
180 | * | 184 | * |
181 | * Highest ---- R4k Timer | 185 | * Highest ---- R4k Timer |
182 | * Lowest ---- Combined hardware interrupt | 186 | * Lowest ---- Software 0 |
183 | * | 187 | * |
184 | * then we just return, if multiple IRQs are pending then we will just take | 188 | * then we just return, if multiple IRQs are pending then we will just take |
185 | * another exception, big deal. | 189 | * another exception, big deal. |
@@ -193,17 +197,19 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs) | |||
193 | 197 | ||
194 | if (irq == MIPSCPU_INT_ATLAS) | 198 | if (irq == MIPSCPU_INT_ATLAS) |
195 | atlas_hw0_irqdispatch(regs); | 199 | atlas_hw0_irqdispatch(regs); |
196 | else if (irq > 0) | 200 | else if (irq >= 0) |
197 | do_IRQ(MIPSCPU_INT_BASE + irq, regs); | 201 | do_IRQ(MIPSCPU_INT_BASE + irq, regs); |
198 | else | 202 | else |
199 | spurious_interrupt(regs); | 203 | spurious_interrupt(regs); |
200 | } | 204 | } |
201 | 205 | ||
202 | void __init arch_init_irq(void) | 206 | static inline void init_atlas_irqs (int base) |
203 | { | 207 | { |
204 | int i; | 208 | int i; |
205 | 209 | ||
206 | atlas_hw0_icregs = (struct atlas_ictrl_regs *)ioremap (ATLAS_ICTRL_REGS_BASE, sizeof(struct atlas_ictrl_regs *)); | 210 | atlas_hw0_icregs = (struct atlas_ictrl_regs *) |
211 | ioremap(ATLAS_ICTRL_REGS_BASE, | ||
212 | sizeof(struct atlas_ictrl_regs *)); | ||
207 | 213 | ||
208 | /* | 214 | /* |
209 | * Mask out all interrupt by writing "1" to all bit position in | 215 | * Mask out all interrupt by writing "1" to all bit position in |
@@ -211,7 +217,7 @@ void __init arch_init_irq(void) | |||
211 | */ | 217 | */ |
212 | atlas_hw0_icregs->intrsten = 0xffffffff; | 218 | atlas_hw0_icregs->intrsten = 0xffffffff; |
213 | 219 | ||
214 | for (i = ATLASINT_BASE; i <= ATLASINT_END; i++) { | 220 | for (i = ATLAS_INT_BASE; i <= ATLAS_INT_END; i++) { |
215 | irq_desc[i].status = IRQ_DISABLED; | 221 | irq_desc[i].status = IRQ_DISABLED; |
216 | irq_desc[i].action = 0; | 222 | irq_desc[i].action = 0; |
217 | irq_desc[i].depth = 1; | 223 | irq_desc[i].depth = 1; |
@@ -219,3 +225,62 @@ void __init arch_init_irq(void) | |||
219 | spin_lock_init(&irq_desc[i].lock); | 225 | spin_lock_init(&irq_desc[i].lock); |
220 | } | 226 | } |
221 | } | 227 | } |
228 | |||
229 | static struct irqaction atlasirq = { | ||
230 | .handler = no_action, | ||
231 | .name = "Atlas cascade" | ||
232 | }; | ||
233 | |||
234 | msc_irqmap_t __initdata msc_irqmap[] = { | ||
235 | {MSC01C_INT_TMR, MSC01_IRQ_EDGE, 0}, | ||
236 | {MSC01C_INT_PCI, MSC01_IRQ_LEVEL, 0}, | ||
237 | }; | ||
238 | int __initdata msc_nr_irqs = sizeof(msc_irqmap) / sizeof(*msc_irqmap); | ||
239 | |||
240 | msc_irqmap_t __initdata msc_eicirqmap[] = { | ||
241 | {MSC01E_INT_SW0, MSC01_IRQ_LEVEL, 0}, | ||
242 | {MSC01E_INT_SW1, MSC01_IRQ_LEVEL, 0}, | ||
243 | {MSC01E_INT_ATLAS, MSC01_IRQ_LEVEL, 0}, | ||
244 | {MSC01E_INT_TMR, MSC01_IRQ_EDGE, 0}, | ||
245 | {MSC01E_INT_PCI, MSC01_IRQ_LEVEL, 0}, | ||
246 | {MSC01E_INT_PERFCTR, MSC01_IRQ_LEVEL, 0}, | ||
247 | {MSC01E_INT_CPUCTR, MSC01_IRQ_LEVEL, 0} | ||
248 | }; | ||
249 | int __initdata msc_nr_eicirqs = sizeof(msc_eicirqmap) / sizeof(*msc_eicirqmap); | ||
250 | |||
251 | void __init arch_init_irq(void) | ||
252 | { | ||
253 | init_atlas_irqs(ATLAS_INT_BASE); | ||
254 | |||
255 | if (!cpu_has_veic) | ||
256 | mips_cpu_irq_init(MIPSCPU_INT_BASE); | ||
257 | |||
258 | switch(mips_revision_corid) { | ||
259 | case MIPS_REVISION_CORID_CORE_MSC: | ||
260 | case MIPS_REVISION_CORID_CORE_FPGA2: | ||
261 | case MIPS_REVISION_CORID_CORE_FPGA3: | ||
262 | case MIPS_REVISION_CORID_CORE_24K: | ||
263 | case MIPS_REVISION_CORID_CORE_EMUL_MSC: | ||
264 | if (cpu_has_veic) | ||
265 | init_msc_irqs (MSC01E_INT_BASE, | ||
266 | msc_eicirqmap, msc_nr_eicirqs); | ||
267 | else | ||
268 | init_msc_irqs (MSC01C_INT_BASE, | ||
269 | msc_irqmap, msc_nr_irqs); | ||
270 | } | ||
271 | |||
272 | |||
273 | if (cpu_has_veic) { | ||
274 | set_vi_handler (MSC01E_INT_ATLAS, atlas_hw0_irqdispatch); | ||
275 | setup_irq (MSC01E_INT_BASE + MSC01E_INT_ATLAS, &atlasirq); | ||
276 | } else if (cpu_has_vint) { | ||
277 | set_vi_handler (MIPSCPU_INT_ATLAS, atlas_hw0_irqdispatch); | ||
278 | #ifdef CONFIG_MIPS_MT_SMTC | ||
279 | setup_irq_smtc (MIPSCPU_INT_BASE + MIPSCPU_INT_ATLAS, | ||
280 | &atlasirq, (0x100 << MIPSCPU_INT_ATLAS)); | ||
281 | #else /* Not SMTC */ | ||
282 | setup_irq(MIPSCPU_INT_BASE + MIPSCPU_INT_ATLAS, &atlasirq); | ||
283 | #endif /* CONFIG_MIPS_MT_SMTC */ | ||
284 | } else | ||
285 | setup_irq(MIPSCPU_INT_BASE + MIPSCPU_INT_ATLAS, &atlasirq); | ||
286 | } | ||
diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c index 9871a91fdb07..0c6b0ce15028 100644 --- a/arch/mips/mips-boards/atlas/atlas_setup.c +++ b/arch/mips/mips-boards/atlas/atlas_setup.c | |||
@@ -77,7 +77,7 @@ static void __init serial_init(void) | |||
77 | #else | 77 | #else |
78 | s.iobase = ATLAS_UART_REGS_BASE+3; | 78 | s.iobase = ATLAS_UART_REGS_BASE+3; |
79 | #endif | 79 | #endif |
80 | s.irq = ATLASINT_UART; | 80 | s.irq = ATLAS_INT_UART; |
81 | s.uartclk = ATLAS_BASE_BAUD * 16; | 81 | s.uartclk = ATLAS_BASE_BAUD * 16; |
82 | s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ; | 82 | s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ; |
83 | s.iotype = UPIO_PORT; | 83 | s.iotype = UPIO_PORT; |
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c index de5798e1e015..8d15861fce61 100644 --- a/arch/mips/mips-boards/generic/time.c +++ b/arch/mips/mips-boards/generic/time.c | |||
@@ -41,8 +41,13 @@ | |||
41 | 41 | ||
42 | #include <asm/mips-boards/generic.h> | 42 | #include <asm/mips-boards/generic.h> |
43 | #include <asm/mips-boards/prom.h> | 43 | #include <asm/mips-boards/prom.h> |
44 | |||
45 | #ifdef CONFIG_MIPS_ATLAS | ||
46 | #include <asm/mips-boards/atlasint.h> | ||
47 | #endif | ||
48 | #ifdef CONFIG_MIPS_MALTA | ||
44 | #include <asm/mips-boards/maltaint.h> | 49 | #include <asm/mips-boards/maltaint.h> |
45 | #include <asm/mc146818-time.h> | 50 | #endif |
46 | 51 | ||
47 | unsigned long cpu_khz; | 52 | unsigned long cpu_khz; |
48 | 53 | ||
diff --git a/arch/mips/pci/fixup-atlas.c b/arch/mips/pci/fixup-atlas.c index 439510af3037..c6cd6e9cdfbc 100644 --- a/arch/mips/pci/fixup-atlas.c +++ b/arch/mips/pci/fixup-atlas.c | |||
@@ -21,16 +21,16 @@ | |||
21 | 21 | ||
22 | #include <asm/mips-boards/atlasint.h> | 22 | #include <asm/mips-boards/atlasint.h> |
23 | 23 | ||
24 | #define PCIA ATLASINT_PCIA | 24 | #define PCIA ATLAS_INT_PCIA |
25 | #define PCIB ATLASINT_PCIB | 25 | #define PCIB ATLAS_INT_PCIB |
26 | #define PCIC ATLASINT_PCIC | 26 | #define PCIC ATLAS_INT_PCIC |
27 | #define PCID ATLASINT_PCID | 27 | #define PCID ATLAS_INT_PCID |
28 | #define INTA ATLASINT_INTA | 28 | #define INTA ATLAS_INT_INTA |
29 | #define INTB ATLASINT_INTB | 29 | #define INTB ATLAS_INT_INTB |
30 | #define ETH ATLASINT_ETH | 30 | #define ETH ATLAS_INT_ETH |
31 | #define INTC ATLASINT_INTC | 31 | #define INTC ATLAS_INT_INTC |
32 | #define SCSI ATLASINT_SCSI | 32 | #define SCSI ATLAS_INT_SCSI |
33 | #define INTD ATLASINT_INTD | 33 | #define INTD ATLAS_INT_INTD |
34 | 34 | ||
35 | static char irq_tab[][5] __initdata = { | 35 | static char irq_tab[][5] __initdata = { |
36 | /* INTA INTB INTC INTD */ | 36 | /* INTA INTB INTC INTD */ |
diff --git a/include/asm-mips/mach-atlas/mc146818rtc.h b/include/asm-mips/mach-atlas/mc146818rtc.h index fc09928571d6..a73a5698420c 100644 --- a/include/asm-mips/mach-atlas/mc146818rtc.h +++ b/include/asm-mips/mach-atlas/mc146818rtc.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #define RTC_PORT(x) (ATLAS_RTC_ADR_REG + (x) * 8) | 33 | #define RTC_PORT(x) (ATLAS_RTC_ADR_REG + (x) * 8) |
34 | #define RTC_IO_EXTENT 0x100 | 34 | #define RTC_IO_EXTENT 0x100 |
35 | #define RTC_IOMAPPED 0 | 35 | #define RTC_IOMAPPED 0 |
36 | #define RTC_IRQ ATLASINT_RTC | 36 | #define RTC_IRQ ATLAS_INT_RTC |
37 | 37 | ||
38 | static inline unsigned char CMOS_READ(unsigned long addr) | 38 | static inline unsigned char CMOS_READ(unsigned long addr) |
39 | { | 39 | { |
diff --git a/include/asm-mips/mips-boards/atlasint.h b/include/asm-mips/mips-boards/atlasint.h index fd7ebc54fa90..b15e4ea0b091 100644 --- a/include/asm-mips/mips-boards/atlasint.h +++ b/include/asm-mips/mips-boards/atlasint.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Carsten Langgaard, carstenl@mips.com | 2 | * Copyright (C) 1999, 2006 MIPS Technologies, Inc. All rights reserved. |
3 | * Copyright (C) 1999 MIPS Technologies, Inc. All rights reserved. | 3 | * Authors: Carsten Langgaard <carstenl@mips.com> |
4 | * Maciej W. Rozycki <macro@mips.com> | ||
4 | * | 5 | * |
5 | * ######################################################################## | 6 | * ######################################################################## |
6 | * | 7 | * |
@@ -25,41 +26,88 @@ | |||
25 | #ifndef _MIPS_ATLASINT_H | 26 | #ifndef _MIPS_ATLASINT_H |
26 | #define _MIPS_ATLASINT_H | 27 | #define _MIPS_ATLASINT_H |
27 | 28 | ||
28 | #define ATLASINT_BASE 1 | 29 | /* |
29 | #define ATLASINT_UART (ATLASINT_BASE+0) | 30 | * Interrupts 0..7 are used for Atlas CPU interrupts (nonEIC mode) |
30 | #define ATLASINT_TIM0 (ATLASINT_BASE+1) | 31 | */ |
31 | #define ATLASINT_RES2 (ATLASINT_BASE+2) | 32 | #define MIPSCPU_INT_BASE 0 |
32 | #define ATLASINT_RES3 (ATLASINT_BASE+3) | 33 | |
33 | #define ATLASINT_RTC (ATLASINT_BASE+4) | 34 | /* CPU interrupt offsets */ |
34 | #define ATLASINT_COREHI (ATLASINT_BASE+5) | 35 | #define MIPSCPU_INT_SW0 0 |
35 | #define ATLASINT_CORELO (ATLASINT_BASE+6) | 36 | #define MIPSCPU_INT_SW1 1 |
36 | #define ATLASINT_RES7 (ATLASINT_BASE+7) | 37 | #define MIPSCPU_INT_MB0 2 |
37 | #define ATLASINT_PCIA (ATLASINT_BASE+8) | 38 | #define MIPSCPU_INT_ATLAS MIPSCPU_INT_MB0 |
38 | #define ATLASINT_PCIB (ATLASINT_BASE+9) | 39 | #define MIPSCPU_INT_MB1 3 |
39 | #define ATLASINT_PCIC (ATLASINT_BASE+10) | 40 | #define MIPSCPU_INT_MB2 4 |
40 | #define ATLASINT_PCID (ATLASINT_BASE+11) | 41 | #define MIPSCPU_INT_MB3 5 |
41 | #define ATLASINT_ENUM (ATLASINT_BASE+12) | 42 | #define MIPSCPU_INT_MB4 6 |
42 | #define ATLASINT_DEG (ATLASINT_BASE+13) | 43 | #define MIPSCPU_INT_CPUCTR 7 |
43 | #define ATLASINT_ATXFAIL (ATLASINT_BASE+14) | 44 | |
44 | #define ATLASINT_INTA (ATLASINT_BASE+15) | 45 | /* |
45 | #define ATLASINT_INTB (ATLASINT_BASE+16) | 46 | * Interrupts 8..39 are used for Atlas interrupt controller interrupts |
46 | #define ATLASINT_ETH ATLASINT_INTB | 47 | */ |
47 | #define ATLASINT_INTC (ATLASINT_BASE+17) | 48 | #define ATLAS_INT_BASE 8 |
48 | #define ATLASINT_SCSI ATLASINT_INTC | 49 | #define ATLAS_INT_UART (ATLAS_INT_BASE + 0) |
49 | #define ATLASINT_INTD (ATLASINT_BASE+18) | 50 | #define ATLAS_INT_TIM0 (ATLAS_INT_BASE + 1) |
50 | #define ATLASINT_SERR (ATLASINT_BASE+19) | 51 | #define ATLAS_INT_RES2 (ATLAS_INT_BASE + 2) |
51 | #define ATLASINT_RES20 (ATLASINT_BASE+20) | 52 | #define ATLAS_INT_RES3 (ATLAS_INT_BASE + 3) |
52 | #define ATLASINT_RES21 (ATLASINT_BASE+21) | 53 | #define ATLAS_INT_RTC (ATLAS_INT_BASE + 4) |
53 | #define ATLASINT_RES22 (ATLASINT_BASE+22) | 54 | #define ATLAS_INT_COREHI (ATLAS_INT_BASE + 5) |
54 | #define ATLASINT_RES23 (ATLASINT_BASE+23) | 55 | #define ATLAS_INT_CORELO (ATLAS_INT_BASE + 6) |
55 | #define ATLASINT_RES24 (ATLASINT_BASE+24) | 56 | #define ATLAS_INT_RES7 (ATLAS_INT_BASE + 7) |
56 | #define ATLASINT_RES25 (ATLASINT_BASE+25) | 57 | #define ATLAS_INT_PCIA (ATLAS_INT_BASE + 8) |
57 | #define ATLASINT_RES26 (ATLASINT_BASE+26) | 58 | #define ATLAS_INT_PCIB (ATLAS_INT_BASE + 9) |
58 | #define ATLASINT_RES27 (ATLASINT_BASE+27) | 59 | #define ATLAS_INT_PCIC (ATLAS_INT_BASE + 10) |
59 | #define ATLASINT_RES28 (ATLASINT_BASE+28) | 60 | #define ATLAS_INT_PCID (ATLAS_INT_BASE + 11) |
60 | #define ATLASINT_RES29 (ATLASINT_BASE+29) | 61 | #define ATLAS_INT_ENUM (ATLAS_INT_BASE + 12) |
61 | #define ATLASINT_RES30 (ATLASINT_BASE+30) | 62 | #define ATLAS_INT_DEG (ATLAS_INT_BASE + 13) |
62 | #define ATLASINT_RES31 (ATLASINT_BASE+31) | 63 | #define ATLAS_INT_ATXFAIL (ATLAS_INT_BASE + 14) |
63 | #define ATLASINT_END (ATLASINT_BASE+31) | 64 | #define ATLAS_INT_INTA (ATLAS_INT_BASE + 15) |
65 | #define ATLAS_INT_INTB (ATLAS_INT_BASE + 16) | ||
66 | #define ATLAS_INT_ETH ATLAS_INT_INTB | ||
67 | #define ATLAS_INT_INTC (ATLAS_INT_BASE + 17) | ||
68 | #define ATLAS_INT_SCSI ATLAS_INT_INTC | ||
69 | #define ATLAS_INT_INTD (ATLAS_INT_BASE + 18) | ||
70 | #define ATLAS_INT_SERR (ATLAS_INT_BASE + 19) | ||
71 | #define ATLAS_INT_RES20 (ATLAS_INT_BASE + 20) | ||
72 | #define ATLAS_INT_RES21 (ATLAS_INT_BASE + 21) | ||
73 | #define ATLAS_INT_RES22 (ATLAS_INT_BASE + 22) | ||
74 | #define ATLAS_INT_RES23 (ATLAS_INT_BASE + 23) | ||
75 | #define ATLAS_INT_RES24 (ATLAS_INT_BASE + 24) | ||
76 | #define ATLAS_INT_RES25 (ATLAS_INT_BASE + 25) | ||
77 | #define ATLAS_INT_RES26 (ATLAS_INT_BASE + 26) | ||
78 | #define ATLAS_INT_RES27 (ATLAS_INT_BASE + 27) | ||
79 | #define ATLAS_INT_RES28 (ATLAS_INT_BASE + 28) | ||
80 | #define ATLAS_INT_RES29 (ATLAS_INT_BASE + 29) | ||
81 | #define ATLAS_INT_RES30 (ATLAS_INT_BASE + 30) | ||
82 | #define ATLAS_INT_RES31 (ATLAS_INT_BASE + 31) | ||
83 | #define ATLAS_INT_END (ATLAS_INT_BASE + 31) | ||
84 | |||
85 | /* | ||
86 | * Interrupts 64..127 are used for Soc-it Classic interrupts | ||
87 | */ | ||
88 | #define MSC01C_INT_BASE 64 | ||
89 | |||
90 | /* SOC-it Classic interrupt offsets */ | ||
91 | #define MSC01C_INT_TMR 0 | ||
92 | #define MSC01C_INT_PCI 1 | ||
93 | |||
94 | /* | ||
95 | * Interrupts 64..127 are used for Soc-it EIC interrupts | ||
96 | */ | ||
97 | #define MSC01E_INT_BASE 64 | ||
98 | |||
99 | /* SOC-it EIC interrupt offsets */ | ||
100 | #define MSC01E_INT_SW0 1 | ||
101 | #define MSC01E_INT_SW1 2 | ||
102 | #define MSC01E_INT_MB0 3 | ||
103 | #define MSC01E_INT_ATLAS MSC01E_INT_MB0 | ||
104 | #define MSC01E_INT_MB1 4 | ||
105 | #define MSC01E_INT_MB2 5 | ||
106 | #define MSC01E_INT_MB3 6 | ||
107 | #define MSC01E_INT_MB4 7 | ||
108 | #define MSC01E_INT_TMR 8 | ||
109 | #define MSC01E_INT_PCI 9 | ||
110 | #define MSC01E_INT_PERFCTR 10 | ||
111 | #define MSC01E_INT_CPUCTR 11 | ||
64 | 112 | ||
65 | #endif /* !(_MIPS_ATLASINT_H) */ | 113 | #endif /* !(_MIPS_ATLASINT_H) */ |