irq.h 815 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 <linux/config.h>
  13. #include <asm/platform/hardware.h>
  14. #include <xtensa/config/core.h>
  15. #ifndef PLATFORM_NR_IRQS
  16. # define PLATFORM_NR_IRQS 0
  17. #endif
  18. #define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS
  19. #define NR_IRQS (XTENSA_NR_IRQS + PLATFORM_NR_IRQS)
  20. static __inline__ int irq_canonicalize(int irq)
  21. {
  22. return (irq);
  23. }
  24. struct irqaction;
  25. #if 0 // FIXME
  26. extern void disable_irq_nosync(unsigned int);
  27. extern void disable_irq(unsigned int);
  28. extern void enable_irq(unsigned int);
  29. #endif
  30. #endif /* _XTENSA_IRQ_H */