irq.h 641 B

123456789101112131415161718192021222324252627282930
  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 <asm/platform/hardware.h>
  13. #include <asm/variant/core.h>
  14. #ifndef PLATFORM_NR_IRQS
  15. # define PLATFORM_NR_IRQS 0
  16. #endif
  17. #define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS
  18. #define NR_IRQS (XTENSA_NR_IRQS + PLATFORM_NR_IRQS)
  19. static __inline__ int irq_canonicalize(int irq)
  20. {
  21. return (irq);
  22. }
  23. struct irqaction;
  24. #endif /* _XTENSA_IRQ_H */