irq.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. int setup_irq(unsigned int, struct irqaction *);
  35. struct pt_regs;
  36. int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
  37. #endif