[PATCH] Initial generic hypertransport interrupt support
This patch implements two functions ht_create_irq and ht_destroy_irq for use by drivers. Several other functions are implemented as helpers for arch specific irq_chip handlers. The driver for the card I tested this on isn't yet ready to be merged. However this code is and hypertransport irqs are in use in a few other places in the kernel. Not that any of this will get merged before 2.6.19 Because the ipath-ht400 is slightly out of spec this code will need to be generalized to work there. I think all of the powerpc uses are for a plain interrupt controller in a chipset so support for native hypertransport devices is a little less interesting. However I think this is a half way decent model on how to separate arch specific and generic helper code, and I think this is a functional model of how to get the architecture dependencies out of the msi code. [akpm@osdl.org: Kconfig fix] Signed-off-by:Eric W. Biederman <ebiederm@xmission.com> Cc: Greg KH <greg@kroah.com> Cc: Andi Kleen <ak@muc.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- arch/i386/kernel/io_apic.c 90 additions, 0 deletionsarch/i386/kernel/io_apic.c
- arch/x86_64/kernel/io_apic.c 96 additions, 0 deletionsarch/x86_64/kernel/io_apic.c
- drivers/pci/Kconfig 9 additions, 0 deletionsdrivers/pci/Kconfig
- drivers/pci/Makefile 1 addition, 0 deletionsdrivers/pci/Makefile
- drivers/pci/htirq.c 189 additions, 0 deletionsdrivers/pci/htirq.c
- include/asm-i386/hypertransport.h 42 additions, 0 deletionsinclude/asm-i386/hypertransport.h
- include/asm-x86_64/hypertransport.h 42 additions, 0 deletionsinclude/asm-x86_64/hypertransport.h
- include/linux/pci.h 17 additions, 0 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment