From: Pete P. <pp...@us...> - 2001-11-22 01:19:27
|
Update of /cvsroot/linux-mips/linux/arch/mips/ite-boards/ivr In directory usw-pr-cvs1:/tmp/cvs-serv1360/arch/mips/ite-boards/ivr Modified Files: pci_fixup.c Log Message: ITE8172 and Globespan IVR boards: * added support for new time.c and irq.c; bonnie++ passes consistently over nfs and hard drive. * added Globespan IVR default config file * updated IDE and Sound drivers Index: pci_fixup.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/ite-boards/ivr/pci_fixup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- pci_fixup.c 2001/11/06 20:23:53 1.4 +++ pci_fixup.c 2001/11/22 01:19:24 1.5 @@ -74,13 +74,14 @@ switch (slot) { case 0x01: /* - * Internal device 1 is actually 7 different internal - * devices on the IT8172G (a multi-function device). + * Internal device 1 is actually 7 different + * internal devices on the IT8172G (multi-function + * device). */ if (func < 7) dev->irq = internal_func_irqs[func]; break; - case 0x11: + case 0x11: // Realtek RTL-8139 switch (pin) { case 0: /* pin A, hardware bug */ case 1: /* pin A */ @@ -101,7 +102,28 @@ } break; - case 0x13: + case 0x12: // ivr slot + switch (pin) { + case 0: /* pin A, hardware bug */ + case 1: /* pin A */ + dev->irq = IT8172_PCI_INTB_IRQ; + break; + case 2: /* pin B */ + dev->irq = IT8172_PCI_INTB_IRQ; + break; + case 3: /* pin C */ + dev->irq = IT8172_PCI_INTC_IRQ; + break; + case 4: /* pin D */ + dev->irq = IT8172_PCI_INTD_IRQ; + break; + default: + dev->irq = 0xff; + break; + + } + break; + case 0x13: // expansion slot switch (pin) { case 0: /* pin A, hardware bug */ case 1: /* pin A */ @@ -123,7 +145,7 @@ } break; default: - return; + break; } #ifdef DEBUG printk("irq fixup: slot %d, int line %d, int number %d\n", |