irqreturn.h 432 B

12345678910111213141516171819
  1. #ifndef _LINUX_IRQRETURN_H
  2. #define _LINUX_IRQRETURN_H
  3. /**
  4. * enum irqreturn
  5. * @IRQ_NONE interrupt was not from this device
  6. * @IRQ_HANDLED interrupt was handled by this device
  7. * @IRQ_WAKE_THREAD handler requests to wake the handler thread
  8. */
  9. enum irqreturn {
  10. IRQ_NONE = (0 << 0),
  11. IRQ_HANDLED = (1 << 0),
  12. IRQ_WAKE_THREAD = (1 << 1),
  13. };
  14. typedef enum irqreturn irqreturn_t;
  15. #define IRQ_RETVAL(x) ((x) != IRQ_NONE)
  16. #endif