From: Alex B. <ker...@be...> - 2003-06-13 12:58:26
|
Is it worth actually pushing on with this and adding it to the tree? The current hack in arch/sh/kernel/pci_st40.c has been there for a while and the machvec approach makes things a lot cleaner? alex@cambridge linuxsh-2.4.new]$ cvs diff -u include/asm-sh/machvec.h Index: include/asm-sh/machvec.h =================================================================== RCS file: /cvsroot/linuxsh/linux/include/asm-sh/machvec.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 machvec.h --- include/asm-sh/machvec.h 15 Oct 2001 20:45:10 -0000 1.1.1.1 +++ include/asm-sh/machvec.h 13 Jun 2003 12:54:12 -0000 @@ -14,6 +14,7 @@ #include <linux/types.h> struct timeval; +struct pci_dev; /* To make compiler happy */ struct sh_machine_vector { @@ -59,7 +60,9 @@ void (*mv_init_arch)(void); void (*mv_init_irq)(void); void (*mv_init_pci)(void); - void (*mv_kill_arch)(int); + int (*mv_map_pci_irq)(struct pci_dev *dev, u8 slot, u8 pin); + + void (*mv_kill_arch)(int); void (*mv_heartbeat)(void); -- Alex, homepage: http://www.bennee.com/~alex/ "Life begins when you can spend your spare time programming instead of watching television." -- Cal Keegan |