Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii Following feedback from thorpej, remove the #ifd...



details:   https://anonhg.NetBSD.org/src/rev/61cfe98ee95e
branches:  trunk
changeset: 583469:61cfe98ee95e
user:      chris <chris%NetBSD.org@localhost>
date:      Sun Aug 07 17:47:22 2005 +0000

description:
Following feedback from thorpej, remove the #ifdef cats block, and update
comment.

All platforms will now send a change in direction, then the 32 MDO bits
when synchronising with the phy.  Rather than sending the change in
direction with the first MDO bit.

diffstat:

 sys/dev/mii/mii_bitbang.c |  15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diffs (39 lines):

diff -r 15cbc4987980 -r 61cfe98ee95e sys/dev/mii/mii_bitbang.c
--- a/sys/dev/mii/mii_bitbang.c Sun Aug 07 17:10:36 2005 +0000
+++ b/sys/dev/mii/mii_bitbang.c Sun Aug 07 17:47:22 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_bitbang.c,v 1.7 2005/08/06 23:40:39 chris Exp $    */
+/*     $NetBSD: mii_bitbang.c,v 1.8 2005/08/07 17:47:22 chris Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_bitbang.c,v 1.7 2005/08/06 23:40:39 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_bitbang.c,v 1.8 2005/08/07 17:47:22 chris Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -75,17 +75,12 @@
        int i;
        u_int32_t v;
 
-#ifdef cats
-       /* 
-        * XXX: for some reason older de cards need this extra clocking to
-        * work as a tlp device.
-        */
+       /* First clock out the change in direction */
        v = MDIRPHY;
        WRITE(v);
-       /* clock in the change in direction */
        WRITE(v | MDC);
-#endif
-       /* send 32bits of 1 */
+
+       /* send 32bits of 1 to synchronize the MII */
        v = MDIRPHY | MDO;
 
        WRITE(v);



Home | Main Index | Thread Index | Old Index