summaryrefslogtreecommitdiffstats
path: root/include/linux/irqdomain.h
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2019-02-07 21:16:22 -0500
committerLinus Walleij <linus.walleij@linaro.org>2019-02-13 03:22:05 -0500
commitb5c231d8c8037f63d34199ea1667bbe1cd9f940f (patch)
treec73972b330070d8f07b626888b1baccfa80d0d25 /include/linux/irqdomain.h
parent86291029e97eaf6a9c2ed43e7968ba8cf9f9f3b7 (diff)
genirq: introduce irq_domain_translate_twocell
Add a new function irq_domain_translate_twocell() that is to be used as the translate function in struct irq_domain_ops for the v2 IRQ API. This patch also changes irq_domain_xlate_twocell() from the v1 IRQ API to call irq_domain_translate_twocell() in the v2 IRQ API. This required changes to of_phandle_args_to_fwspec()'s arguments so that it can be called from multiple places. Cc: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/irqdomain.h')
-rw-r--r--include/linux/irqdomain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 35965f41d7be..fcefe0c7263f 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -419,6 +419,11 @@ int irq_domain_xlate_onetwocell(struct irq_domain *d, struct device_node *ctrlr,
419 const u32 *intspec, unsigned int intsize, 419 const u32 *intspec, unsigned int intsize,
420 irq_hw_number_t *out_hwirq, unsigned int *out_type); 420 irq_hw_number_t *out_hwirq, unsigned int *out_type);
421 421
422int irq_domain_translate_twocell(struct irq_domain *d,
423 struct irq_fwspec *fwspec,
424 unsigned long *out_hwirq,
425 unsigned int *out_type);
426
422/* IPI functions */ 427/* IPI functions */
423int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest); 428int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest);
424int irq_destroy_ipi(unsigned int irq, const struct cpumask *dest); 429int irq_destroy_ipi(unsigned int irq, const struct cpumask *dest);