Merge branch 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / arm / mach-shmobile / include / mach / irqs.h
1 #ifndef __ASM_MACH_IRQS_H
2 #define __ASM_MACH_IRQS_H
3
4 #define NR_IRQS         1024
5
6 /* GIC */
7 #define gic_spi(nr)             ((nr) + 32)
8
9 /* INTCA */
10 #define evt2irq(evt)            (((evt) >> 5) - 16)
11 #define irq2evt(irq)            (((irq) + 16) << 5)
12
13 /* INTCS */
14 #define INTCS_VECT_BASE         0x2200
15 #define INTCS_VECT(n, vect)     INTC_VECT((n), INTCS_VECT_BASE + (vect))
16 #define intcs_evt2irq(evt)      evt2irq(INTCS_VECT_BASE + (evt))
17
18 #endif /* __ASM_MACH_IRQS_H */