summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2014-09-14 09:53:54 +0200
committerJason Cooper <jason@lakedaemon.net>2014-09-14 09:53:54 +0200
commit468a903c0e5147e3f93187f0b808a3ef957fd00e (patch)
tree63542d05b1c0f730ec1ad5f915dc4eb3c015e616 /include
parentMerge branch 'irqchip/gic' into irqchip/core (diff)
parentopenrisc: Get rid of handle_IRQ (diff)
downloadlinux-468a903c0e5147e3f93187f0b808a3ef957fd00e.tar.xz
linux-468a903c0e5147e3f93187f0b808a3ef957fd00e.zip
Merge branch 'irqchip/handle_domain' into irqchip/core
Diffstat (limited to 'include')
-rw-r--r--include/linux/irqdesc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h
index 472c021a2d4f..ff24667cd86c 100644
--- a/include/linux/irqdesc.h
+++ b/include/linux/irqdesc.h
@@ -12,6 +12,8 @@ struct irq_affinity_notify;
struct proc_dir_entry;
struct module;
struct irq_desc;
+struct irq_domain;
+struct pt_regs;
/**
* struct irq_desc - interrupt descriptor
@@ -118,6 +120,23 @@ static inline void generic_handle_irq_desc(unsigned int irq, struct irq_desc *de
int generic_handle_irq(unsigned int irq);
+#ifdef CONFIG_HANDLE_DOMAIN_IRQ
+/*
+ * Convert a HW interrupt number to a logical one using a IRQ domain,
+ * and handle the result interrupt number. Return -EINVAL if
+ * conversion failed. Providing a NULL domain indicates that the
+ * conversion has already been done.
+ */
+int __handle_domain_irq(struct irq_domain *domain, unsigned int hwirq,
+ bool lookup, struct pt_regs *regs);
+
+static inline int handle_domain_irq(struct irq_domain *domain,
+ unsigned int hwirq, struct pt_regs *regs)
+{
+ return __handle_domain_irq(domain, hwirq, true, regs);
+}
+#endif
+
/* Test to see if a driver has successfully requested an irq */
static inline int irq_has_action(unsigned int irq)
{