irq.h 826 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <platform/hardware.h>
  13. #include <variant/core.h>
  14. #ifdef CONFIG_VARIANT_IRQ_SWITCH
  15. #include <variant/irq.h>
  16. #else
  17. static inline void variant_irq_enable(unsigned int irq) { }
  18. static inline void variant_irq_disable(unsigned int irq) { }
  19. #endif
  20. #ifndef PLATFORM_NR_IRQS
  21. # define PLATFORM_NR_IRQS 0
  22. #endif
  23. #define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS
  24. #define NR_IRQS (XTENSA_NR_IRQS + PLATFORM_NR_IRQS)
  25. static __inline__ int irq_canonicalize(int irq)
  26. {
  27. return (irq);
  28. }
  29. struct irqaction;
  30. #endif /* _XTENSA_IRQ_H */