History

irqdomain: Export remaining public API symbols.

modules making use of irq domains at the very least need access to the add/remove/lookup routines, though there's nothing preventing them from using the remainder of the public API, either. The current set of exports seem primarily geared at DT-enabled platforms using DT-backed IRQ domains, where many of the API accesses are hidden away in OF code. The non-DT cases need to do most of this on their own.

Paul Mundt committed 14 years ago

Commit ecd84eb1 parent 58ee99a1 file · +10 −0Browse files

Unified · Split

kernel/irq/irqdomain.c+10−0
@@ -122,6 +122,7 @@ void irq_domain_remove(struct irq_domain *domain) · 121 unmodified lines
122122
123123 irq_domain_free(domain);
124124 }
125+EXPORT_SYMBOL_GPL(irq_domain_remove);
125126
126127 static unsigned int irq_domain_legacy_revmap(struct irq_domain *domain,
127128 irq_hw_number_t hwirq)
@@ -209,6 +210,7 @@ struct irq_domain *irq_domain_add_legacy(struct device_node *of_node, · 81 unmodified lines
209210 irq_domain_add(domain);
210211 return domain;
211212 }
213+EXPORT_SYMBOL_GPL(irq_domain_add_legacy);
212214
213215 /**
214216 * irq_domain_add_linear() - Allocate and register a legacy revmap irq_domain.
@@ -238,6 +240,7 @@ struct irq_domain *irq_domain_add_linear(struct device_node *of_node, · 23 unmodified lines
238240 irq_domain_add(domain);
239241 return domain;
240242 }
243+EXPORT_SYMBOL_GPL(irq_domain_add_linear);
241244
242245 struct irq_domain *irq_domain_add_nomap(struct device_node *of_node,
243246 unsigned int max_irq,
@@ -252,6 +255,7 @@ struct irq_domain *irq_domain_add_nomap(struct device_node *of_node, · 8 unmodified lines
252255 }
253256 return domain;
254257 }
258+EXPORT_SYMBOL_GPL(irq_domain_add_nomap);
255259
256260 /**
257261 * irq_domain_add_tree()
@@ -273,6 +277,7 @@ struct irq_domain *irq_domain_add_tree(struct device_node *of_node, · 15 unmodified lines
273277 }
274278 return domain;
275279 }
280+EXPORT_SYMBOL_GPL(irq_domain_add_tree);
276281
277282 /**
278283 * irq_find_host() - Locates a domain for a given device node
@@ -320,6 +325,7 @@ void irq_set_default_host(struct irq_domain *domain) · 41 unmodified lines
320325
321326 irq_default_domain = domain;
322327 }
328+EXPORT_SYMBOL_GPL(irq_set_default_host);
323329
324330 static int irq_setup_virq(struct irq_domain *domain, unsigned int virq,
325331 irq_hw_number_t hwirq)
@@ -378,6 +384,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *domain) · 52 unmodified lines
378384
379385 return virq;
380386 }
387+EXPORT_SYMBOL_GPL(irq_create_direct_mapping);
381388
382389 /**
383390 * irq_create_mapping() - Map a hardware interrupt into linux irq space
@@ -617,6 +624,7 @@ unsigned int irq_radix_revmap_lookup(struct irq_domain *domain, · 233 unmodified lines
617624 */
618625 return irq_data ? irq_data->irq : irq_find_mapping(domain, hwirq);
619626 }
627+EXPORT_SYMBOL_GPL(irq_radix_revmap_lookup);
620628
621629 /**
622630 * irq_radix_revmap_insert() - Insert a hw irq to linux irq number mapping.
@@ -641,6 +649,7 @@ void irq_radix_revmap_insert(struct irq_domain *domain, unsigned int virq, · 18 unmodified lines
641649 mutex_unlock(&revmap_trees_mutex);
642650 }
643651 }
652+EXPORT_SYMBOL_GPL(irq_radix_revmap_insert);
644653
645654 /**
646655 * irq_linear_revmap() - Find a linux irq from a hw irq number.
@@ -674,6 +683,7 @@ unsigned int irq_linear_revmap(struct irq_domain *domain, · 27 unmodified lines
674683
675684 return revmap[hwirq];
676685 }
686+EXPORT_SYMBOL_GPL(irq_linear_revmap);
677687
678688 #ifdef CONFIG_IRQ_DOMAIN_DEBUG
679689 static int virq_debug_show(struct seq_file *m, void *private)