]> err.no Git - linux-2.6/commit
[POWERPC] MPIC MSI allocator
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 8 May 2007 02:58:36 +0000 (12:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 8 May 2007 03:43:48 +0000 (13:43 +1000)
commita7de7c74227edda719b257eb15aecd73790ff894
treec5168a047e3b55b220a869c678a9fefb76ffbdfc
parent812fd1fd63caf2d72906603ebb9c6049a19ef4d2
[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>
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/mpic.c
arch/powerpc/sysdev/mpic.h [new file with mode: 0644]
arch/powerpc/sysdev/mpic_msi.c [new file with mode: 0644]
include/asm-powerpc/mpic.h