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