Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 1 | #ifndef __ASM_MACH_IRQS_H |
| 2 | #define __ASM_MACH_IRQS_H |
| 3 | |
| 4 | #define NR_IRQS 512 |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 5 | |
Magnus Damm | ff9170a | 2010-03-11 05:30:30 +0000 | [diff] [blame] | 6 | /* INTCA */ |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 7 | #define evt2irq(evt) (((evt) >> 5) - 16) |
| 8 | #define irq2evt(irq) (((irq) + 16) << 5) |
| 9 | |
Magnus Damm | ff9170a | 2010-03-11 05:30:30 +0000 | [diff] [blame] | 10 | /* INTCS */ |
Magnus Damm | 9b7c23a | 2010-05-19 10:29:47 +0000 | [diff] [blame] | 11 | #define INTCS_VECT_BASE 0x2200 |
Magnus Damm | ff9170a | 2010-03-11 05:30:30 +0000 | [diff] [blame] | 12 | #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) |
| 13 | #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) |
| 14 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 15 | #endif /* __ASM_MACH_IRQS_H */ |