diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-05-08 12:58:36 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-08 13:43:48 +1000 |
commit | a7de7c74227edda719b257eb15aecd73790ff894 (patch) | |
tree | c5168a047e3b55b220a869c678a9fefb76ffbdfc /include | |
parent | 812fd1fd63caf2d72906603ebb9c6049a19ef4d2 (diff) | |
download | op-kernel-dev-a7de7c74227edda719b257eb15aecd73790ff894.zip op-kernel-dev-a7de7c74227edda719b257eb15aecd73790ff894.tar.gz |
[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 22c85c4..2ffb06a 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; |