Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / irqreturn.h
blobd426c7ad92bfdeb2c9df104f1c055ee684f84f81
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_IRQRETURN_H
3 #define _LINUX_IRQRETURN_H
5 /**
6 * enum irqreturn - irqreturn type values
7 * @IRQ_NONE: interrupt was not from this device or was not handled
8 * @IRQ_HANDLED: interrupt was handled by this device
9 * @IRQ_WAKE_THREAD: handler requests to wake the handler thread
11 enum irqreturn {
12 IRQ_NONE = (0 << 0),
13 IRQ_HANDLED = (1 << 0),
14 IRQ_WAKE_THREAD = (1 << 1),
17 typedef enum irqreturn irqreturn_t;
18 #define IRQ_RETVAL(x) ((x) ? IRQ_HANDLED : IRQ_NONE)
20 #endif