1 #ifndef _LWK_INTERRUPT_H
2 #define _LWK_INTERRUPT_H
5 * IRQ handler return type.
7 * IRQ_NONE means we didn't handle the interrupt.
8 * IRQ_HANDLED means we did handle the interrupt.
9 * IRQ_RETVAL(x) returns IRQ_HANDLED if x is non-zero, IRQ_NONE otherwise.
11 typedef int irqreturn_t;
13 #define IRQ_HANDLED (1)
14 #define IRQ_RETVAL ((x) != 0)
17 * IRQ handler prototype.
19 typedef irqreturn_t (*irq_handler_t)(unsigned int irq, void *dev_id);
22 * Registers an interrupt handler.
24 extern int request_irq(unsigned int irq,
25 irq_handler_t handler,
26 unsigned long irqflags,
31 * Unregisters an interrupt handler.
33 extern void free_irq(unsigned int irq, void *dev_id);