patch-2.4.4 linux/drivers/net/tulip/timer.c
Next file: linux/drivers/net/tulip/tulip.h
Previous file: linux/drivers/net/tulip/pnic.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
Tue Apr 3 10:19:43 2001
- Orig file:
v2.4.3/linux/drivers/net/tulip/timer.c
- Orig date:
Tue Feb 13 13:15:05 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/net/tulip/timer.c linux/drivers/net/tulip/timer.c
@@ -2,14 +2,15 @@
drivers/net/tulip/timer.c
Maintained by Jeff Garzik <jgarzik@mandrakesoft.com>
- Copyright 2000 The Linux Kernel Team
- Written/copyright 1994-1999 by Donald Becker.
+ Copyright 2000,2001 The Linux Kernel Team
+ Written/copyright 1994-2001 by Donald Becker.
This software may be used and distributed according to the terms
of the GNU General Public License, incorporated herein by reference.
- Please refer to Documentation/networking/tulip.txt for more
- information on this driver.
+ Please refer to Documentation/DocBook/tulip.{pdf,ps,html}
+ for more information on this driver, or visit the project
+ Web page at http://sourceforge.net/projects/tulip/
*/
@@ -133,13 +134,13 @@
((csr12 & (1 << ((bitnum >> 1) & 7))) != 0)) {
if (tulip_debug > 2)
printk(KERN_DEBUG "%s: Link beat detected for %s.\n", dev->name,
- medianame[mleaf->media]);
+ medianame[mleaf->media & MEDIA_MASK]);
if ((p[2] & 0x61) == 0x01) /* Bogus Znyx board. */
goto actually_mii;
- netif_carrier_on(dev);
+ /* netif_carrier_on(dev); */
break;
}
- netif_carrier_off(dev);
+ /* netif_carrier_off(dev); */
if (tp->medialock)
break;
select_next_media:
@@ -152,9 +153,9 @@
goto select_next_media; /* Skip FD entries. */
if (tulip_debug > 1)
printk(KERN_DEBUG "%s: No link beat on media %s,"
- " trying transceiver type %s.\n",
- dev->name, medianame[mleaf->media & 15],
- medianame[tp->mtable->mleaf[tp->cur_index].media]);
+ " trying transceiver type %s.\n",
+ dev->name, medianame[mleaf->media & MEDIA_MASK],
+ medianame[tp->mtable->mleaf[tp->cur_index].media]);
tulip_select_media(dev, 0);
/* Restart the transmit process. */
tulip_restart_rxtx(tp, tp->csr6);
@@ -164,9 +165,9 @@
case 1: case 3: /* 21140, 21142 MII */
actually_mii:
if (tulip_check_duplex(dev) < 0)
- netif_carrier_off(dev);
+ { /* netif_carrier_off(dev); */ }
else
- netif_carrier_on(dev);
+ { /* netif_carrier_on(dev); */ }
next_tick = 60*HZ;
break;
case 2: /* 21142 serial block has no link beat. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)