Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix evmips CI20 build



details:   https://anonhg.NetBSD.org/src/rev/ddb1eafdabc8
branches:  trunk
changeset: 1008741:ddb1eafdabc8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Apr 02 07:26:45 2020 +0000

description:
Fix evmips CI20 build

diffstat:

 sys/dev/ic/dm9000.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 6b668075f853 -r ddb1eafdabc8 sys/dev/ic/dm9000.c
--- a/sys/dev/ic/dm9000.c       Thu Apr 02 05:55:02 2020 +0000
+++ b/sys/dev/ic/dm9000.c       Thu Apr 02 07:26:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dm9000.c,v 1.26 2020/03/31 07:50:42 nisimura Exp $     */
+/*     $NetBSD: dm9000.c,v 1.27 2020/04/02 07:26:45 skrll Exp $        */
 
 /*
  * Copyright (c) 2009 Paul Fleischer
@@ -477,14 +477,13 @@
 {
        struct dme_softc *sc = ifp->if_softc;
        struct mii_data *mii = &sc->sc_mii;
-       uint8_t nsr, fcr, ncr;
-       const uint8_t Mbps[2] = { 10, 100 };
-       int spd;
+       uint8_t fcr, ncr;
 
-       nsr = dme_read(sc, DM9000_NSR);
-       spd = Mbps[!!(nsr & DM9000_NSR_SPEED)];
+#if 0
+       const uint8_t Mbps[2] = { 10, 100 };
+       uint8_t nsr = dme_read(sc, DM9000_NSR);
+       int spd = Mbps[!!(nsr & DM9000_NSR_SPEED)];
        /* speed/duplexity available also in reg 0x11 of internal PHY */
-#if 0
        if (nsr & DM9000_NSR_LINKST)
                printf("link up,spd%d", spd);
        else



Home | Main Index | Thread Index | Old Index