Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Revision 2..5 == RTL8211B...F
details: https://anonhg.NetBSD.org/src/rev/1664c59c123a
branches: trunk
changeset: 449084:1664c59c123a
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Feb 21 15:41:56 2019 +0000
description:
Revision 2..5 == RTL8211B...F
diffstat:
sys/dev/mii/rgephy.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 2d1db9a57e78 -r 1664c59c123a sys/dev/mii/rgephy.c
--- a/sys/dev/mii/rgephy.c Thu Feb 21 14:56:23 2019 +0000
+++ b/sys/dev/mii/rgephy.c Thu Feb 21 15:41:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rgephy.c,v 1.46 2019/01/22 03:42:27 msaitoh Exp $ */
+/* $NetBSD: rgephy.c,v 1.47 2019/02/21 15:41:56 msaitoh Exp $ */
/*
* Copyright (c) 2003
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.46 2019/01/22 03:42:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.47 2019/02/21 15:41:56 msaitoh Exp $");
/*
@@ -125,7 +125,6 @@
rev = MII_REV(ma->mii_id2);
mpd = mii_phy_match(ma, rgephys);
aprint_naive(": Media interface\n");
- aprint_normal(": %s, rev. %d\n", mpd->mpd_name, rev);
sc->mii_dev = self;
sc->mii_inst = mii->mii_instance;
@@ -133,6 +132,15 @@
sc->mii_mpd_oui = MII_OUI(ma->mii_id1, ma->mii_id2);
sc->mii_mpd_model = MII_MODEL(ma->mii_id2);
sc->mii_mpd_rev = MII_REV(ma->mii_id2);
+
+ if (sc->mii_mpd_model == MII_MODEL_REALTEK_RTL8169S) {
+ aprint_normal(": RTL8211");
+ if (sc->mii_mpd_rev != 0)
+ aprint_normal("%c",'@' + sc->mii_mpd_rev);
+ aprint_normal(" 1000BASE-T media interface\n");
+ } else
+ aprint_normal(": %s, rev. %d\n", mpd->mpd_name, rev);
+
sc->mii_pdata = mii;
sc->mii_flags = ma->mii_flags;
sc->mii_anegticks = MII_ANEGTICKS_GIGE;
Home |
Main Index |
Thread Index |
Old Index