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