12 #include <linux/bitmap.h>
16 #include <asm/hw_irq.h>
25 if (!mpic->msi_bitmap.bitmap)
31 #ifdef CONFIG_MPIC_U3_HT_IRQS
32 static int mpic_msi_reserve_u3_hwirqs(
struct mpic *mpic)
40 pr_debug(
"mpic: found U3, guessing msi allocator setup\n");
48 for (i = 0; i < 8; i++)
51 for (i = 42; i < 46; i++)
54 for (i = 100; i < 105; i++)
57 for (i = 124; i < mpic->num_sources; i++)
67 ops->
xlate(mpic->irqhost,
NULL, oirq.specifier,
68 oirq.size, &hwirq, &flags);
76 static int mpic_msi_reserve_u3_hwirqs(
struct mpic *mpic)
87 mpic->irqhost->of_node);
93 if (mpic->flags & MPIC_U3_HT_IRQS)
94 rc = mpic_msi_reserve_u3_hwirqs(mpic);