more 2.0.31 patches

Jon Lewis (jlewis@inorganic5.fdt.net)
Thu, 14 Aug 1997 02:01:28 -0400 (EDT)


I forgot about this one for 3c509 from Donald Becker that I've been using.

Also, I noticed the Buslogic SCSI driver has been updated, but the
ncr53c8xx driver has not. The ncr53c8xx driver has gone through many
updates since the version in pre-patch-2.0.31-5, and I believe is required
to support some of the newer/better 8xx chips. The latest one should be
at ftp://linux.wauug.org/pub/roudier

--- linux/drivers/net/3c509.c Wed Aug 13 22:16:21 1997
+++ linux-pre/drivers/net/3c509.c Thu Jul 10 15:59:01 1997
@@ -279,8 +279,10 @@
memcpy(dev->dev_addr, phys_addr, sizeof(phys_addr));
dev->base_addr = ioaddr;
dev->irq = irq;
- dev->if_port = if_port;
-
+ if (dev->mem_start)
+ dev->if_port = dev->mem_start & 3;
+ else
+ dev->if_port = if_port;
request_region(dev->base_addr, EL3_IO_EXTENT, "3c509");

{
@@ -692,8 +694,9 @@
printk("%s: Couldn't allocate a sk_buff of size %d.\n",
dev->name, pkt_len);
}
- lp->stats.rx_dropped++;
outw(RxDiscard, ioaddr + EL3_CMD);
+ lp->stats.rx_dropped++;
+ SLOW_DOWN_IO;
while (inw(ioaddr + EL3_STATUS) & 0x1000)
printk(" Waiting for 3c509 to discard packet, status %x.\n",
inw(ioaddr + EL3_STATUS) );

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/message.
Florida Digital Turnpike |
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____