Lines Matching full:irq
3 * Dummy IRQ handler driver.
6 * by the 'irq' parameter.
9 * which spurious IRQs would happen on disabled IRQ vector.
15 #include <linux/irq.h>
18 static int irq = -1; variable
20 static irqreturn_t dummy_interrupt(int irq, void *dev_id) in dummy_interrupt() argument
25 printk(KERN_INFO "dummy-irq: interrupt occurred on IRQ %d\n", in dummy_interrupt()
26 irq); in dummy_interrupt()
35 if (irq < 0) { in dummy_irq_init()
36 printk(KERN_ERR "dummy-irq: no IRQ given. Use irq=N\n"); in dummy_irq_init()
39 if (request_irq(irq, &dummy_interrupt, IRQF_SHARED, "dummy_irq", &irq)) { in dummy_irq_init()
40 printk(KERN_ERR "dummy-irq: cannot register IRQ %d\n", irq); in dummy_irq_init()
43 printk(KERN_INFO "dummy-irq: registered for IRQ %d\n", irq); in dummy_irq_init()
49 printk(KERN_INFO "dummy-irq unloaded\n"); in dummy_irq_exit()
50 free_irq(irq, &irq); in dummy_irq_exit()
58 module_param_hw(irq, uint, irq, 0444);
59 MODULE_PARM_DESC(irq, "The IRQ to register for");
60 MODULE_DESCRIPTION("Dummy IRQ handler driver");