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,rev}.
details: https://anonhg.NetBSD.org/src/rev/080d2e6aaec9
branches: trunk
changeset: 348799:080d2e6aaec9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Nov 08 08:48:35 2016 +0000
description:
Set mii_mpd_{oui,rev}.
diffstat:
sys/dev/mii/makphy.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 3fddfe5d1d2a -r 080d2e6aaec9 sys/dev/mii/makphy.c
--- a/sys/dev/mii/makphy.c Tue Nov 08 08:21:52 2016 +0000
+++ b/sys/dev/mii/makphy.c Tue Nov 08 08:48:35 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makphy.c,v 1.41 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: makphy.c,v 1.42 2016/11/08 08:48:35 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.41 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.42 2016/11/08 08:48:35 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -154,7 +154,9 @@
aprint_normal(": %s, rev. %d\n", mpd->mpd_name, MII_REV(ma->mii_id2));
sc->mii_dev = self;
+ 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_inst = mii->mii_instance;
sc->mii_phy = ma->mii_phyno;
sc->mii_funcs = &makphy_funcs;
Home |
Main Index |
Thread Index |
Old Index