xref: /openbmc/linux/include/linux/irqreturn.h (revision f2756526)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2908dcecdSJan Beulich #ifndef _LINUX_IRQRETURN_H
3908dcecdSJan Beulich #define _LINUX_IRQRETURN_H
4908dcecdSJan Beulich 
5bedd30d9SThomas Gleixner /**
6*f2756526SRandy Dunlap  * enum irqreturn - irqreturn type values
7*f2756526SRandy Dunlap  * @IRQ_NONE:		interrupt was not from this device or was not handled
8*f2756526SRandy Dunlap  * @IRQ_HANDLED:	interrupt was handled by this device
9*f2756526SRandy Dunlap  * @IRQ_WAKE_THREAD:	handler requests to wake the handler thread
10908dcecdSJan Beulich  */
11bedd30d9SThomas Gleixner enum irqreturn {
123a43e05fSSebastian Andrzej Siewior 	IRQ_NONE		= (0 << 0),
133a43e05fSSebastian Andrzej Siewior 	IRQ_HANDLED		= (1 << 0),
143a43e05fSSebastian Andrzej Siewior 	IRQ_WAKE_THREAD		= (1 << 1),
15bedd30d9SThomas Gleixner };
16908dcecdSJan Beulich 
17bedd30d9SThomas Gleixner typedef enum irqreturn irqreturn_t;
186bab2c61SGeert Uytterhoeven #define IRQ_RETVAL(x)	((x) ? IRQ_HANDLED : IRQ_NONE)
19908dcecdSJan Beulich 
20908dcecdSJan Beulich #endif
21