irq.h 516 B

123456789101112131415161718192021222324252627
  1. #ifndef _H8300_IRQ_H_
  2. #define _H8300_IRQ_H_
  3. #include <linux/irqchip.h>
  4. #if defined(CONFIG_CPU_H8300H)
  5. #define NR_IRQS 64
  6. #define IRQ_CHIP h8300h_irq_chip
  7. #define EXT_IRQ0 12
  8. #define EXT_IRQS 6
  9. #elif defined(CONFIG_CPU_H8S)
  10. #define NR_IRQS 128
  11. #define IRQ_CHIP h8s_irq_chip
  12. #define EXT_IRQ0 16
  13. #define EXT_IRQS 16
  14. #endif
  15. static inline int irq_canonicalize(int irq)
  16. {
  17. return irq;
  18. }
  19. void h8300_init_ipr(void);
  20. extern struct irq_chip h8300h_irq_chip;
  21. extern struct irq_chip h8s_irq_chip;
  22. #endif /* _H8300_IRQ_H_ */