irq.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * include/asm-xtensa/irq.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_IRQ_H
  11. #define _XTENSA_IRQ_H
  12. #include <linux/init.h>
  13. #include <asm/core.h>
  14. #ifdef CONFIG_PLATFORM_NR_IRQS
  15. # define PLATFORM_NR_IRQS CONFIG_PLATFORM_NR_IRQS
  16. #else
  17. # define PLATFORM_NR_IRQS 0
  18. #endif
  19. #define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS
  20. #define NR_IRQS (XTENSA_NR_IRQS + PLATFORM_NR_IRQS + 1)
  21. #define XTENSA_PIC_LINUX_IRQ(hwirq) ((hwirq) + 1)
  22. static __inline__ int irq_canonicalize(int irq)
  23. {
  24. return (irq);
  25. }
  26. struct irqaction;
  27. struct irq_domain;
  28. void migrate_irqs(void);
  29. int xtensa_irq_domain_xlate(const u32 *intspec, unsigned int intsize,
  30. unsigned long int_irq, unsigned long ext_irq,
  31. unsigned long *out_hwirq, unsigned int *out_type);
  32. int xtensa_irq_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw);
  33. unsigned xtensa_map_ext_irq(unsigned ext_irq);
  34. unsigned xtensa_get_ext_irq_no(unsigned irq);
  35. #endif /* _XTENSA_IRQ_H */