mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bruce Lowekamp <lowekamp@CS.WM.EDU>
To: linux-kernel@vger.kernel.org
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: Re: [PATCH] fix for pdc20265 for 2.4.19 on
Date: Tue, 08 Oct 2002 16:46:58 -0400	[thread overview]
Message-ID: <23290000.1034110018@chorus.cs.wm.edu> (raw)
In-Reply-To: <21460000.1034108893@chorus.cs.wm.edu>



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) {


  reply	other threads:[~2002-10-08 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 20:28 Bruce Lowekamp
2002-10-08 20:46 ` Bruce Lowekamp [this message]
2002-10-10 19:56   ` [PATCH] fix for pdc20265 FIXED BY 2.4.20-pre10-ac1 Bruce Lowekamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23290000.1034110018@chorus.cs.wm.edu \
    --to=lowekamp@cs.wm.edu \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®