irq.h 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __ASM_ARM_IRQ_H
  2. #define __ASM_ARM_IRQ_H
  3. #include <asm/arch/irqs.h>
  4. #ifndef irq_canonicalize
  5. #define irq_canonicalize(i) (i)
  6. #endif
  7. #ifndef NR_IRQS
  8. #define NR_IRQS 128
  9. #endif
  10. /*
  11. * Use this value to indicate lack of interrupt
  12. * capability
  13. */
  14. #ifndef NO_IRQ
  15. #define NO_IRQ ((unsigned int)(-1))
  16. #endif
  17. /*
  18. * Migration helpers
  19. */
  20. #define __IRQT_FALEDGE IRQ_TYPE_EDGE_FALLING
  21. #define __IRQT_RISEDGE IRQ_TYPE_EDGE_RISING
  22. #define __IRQT_LOWLVL IRQ_TYPE_LEVEL_LOW
  23. #define __IRQT_HIGHLVL IRQ_TYPE_LEVEL_HIGH
  24. #define IRQT_NOEDGE (0)
  25. #define IRQT_RISING (__IRQT_RISEDGE)
  26. #define IRQT_FALLING (__IRQT_FALEDGE)
  27. #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
  28. #define IRQT_LOW (__IRQT_LOWLVL)
  29. #define IRQT_HIGH (__IRQT_HIGHLVL)
  30. #define IRQT_PROBE IRQ_TYPE_PROBE
  31. #ifndef __ASSEMBLY__
  32. struct irqaction;
  33. extern void migrate_irqs(void);
  34. #endif
  35. #endif