lkml.org 
[lkml]   [2001]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[PATCH] tulip driver
From
Hi,

Attached you will find a patch to the tulip driver in Linux 2.4. This patch
will interpret a bit more of 21142 extended format type 3 info blocks in a
tulip SROM. This allows correct autonegotation of the builtin 21143 based
ethernet adapter on a digital PWS500a(u). Maybe a future version should do
a more thorough interpretation of the SROM.

Peter.


diff -rc linux.orig/drivers/net/tulip/eeprom.c linux/drivers/net/tulip/eeprom.c
*** linux.orig/drivers/net/tulip/eeprom.c Sat Dec 30 20:23:14 2000
--- linux/drivers/net/tulip/eeprom.c Fri Jan 5 19:02:36 2001
***************
*** 207,214 ****
--- 207,219 ----
p += (p[0] & 0x3f) + 1;
continue;
} else if (p[1] & 1) {
+ int gpr_len, reset_len;
+
mtable->has_mii = 1;
leaf->media = 11;
+ gpr_len=p[3]*2;
+ reset_len=p[4+gpr_len]*2;
+ new_advertise |= get_u16(&p[7+gpr_len+reset_len]);
} else {
mtable->has_nonmii = 1;
leaf->media = p[2] & 0x0f;
\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.142 / U:7.032 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site