diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-05-07 22:58:36 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:43:48 -0400 |
commit | a7de7c74227edda719b257eb15aecd73790ff894 (patch) | |
tree | c5168a047e3b55b220a869c678a9fefb76ffbdfc /include | |
parent | 812fd1fd63caf2d72906603ebb9c6049a19ef4d2 (diff) |
[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.h | 5 |
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 | |||
301 | u32 *hw_set; | 301 | u32 *hw_set; |
302 | #endif | 302 | #endif |
303 | 303 | ||
304 | #ifdef CONFIG_PCI_MSI | ||
305 | spinlock_t bitmap_lock; | ||
306 | unsigned long *hwirq_bitmap; | ||
307 | #endif | ||
308 | |||
304 | /* link */ | 309 | /* link */ |
305 | struct mpic *next; | 310 | struct mpic *next; |
306 | 311 | ||