1 #ifndef __SHMOBILE_IRQS_H
2 #define __SHMOBILE_IRQS_H
4 #include <linux/sh_intc.h>
8 #define gic_spi(nr) ((nr) + 32)
9 #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
12 #define INTCS_VECT_BASE 0x3400
13 #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
14 #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
17 #define _GPIO_IRQ_BASE 2500
18 #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
19 #define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
21 #endif /* __SHMOBILE_IRQS_H */