powerpc/book-3e: Introduce concept of Book-3e MMU
[linux-ginger.git] / include / linux / irqreturn.h
blob881883c2009dfe0b2100697d9bc15ed2d344765f
1 /* irqreturn.h */
2 #ifndef _LINUX_IRQRETURN_H
3 #define _LINUX_IRQRETURN_H
5 /*
6 * For 2.4.x compatibility, 2.4.x can use
8 * typedef void irqreturn_t;
9 * #define IRQ_NONE
10 * #define IRQ_HANDLED
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;
21 #define IRQ_NONE (0)
22 #define IRQ_HANDLED (1)
23 #define IRQ_RETVAL(x) ((x) != 0)
25 #endif