irq.h 823 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __ASM_ARM_IRQ_H
  2. #define __ASM_ARM_IRQ_H
  3. #include <asm/sysirq.h>
  4. #ifndef NR_IRQS
  5. #define NR_IRQS 128
  6. #endif
  7. /* JMA 18.05.02 Copied off arch/arm/irq.h */
  8. #ifndef irq_canonicalize
  9. #define irq_canonicalize(i) (i)
  10. #endif
  11. /*
  12. * Use this value to indicate lack of interrupt
  13. * capability
  14. */
  15. #ifndef NO_IRQ
  16. #define NO_IRQ ((unsigned int)(-1))
  17. #endif
  18. struct irqaction;
  19. #define __IRQT_FALEDGE (1 << 0)
  20. #define __IRQT_RISEDGE (1 << 1)
  21. #define __IRQT_LOWLVL (1 << 2)
  22. #define __IRQT_HIGHLVL (1 << 3)
  23. #define IRQT_NOEDGE (0)
  24. #define IRQT_RISING (__IRQT_RISEDGE)
  25. #define IRQT_FALLING (__IRQT_FALEDGE)
  26. #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
  27. #define IRQT_LOW (__IRQT_LOWLVL)
  28. #define IRQT_HIGH (__IRQT_HIGHLVL)
  29. #define IRQT_PROBE (1 << 4)
  30. int set_irq_type(unsigned int irq, unsigned int type);
  31. #endif