]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/irqreturn.h
mod_devicetable: fix PHY module format
[mirror_ubuntu-bionic-kernel.git] / include / linux / irqreturn.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
908dcecd
JB
2#ifndef _LINUX_IRQRETURN_H
3#define _LINUX_IRQRETURN_H
4
bedd30d9
TG
5/**
6 * enum irqreturn
d9e4ad5b 7 * @IRQ_NONE interrupt was not from this device or was not handled
bedd30d9 8 * @IRQ_HANDLED interrupt was handled by this device
3aa551c9 9 * @IRQ_WAKE_THREAD handler requests to wake the handler thread
908dcecd 10 */
bedd30d9 11enum irqreturn {
3a43e05f
SAS
12 IRQ_NONE = (0 << 0),
13 IRQ_HANDLED = (1 << 0),
14 IRQ_WAKE_THREAD = (1 << 1),
bedd30d9 15};
908dcecd 16
bedd30d9 17typedef enum irqreturn irqreturn_t;
6bab2c61 18#define IRQ_RETVAL(x) ((x) ? IRQ_HANDLED : IRQ_NONE)
908dcecd
JB
19
20#endif