irq.h 831 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. struct irqaction;
  18. /*
  19. * Migration helpers
  20. */
  21. #define __IRQT_FALEDGE IRQ_TYPE_EDGE_FALLING
  22. #define __IRQT_RISEDGE IRQ_TYPE_EDGE_RISING
  23. #define __IRQT_LOWLVL IRQ_TYPE_LEVEL_LOW
  24. #define __IRQT_HIGHLVL IRQ_TYPE_LEVEL_HIGH
  25. #define IRQT_NOEDGE (0)
  26. #define IRQT_RISING (__IRQT_RISEDGE)
  27. #define IRQT_FALLING (__IRQT_FALEDGE)
  28. #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
  29. #define IRQT_LOW (__IRQT_LOWLVL)
  30. #define IRQT_HIGH (__IRQT_HIGHLVL)
  31. #define IRQT_PROBE IRQ_TYPE_PROBE
  32. extern void migrate_irqs(void);
  33. #endif