Tulip Driver WORKS Now!

From: Evan Langlois (evanlanglois@yahoo.com)
Date: Wed Apr 26 2000 - 04:56:18 EST


Someone posted a very small patch for the tulip PNIC-II drivers awhile
back (wish I could remember who and give them credit) and as of pre-5 its
not in the kernel, and I wanted to let you guys know that I tested this
(finally) and it has fixed my problem!! Regular pre5 was the same
behavior as previous versions, the patch below works GREAT.

Tulip-diag stats are below, and its 100Mbps full duplex which is what my
switch says it should be, dunno why it says autonegotiation disabled, but
it is talking to my NeXT (can't measure speed since the NeXT is only 10Mb
- the switch converts).

The patch didn't patch cleanly, so here's a new one. Really hope this
gets in to 2.4 cause I've been waiting for this fix forever - means I get
to install 3.3 on my NeXT this weekend (or try, not tried netbooting a
UDF CDROM across a network - my NeXT has no CDROM). I'd post the patch
for making the fb console work on the NeXT monitor at boot-up, but I
think their should be a way to specify timings on the kernel command line
or some other solution than hacking the kernel for every monitor.

I'm SOOO happy.
--------------------------- 8< ---------------------------------------
diff -ur linux/drivers/net/tulip/21142.c
linux-2.3.99-5/drivers/net/tulip/21142.c
--- linux/drivers/net/tulip/21142.c Tue Mar 21 14:39:17 2000
+++ linux-2.3.99-5/drivers/net/tulip/21142.c Wed Apr 26 03:29:42 2000
@@ -108,7 +108,10 @@
                           dev->name, csr14);
        outl(0x0001, ioaddr + CSR13);
        outl(csr14, ioaddr + CSR14);
- tp->csr6 = 0x82420000 | (tp->to_advertise & 0x0040 ? 0x0200 : 0);
+ if (tp->chip_id == PNIC2)
+ tp->csr6 = 0x01a80000 | (tp->to_advertise & 0x0040 ? 0x0200 :
0);
+ else
+ tp->csr6 = 0x82420000 | (tp->to_advertise & 0x0040 ? 0x0200 :
0);
        tulip_outl_CSR6(tp, tp->csr6);
        if (tp->mtable && tp->mtable->csr15dir) {
                outl(tp->mtable->csr15dir, ioaddr + CSR15);
----------------------------------------------------------------------
from tulip-diag:

tulip-diag.c:v1.19 10/2/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Lite-On PNIC-II adapter at 0xe000.
 Port selection is 100mbps-SYM/PCS 100baseTx scrambler, full-duplex.
 Transmit started, Receive started, full-duplex.
  The Rx process state is 'Waiting for packets'.
  The Tx process state is 'Idle'.
  The transmit threshold is 128.
  The NWay status register is 000000cc.
 The current PNIC-II MAC address is 00:a0:cc:e2:f8:bd (a000a000
e2ccbdf8).
 The current PNIC-II WOL address is 00:a0:cc:e2:f8:bd.
  Internal autonegotiation state is 'Autonegotiation disabled'.

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

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



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:11 EST