diff options
Diffstat (limited to 'arch/powerpc/include/asm/irq.h')
-rw-r--r-- | arch/powerpc/include/asm/irq.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h index a372f76836c2..0a5137676e1b 100644 --- a/arch/powerpc/include/asm/irq.h +++ b/arch/powerpc/include/asm/irq.h | |||
@@ -236,15 +236,27 @@ extern unsigned int irq_find_mapping(struct irq_host *host, | |||
236 | extern unsigned int irq_create_direct_mapping(struct irq_host *host); | 236 | extern unsigned int irq_create_direct_mapping(struct irq_host *host); |
237 | 237 | ||
238 | /** | 238 | /** |
239 | * irq_radix_revmap - Find a linux virq from a hw irq number. | 239 | * irq_radix_revmap_insert - Insert a hw irq to linux virq number mapping. |
240 | * @host: host owning this hardware interrupt | ||
241 | * @virq: linux irq number | ||
242 | * @hwirq: hardware irq number in that host space | ||
243 | * | ||
244 | * This is for use by irq controllers that use a radix tree reverse | ||
245 | * mapping for fast lookup. | ||
246 | */ | ||
247 | extern void irq_radix_revmap_insert(struct irq_host *host, unsigned int virq, | ||
248 | irq_hw_number_t hwirq); | ||
249 | |||
250 | /** | ||
251 | * irq_radix_revmap_lookup - Find a linux virq from a hw irq number. | ||
240 | * @host: host owning this hardware interrupt | 252 | * @host: host owning this hardware interrupt |
241 | * @hwirq: hardware irq number in that host space | 253 | * @hwirq: hardware irq number in that host space |
242 | * | 254 | * |
243 | * This is a fast path, for use by irq controller code that uses radix tree | 255 | * This is a fast path, for use by irq controller code that uses radix tree |
244 | * revmaps | 256 | * revmaps |
245 | */ | 257 | */ |
246 | extern unsigned int irq_radix_revmap(struct irq_host *host, | 258 | extern unsigned int irq_radix_revmap_lookup(struct irq_host *host, |
247 | irq_hw_number_t hwirq); | 259 | irq_hw_number_t hwirq); |
248 | 260 | ||
249 | /** | 261 | /** |
250 | * irq_linear_revmap - Find a linux virq from a hw irq number. | 262 | * irq_linear_revmap - Find a linux virq from a hw irq number. |