summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-05-08 12:58:36 +1000
committerPaul Mackerras <paulus@samba.org>2007-05-08 13:43:48 +1000
commita7de7c74227edda719b257eb15aecd73790ff894 (patch)
treec5168a047e3b55b220a869c678a9fefb76ffbdfc /include
parent812fd1fd63caf2d72906603ebb9c6049a19ef4d2 (diff)
downloadlinux-a7de7c74227edda719b257eb15aecd73790ff894.tar.gz
linux-a7de7c74227edda719b257eb15aecd73790ff894.tar.bz2
linux-a7de7c74227edda719b257eb15aecd73790ff894.zip
[POWERPC] MPIC MSI allocator
To support MSI on MPIC we need a way to reserve and allocate hardware irq numbers, this patch implements an allocator for that purpose. New firmware platforms must define a "msi-available-ranges" property on their MPIC node for MSI to work. For U3/U4 we do a best-guess setup. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/mpic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/mpic.h b/include/asm-powerpc/mpic.h
index 22c85c4f5b29..2ffb06abe881 100644
--- a/include/asm-powerpc/mpic.h
+++ b/include/asm-powerpc/mpic.h
@@ -301,6 +301,11 @@ struct mpic
u32 *hw_set;
#endif
+#ifdef CONFIG_PCI_MSI
+ spinlock_t bitmap_lock;
+ unsigned long *hwirq_bitmap;
+#endif
+
/* link */
struct mpic *next;