irqs.h 631 B

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