Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Set mii_mpd_{oui,model,rev}.



details:   https://anonhg.NetBSD.org/src/rev/0f24566d88ca
branches:  trunk
changeset: 348684:0f24566d88ca
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Nov 02 10:11:32 2016 +0000

description:
Set mii_mpd_{oui,model,rev}.

diffstat:

 sys/dev/mii/atphy.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 55a7c437d842 -r 0f24566d88ca sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c       Wed Nov 02 07:01:54 2016 +0000
+++ b/sys/dev/mii/atphy.c       Wed Nov 02 10:11:32 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atphy.c,v 1.17 2015/09/08 10:16:53 msaitoh Exp $ */
+/*     $NetBSD: atphy.c,v 1.18 2016/11/02 10:11:32 msaitoh Exp $ */
 /*     $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $  */
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.17 2015/09/08 10:16:53 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.18 2016/11/02 10:11:32 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -146,6 +146,9 @@
        sc->mii_dev = self;
        sc->mii_inst = mii->mii_instance;
        sc->mii_phy = ma->mii_phyno;
+       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);
        sc->mii_funcs = &atphy_funcs;
        sc->mii_pdata = mii;
        sc->mii_flags = ma->mii_flags;



Home | Main Index | Thread Index | Old Index