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/55a7c437d842
branches: trunk
changeset: 348683:55a7c437d842
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Nov 02 07:01:54 2016 +0000
description:
Set mii_mpd_{oui,model,rev}.
diffstat:
sys/dev/mii/ihphy.c | 7 +++++--
sys/dev/mii/ikphy.c | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (56 lines):
diff -r 7249dbd39f10 -r 55a7c437d842 sys/dev/mii/ihphy.c
--- a/sys/dev/mii/ihphy.c Wed Nov 02 03:43:27 2016 +0000
+++ b/sys/dev/mii/ihphy.c Wed Nov 02 07:01:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ihphy.c,v 1.9 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: ihphy.c,v 1.10 2016/11/02 07:01:54 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ihphy.c,v 1.9 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ihphy.c,v 1.10 2016/11/02 07:01:54 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -132,6 +132,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 = &ihphy_funcs;
sc->mii_pdata = mii;
sc->mii_flags = ma->mii_flags;
diff -r 7249dbd39f10 -r 55a7c437d842 sys/dev/mii/ikphy.c
--- a/sys/dev/mii/ikphy.c Wed Nov 02 03:43:27 2016 +0000
+++ b/sys/dev/mii/ikphy.c Wed Nov 02 07:01:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ikphy.c,v 1.11 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: ikphy.c,v 1.12 2016/11/02 07:01:54 msaitoh Exp $ */
/*******************************************************************************
Copyright (c) 2001-2005, Intel Corporation
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ikphy.c,v 1.11 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ikphy.c,v 1.12 2016/11/02 07:01:54 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -125,6 +125,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 = &ikphy_funcs;
sc->mii_pdata = mii;
sc->mii_flags = ma->mii_flags;
Home |
Main Index |
Thread Index |
Old Index