1
2
3
4
5
6
7
8#include <linux/interrupt.h>
9#include <linux/irq.h>
10#include <linux/export.h>
11
12#include "internals.h"
13
14
15
16
17
18static void ack_bad(struct irq_data *data)
19{
20 struct irq_desc *desc = irq_data_to_desc(data);
21
22 print_irq_desc(data->irq, desc);
23 ack_bad_irq(data->irq);
24}
25
26
27
28
29static void noop(struct irq_data *data) { }
30
31static unsigned int noop_ret(struct irq_data *data)
32{
33 return 0;
34}
35
36
37
38
39struct irq_chip no_irq_chip = {
40 .name = "none",
41 .irq_startup = noop_ret,
42 .irq_shutdown = noop,
43 .irq_enable = noop,
44 .irq_disable = noop,
45 .irq_ack = ack_bad,
46 .flags = IRQCHIP_SKIP_SET_WAKE,
47};
48
49
50
51
52
53struct irq_chip dummy_irq_chip = {
54 .name = "dummy",
55 .irq_startup = noop_ret,
56 .irq_shutdown = noop,
57 .irq_enable = noop,
58 .irq_disable = noop,
59 .irq_ack = noop,
60 .irq_mask = noop,
61 .irq_unmask = noop,
62 .flags = IRQCHIP_SKIP_SET_WAKE,
63};
64EXPORT_SYMBOL_GPL(dummy_irq_chip);
65