Subversion Repositories Kolibri OS

Rev

Rev 5056 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5056 Rev 6082
1
#ifndef _LINUX_IRQRETURN_H
1
#ifndef _LINUX_IRQRETURN_H
2
#define _LINUX_IRQRETURN_H
2
#define _LINUX_IRQRETURN_H
3
 
3
 
4
/**
4
/**
5
 * enum irqreturn
5
 * enum irqreturn
6
 * @IRQ_NONE		interrupt was not from this device
6
 * @IRQ_NONE		interrupt was not from this device or was not handled
7
 * @IRQ_HANDLED		interrupt was handled by this device
7
 * @IRQ_HANDLED		interrupt was handled by this device
8
 * @IRQ_WAKE_THREAD	handler requests to wake the handler thread
8
 * @IRQ_WAKE_THREAD	handler requests to wake the handler thread
9
 */
9
 */
10
enum irqreturn {
10
enum irqreturn {
11
	IRQ_NONE		= (0 << 0),
11
	IRQ_NONE		= (0 << 0),
12
	IRQ_HANDLED		= (1 << 0),
12
	IRQ_HANDLED		= (1 << 0),
13
	IRQ_WAKE_THREAD		= (1 << 1),
13
	IRQ_WAKE_THREAD		= (1 << 1),
14
};
14
};
15
 
15
 
16
typedef enum irqreturn irqreturn_t;
16
typedef enum irqreturn irqreturn_t;
17
#define IRQ_RETVAL(x)	((x) ? IRQ_HANDLED : IRQ_NONE)
17
#define IRQ_RETVAL(x)	((x) ? IRQ_HANDLED : IRQ_NONE)
18
 
18
 
19
#endif
19
#endif