diff options
Diffstat (limited to 'include/linux/irqdesc.h')
-rw-r--r-- | include/linux/irqdesc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index cb1a31e448ae..faf433af425e 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h | |||
@@ -12,6 +12,8 @@ struct irq_affinity_notify; | |||
12 | struct proc_dir_entry; | 12 | struct proc_dir_entry; |
13 | struct module; | 13 | struct module; |
14 | struct irq_desc; | 14 | struct irq_desc; |
15 | struct irq_domain; | ||
16 | struct pt_regs; | ||
15 | 17 | ||
16 | /** | 18 | /** |
17 | * struct irq_desc - interrupt descriptor | 19 | * struct irq_desc - interrupt descriptor |
@@ -128,6 +130,23 @@ static inline void generic_handle_irq_desc(unsigned int irq, struct irq_desc *de | |||
128 | 130 | ||
129 | int generic_handle_irq(unsigned int irq); | 131 | int generic_handle_irq(unsigned int irq); |
130 | 132 | ||
133 | #ifdef CONFIG_HANDLE_DOMAIN_IRQ | ||
134 | /* | ||
135 | * Convert a HW interrupt number to a logical one using a IRQ domain, | ||
136 | * and handle the result interrupt number. Return -EINVAL if | ||
137 | * conversion failed. Providing a NULL domain indicates that the | ||
138 | * conversion has already been done. | ||
139 | */ | ||
140 | int __handle_domain_irq(struct irq_domain *domain, unsigned int hwirq, | ||
141 | bool lookup, struct pt_regs *regs); | ||
142 | |||
143 | static inline int handle_domain_irq(struct irq_domain *domain, | ||
144 | unsigned int hwirq, struct pt_regs *regs) | ||
145 | { | ||
146 | return __handle_domain_irq(domain, hwirq, true, regs); | ||
147 | } | ||
148 | #endif | ||
149 | |||
131 | /* Test to see if a driver has successfully requested an irq */ | 150 | /* Test to see if a driver has successfully requested an irq */ |
132 | static inline int irq_has_action(unsigned int irq) | 151 | static inline int irq_has_action(unsigned int irq) |
133 | { | 152 | { |