1/* irqreturn.h */
2#ifndef _LINUX_IRQRETURN_H
3#define _LINUX_IRQRETURN_H
4
5/*
6 * For 2.4.x compatibility, 2.4.x can use
7 *
8 *	typedef void irqreturn_t;
9 *	#define IRQ_NONE
10 *	#define IRQ_HANDLED
11 *	#define IRQ_RETVAL(x)
12 *
13 * To mix old-style and new-style irq handler returns.
14 *
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)
18 */
19typedef int irqreturn_t;
20
21#define IRQ_NONE	(0)
22#define IRQ_HANDLED	(1)
23#define IRQ_RETVAL(x)	((x) != 0)
24
25#endif
26