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/9e5fdacbbdb6
branches: trunk
changeset: 348797:9e5fdacbbdb6
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Nov 08 07:22:26 2016 +0000
description:
Set mii_mpd_{oui,model,rev}.
diffstat:
sys/dev/mii/inphy.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r ff92acb2eba9 -r 9e5fdacbbdb6 sys/dev/mii/inphy.c
--- a/sys/dev/mii/inphy.c Tue Nov 08 03:20:07 2016 +0000
+++ b/sys/dev/mii/inphy.c Tue Nov 08 07:22:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inphy.c,v 1.54 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: inphy.c,v 1.55 2016/11/08 07:22:26 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: inphy.c,v 1.54 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: inphy.c,v 1.55 2016/11/08 07:22:26 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -137,6 +137,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 = &inphy_funcs;
sc->mii_pdata = mii;
sc->mii_flags = ma->mii_flags;
Home |
Main Index |
Thread Index |
Old Index