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