mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 15:46:09 +07:00
genirq: generic chip: Export irq_map_generic_chip function
Export the generic irq map function in order to provide irq_domain ops with generic mapping and specific of xlate function (needed by the new atmel AIC driver). Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/1405012462-766-2-git-send-email-boris.brezillon@free-electrons.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
This commit is contained in:
parent
7171511eae
commit
a5152c8a12
@ -771,6 +771,8 @@ void irq_gc_eoi(struct irq_data *d);
|
|||||||
int irq_gc_set_wake(struct irq_data *d, unsigned int on);
|
int irq_gc_set_wake(struct irq_data *d, unsigned int on);
|
||||||
|
|
||||||
/* Setup functions for irq_chip_generic */
|
/* Setup functions for irq_chip_generic */
|
||||||
|
int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
|
||||||
|
irq_hw_number_t hw_irq);
|
||||||
struct irq_chip_generic *
|
struct irq_chip_generic *
|
||||||
irq_alloc_generic_chip(const char *name, int nr_ct, unsigned int irq_base,
|
irq_alloc_generic_chip(const char *name, int nr_ct, unsigned int irq_base,
|
||||||
void __iomem *reg_base, irq_flow_handler_t handler);
|
void __iomem *reg_base, irq_flow_handler_t handler);
|
||||||
|
@ -341,8 +341,8 @@ static struct lock_class_key irq_nested_lock_class;
|
|||||||
/*
|
/*
|
||||||
* irq_map_generic_chip - Map a generic chip for an irq domain
|
* irq_map_generic_chip - Map a generic chip for an irq domain
|
||||||
*/
|
*/
|
||||||
static int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
|
int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
|
||||||
irq_hw_number_t hw_irq)
|
irq_hw_number_t hw_irq)
|
||||||
{
|
{
|
||||||
struct irq_data *data = irq_get_irq_data(virq);
|
struct irq_data *data = irq_get_irq_data(virq);
|
||||||
struct irq_domain_chip_generic *dgc = d->gc;
|
struct irq_domain_chip_generic *dgc = d->gc;
|
||||||
@ -394,6 +394,7 @@ static int irq_map_generic_chip(struct irq_domain *d, unsigned int virq,
|
|||||||
irq_modify_status(virq, dgc->irq_flags_to_clear, dgc->irq_flags_to_set);
|
irq_modify_status(virq, dgc->irq_flags_to_clear, dgc->irq_flags_to_set);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(irq_map_generic_chip);
|
||||||
|
|
||||||
struct irq_domain_ops irq_generic_chip_ops = {
|
struct irq_domain_ops irq_generic_chip_ops = {
|
||||||
.map = irq_map_generic_chip,
|
.map = irq_map_generic_chip,
|
||||||
|
Loading…
Reference in New Issue
Block a user