irqreturn.h 586 B

12345678910111213141516171819202122232425
  1. /* irqreturn.h */
  2. #ifndef _LINUX_IRQRETURN_H
  3. #define _LINUX_IRQRETURN_H
  4. /*
  5. * For 2.4.x compatibility, 2.4.x can use
  6. *
  7. * typedef void irqreturn_t;
  8. * #define IRQ_NONE
  9. * #define IRQ_HANDLED
  10. * #define IRQ_RETVAL(x)
  11. *
  12. * To mix old-style and new-style irq handler returns.
  13. *
  14. * IRQ_NONE means we didn't handle it.
  15. * IRQ_HANDLED means that we did have a valid interrupt and handled it.
  16. * IRQ_RETVAL(x) selects on the two depending on x being non-zero (for handled)
  17. */
  18. typedef int irqreturn_t;
  19. #define IRQ_NONE (0)
  20. #define IRQ_HANDLED (1)
  21. #define IRQ_RETVAL(x) ((x) != 0)
  22. #endif