Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
[sfrench/cifs-2.6.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         512
5
6 /* INTCA */
7 #define evt2irq(evt)            (((evt) >> 5) - 16)
8 #define irq2evt(irq)            (((irq) + 16) << 5)
9
10 /* INTCS */
11 #define INTCS_VECT_BASE         0x2200
12 #define INTCS_VECT(n, vect)     INTC_VECT((n), INTCS_VECT_BASE + (vect))
13 #define intcs_evt2irq(evt)      evt2irq(INTCS_VECT_BASE + (evt))
14
15 #endif /* __ASM_MACH_IRQS_H */