Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Check in cats specific tweak to make older de ca...



details:   https://anonhg.NetBSD.org/src/rev/d3eea282c988
branches:  trunk
changeset: 583436:d3eea282c988
user:      chris <chris%NetBSD.org@localhost>
date:      Sat Aug 06 23:40:39 2005 +0000

description:
Check in cats specific tweak to make older de cards work as tlp devices.

With this tweak I've completed a full install from NFS of 3.99.7, using a
card the previously didn't work as a tlp device.

diffstat:

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

diffs (36 lines):

diff -r 75622841b09c -r d3eea282c988 sys/dev/mii/mii_bitbang.c
--- a/sys/dev/mii/mii_bitbang.c Sat Aug 06 22:25:32 2005 +0000
+++ b/sys/dev/mii/mii_bitbang.c Sat Aug 06 23:40:39 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_bitbang.c,v 1.6 2004/08/23 06:18:39 thorpej Exp $  */
+/*     $NetBSD: mii_bitbang.c,v 1.7 2005/08/06 23:40:39 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.6 2004/08/23 06:18:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_bitbang.c,v 1.7 2005/08/06 23:40:39 chris Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -75,6 +75,17 @@
        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.
+        */
+       v = MDIRPHY;
+       WRITE(v);
+       /* clock in the change in direction */
+       WRITE(v | MDC);
+#endif
+       /* send 32bits of 1 */
        v = MDIRPHY | MDO;
 
        WRITE(v);



Home | Main Index | Thread Index | Old Index