irqs.h 561 B

123456789101112131415161718192021
  1. #ifndef __SHMOBILE_IRQS_H
  2. #define __SHMOBILE_IRQS_H
  3. #include <linux/sh_intc.h>
  4. #include <mach/irqs.h>
  5. /* GIC */
  6. #define gic_spi(nr) ((nr) + 32)
  7. #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
  8. /* INTCS */
  9. #define INTCS_VECT_BASE 0x3400
  10. #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
  11. #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
  12. /* GPIO IRQ */
  13. #define _GPIO_IRQ_BASE 2500
  14. #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
  15. #define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
  16. #endif /* __SHMOBILE_IRQS_H */