irq.h 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 disable_irq_nosync(i) disable_irq(i)
  20. extern void disable_irq(unsigned int);
  21. extern void enable_irq(unsigned int);
  22. #define __IRQT_FALEDGE (1 << 0)
  23. #define __IRQT_RISEDGE (1 << 1)
  24. #define __IRQT_LOWLVL (1 << 2)
  25. #define __IRQT_HIGHLVL (1 << 3)
  26. #define IRQT_NOEDGE (0)
  27. #define IRQT_RISING (__IRQT_RISEDGE)
  28. #define IRQT_FALLING (__IRQT_FALEDGE)
  29. #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
  30. #define IRQT_LOW (__IRQT_LOWLVL)
  31. #define IRQT_HIGH (__IRQT_HIGHLVL)
  32. #define IRQT_PROBE (1 << 4)
  33. int set_irq_type(unsigned int irq, unsigned int type);
  34. #endif