blob: 819acaaac3f5877bc4802bbbc928a5c21686fde2 [file] [log] [blame]
Jan Beulich908dcec2006-06-23 02:06:00 -07001#ifndef _LINUX_IRQRETURN_H
2#define _LINUX_IRQRETURN_H
3
Thomas Gleixnerbedd30d2008-09-30 23:14:27 +02004/**
5 * enum irqreturn
6 * @IRQ_NONE interrupt was not from this device
7 * @IRQ_HANDLED interrupt was handled by this device
Thomas Gleixner3aa551c2009-03-23 18:28:15 +01008 * @IRQ_WAKE_THREAD handler requests to wake the handler thread
Jan Beulich908dcec2006-06-23 02:06:00 -07009 */
Thomas Gleixnerbedd30d2008-09-30 23:14:27 +020010enum irqreturn {
11 IRQ_NONE,
12 IRQ_HANDLED,
Thomas Gleixner3aa551c2009-03-23 18:28:15 +010013 IRQ_WAKE_THREAD,
Thomas Gleixnerbedd30d2008-09-30 23:14:27 +020014};
Jan Beulich908dcec2006-06-23 02:06:00 -070015
Thomas Gleixnerbedd30d2008-09-30 23:14:27 +020016typedef enum irqreturn irqreturn_t;
17#define IRQ_RETVAL(x) ((x) != IRQ_NONE)
Jan Beulich908dcec2006-06-23 02:06:00 -070018
19#endif