Re: [PATCH] fix for pdc20265 for 2.4.19 on

From: Bruce Lowekamp (lowekamp@CS.WM.EDU)
Date: Tue Oct 08 2002 - 15:46:58 EST


I made a mistake when producing the two different patches. Here is a
replacement for the first patch that has all of the parameters it should.

this version does:

PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
*PDC20265: interface bases at 0xb400 & 0xa800
    ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xa008-0xa00f, BIOS settings: hdg:pio, hdh:pio

diff -u linux-2.4.20-pre9/drivers/ide/ide-pci.c.orig
linux-2.4.20-pre9/drivers/ide/ide-pci.c
--- linux-2.4.20-pre9/drivers/ide/ide-pci.c.orig Mon Oct 7 21:41:54
2002+++ linux-2.4.20-pre9/drivers/ide/ide-pci.c Tue Oct 8 16:44:59 2002
@@ -405,7 +405,7 @@
 #ifndef CONFIG_PDC202XX_FORCE
         {DEVID_PDC20246,"PDC20246", PCI_PDC202XX, NULL, INIT_PDC202XX,
        NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD,
16 },
         {DEVID_PDC20262,"PDC20262", PCI_PDC202XX, ATA66_PDC202XX,
        INIT_PDC202XX, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD,
48 },
- {DEVID_PDC20265,"PDC20265", PCI_PDC202XX, ATA66_PDC202XX,
        INIT_PDC202XX, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, ON_BOARD,
48 },
+ {DEVID_PDC20265,"PDC20265", PCI_PDC202XX, ATA66_PDC202XX,
        INIT_PDC202XX, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD,
48 },
         {DEVID_PDC20267,"PDC20267", PCI_PDC202XX, ATA66_PDC202XX,
        INIT_PDC202XX, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD,
48 },
 #else /* !CONFIG_PDC202XX_FORCE */
         {DEVID_PDC20246,"PDC20246", PCI_PDC202XX, NULL, INIT_PDC202XX, NULL,
        {{0x50,0x02,0x02}, {0x50,0x04,0x04}}, OFF_BOARD,
16 },
@@ -744,6 +744,10 @@
                                 continue;
 #endif
                         }
+ if(port==0)
+ printk("%s: first interface base=0x%04lx, second interface
base=0x%04lx\n",
+ d->name, dev->resource[2*0].start,
+ dev->resource[2*1].start);
                 }
                 if ((ctl && !base) || (base && !ctl)) {
                         printk("%s: inconsistent baseregs (BIOS) for port %d, skipping\n",
d->name, port);
@@ -751,8 +755,11 @@
                 }
                 if (!ctl)
                         ctl = port ? 0x374 : 0x3f4; /* use default value */
- if (!base)
+ if (!base){
                         base = port ? 0x170 : 0x1f0; /* use default value */
+ if(port==0)
+ printk("%s: default first interface base=0x01f0, second interface
base=0x170\n", d->name);
+ }
                 if ((hwif = ide_match_hwif(base, d->bootable, d->name)) == NULL)
        continue; /* no room in ide_hwifs[] */
                 if (hwif->io_ports[IDE_DATA_OFFSET] != base) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:27 EST