msi: Make MSI useable more architectures
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 28 Jan 2007 19:56:37 +0000 (12:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:50:08 +0000 (15:50 -0800)
commitf7feaca77d6ad6bcfcc88ac54e3188970448d6fe
tree3002076ed2b6ab497b3b90232ff11b08de2eca5d
parent5b912c108c8b1fcecbfe13d6d9a183db97b682d3
msi: Make MSI useable more architectures

The arch hooks arch_setup_msi_irq and arch_teardown_msi_irq are now
responsible for allocating and freeing the linux irq in addition to
setting up the the linux irq to work with the interrupt.

arch_setup_msi_irq now takes a pci_device and a msi_desc and returns
an irq.

With this change in place this code should be useable by all platforms
except those that won't let the OS touch the hardware like ppc RTAS.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/kernel/io_apic.c
arch/ia64/kernel/msi_ia64.c
arch/ia64/sn/kernel/msi_sn.c
arch/x86_64/kernel/io_apic.c
drivers/pci/msi.c
include/asm-ia64/machvec.h
include/linux/msi.h