This source file includes following definitions.
- chained_irq_enter
- chained_irq_exit
1
2
3
4
5
6
7 #ifndef __IRQCHIP_CHAINED_IRQ_H
8 #define __IRQCHIP_CHAINED_IRQ_H
9
10 #include <linux/irq.h>
11
12
13
14
15
16 static inline void chained_irq_enter(struct irq_chip *chip,
17 struct irq_desc *desc)
18 {
19
20 if (chip->irq_eoi)
21 return;
22
23 if (chip->irq_mask_ack) {
24 chip->irq_mask_ack(&desc->irq_data);
25 } else {
26 chip->irq_mask(&desc->irq_data);
27 if (chip->irq_ack)
28 chip->irq_ack(&desc->irq_data);
29 }
30 }
31
32 static inline void chained_irq_exit(struct irq_chip *chip,
33 struct irq_desc *desc)
34 {
35 if (chip->irq_eoi)
36 chip->irq_eoi(&desc->irq_data);
37 else
38 chip->irq_unmask(&desc->irq_data);
39 }
40
41 #endif