Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Change the "dontcare bits" argument to ifmedia_in...
details: https://anonhg.NetBSD.org/src/rev/3feef60d4bbb
branches: trunk
changeset: 538507:3feef60d4bbb
user: fair <fair%NetBSD.org@localhost>
date: Tue Oct 22 00:01:55 2002 +0000
description:
Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
diffstat:
sys/dev/ic/aic6915.c | 6 +++---
sys/dev/ic/ax88190.c | 6 +++---
sys/dev/ic/dl10019.c | 6 +++---
sys/dev/ic/elink3.c | 6 +++---
sys/dev/ic/elinkxl.c | 6 +++---
sys/dev/ic/gem.c | 6 +++---
sys/dev/ic/hme.c | 6 +++---
sys/dev/ic/i82557.c | 6 +++---
sys/dev/ic/rtl81x9.c | 6 +++---
sys/dev/ic/smc83c170.c | 6 +++---
sys/dev/ic/smc91cxx.c | 6 +++---
11 files changed, 33 insertions(+), 33 deletions(-)
diffs (297 lines):
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/aic6915.c
--- a/sys/dev/ic/aic6915.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/aic6915.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic6915.c,v 1.6 2002/05/03 00:04:07 thorpej Exp $ */
+/* $NetBSD: aic6915.c,v 1.7 2002/10/22 00:01:55 fair Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.6 2002/05/03 00:04:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.7 2002/10/22 00:01:55 fair Exp $");
#include "bpfilter.h"
@@ -273,7 +273,7 @@
sc->sc_mii.mii_readreg = sf_mii_read;
sc->sc_mii.mii_writereg = sf_mii_write;
sc->sc_mii.mii_statchg = sf_mii_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, sf_mediachange,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, sf_mediachange,
sf_mediastatus);
mii_attach(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
MII_OFFSET_ANY, 0);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/ax88190.c
--- a/sys/dev/ic/ax88190.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/ax88190.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ax88190.c,v 1.2 2001/11/13 13:14:35 lukem Exp $ */
+/* $NetBSD: ax88190.c,v 1.3 2002/10/22 00:01:55 fair Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ax88190.c,v 1.2 2001/11/13 13:14:35 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ax88190.c,v 1.3 2002/10/22 00:01:55 fair Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -96,7 +96,7 @@
sc->sc_mii.mii_readreg = ax88190_mii_readreg;
sc->sc_mii.mii_writereg = ax88190_mii_writereg;
sc->sc_mii.mii_statchg = ax88190_mii_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, dp8390_mediachange,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, dp8390_mediachange,
dp8390_mediastatus);
mii_attach(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/dl10019.c
--- a/sys/dev/ic/dl10019.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/dl10019.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dl10019.c,v 1.6 2001/11/13 13:14:36 lukem Exp $ */
+/* $NetBSD: dl10019.c,v 1.7 2002/10/22 00:01:55 fair Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dl10019.c,v 1.6 2001/11/13 13:14:36 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dl10019.c,v 1.7 2002/10/22 00:01:55 fair Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -129,7 +129,7 @@
sc->sc_mii.mii_readreg = dl10019_mii_readreg;
sc->sc_mii.mii_writereg = dl10019_mii_writereg;
sc->sc_mii.mii_statchg = dl10019_mii_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, dp8390_mediachange,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, dp8390_mediachange,
dp8390_mediastatus);
dl10019_mii_reset(sc);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/elink3.c
--- a/sys/dev/ic/elink3.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/elink3.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elink3.c,v 1.103 2002/06/08 16:59:26 yamt Exp $ */
+/* $NetBSD: elink3.c,v 1.104 2002/10/22 00:01:55 fair Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.103 2002/06/08 16:59:26 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elink3.c,v 1.104 2002/10/22 00:01:55 fair Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@@ -459,7 +459,7 @@
sc->sc_mii.mii_readreg = ep_mii_readreg;
sc->sc_mii.mii_writereg = ep_mii_writereg;
sc->sc_mii.mii_statchg = ep_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, ep_media_change,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, ep_media_change,
ep_media_status);
/*
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/elinkxl.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elinkxl.c,v 1.65 2002/07/01 16:16:37 thorpej Exp $ */
+/* $NetBSD: elinkxl.c,v 1.66 2002/10/22 00:01:56 fair Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.65 2002/07/01 16:16:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.66 2002/10/22 00:01:56 fair Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -382,7 +382,7 @@
sc->ex_mii.mii_readreg = ex_mii_readreg;
sc->ex_mii.mii_writereg = ex_mii_writereg;
sc->ex_mii.mii_statchg = ex_mii_statchg;
- ifmedia_init(&sc->ex_mii.mii_media, 0, ex_media_chg,
+ ifmedia_init(&sc->ex_mii.mii_media, IFM_IMASK, ex_media_chg,
ex_media_stat);
if (sc->ex_conf & EX_CONF_MII) {
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/gem.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gem.c,v 1.22 2002/08/28 17:46:58 matt Exp $ */
+/* $NetBSD: gem.c,v 1.23 2002/10/22 00:01:56 fair Exp $ */
/*
*
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.22 2002/08/28 17:46:58 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.23 2002/10/22 00:01:56 fair Exp $");
#include "bpfilter.h"
@@ -252,7 +252,7 @@
mii->mii_writereg = gem_mii_writereg;
mii->mii_statchg = gem_mii_statchg;
- ifmedia_init(&mii->mii_media, 0, gem_mediachange, gem_mediastatus);
+ ifmedia_init(&mii->mii_media, IFM_IMASK, gem_mediachange, gem_mediastatus);
gem_mifinit(sc);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/hme.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hme.c,v 1.30 2002/08/29 14:33:03 martin Exp $ */
+/* $NetBSD: hme.c,v 1.31 2002/10/22 00:01:56 fair Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.30 2002/08/29 14:33:03 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.31 2002/10/22 00:01:56 fair Exp $");
#define HMEDEBUG
@@ -262,7 +262,7 @@
mii->mii_writereg = hme_mii_writereg;
mii->mii_statchg = hme_mii_statchg;
- ifmedia_init(&mii->mii_media, 0, hme_mediachange, hme_mediastatus);
+ ifmedia_init(&mii->mii_media, IFM_IMASK, hme_mediachange, hme_mediastatus);
hme_mifinit(sc);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/i82557.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.66 2002/06/06 17:20:50 he Exp $ */
+/* $NetBSD: i82557.c,v 1.67 2002/10/22 00:01:56 fair Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.66 2002/06/06 17:20:50 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.67 2002/10/22 00:01:56 fair Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -457,7 +457,7 @@
sc->sc_mii.mii_readreg = fxp_mdi_read;
sc->sc_mii.mii_writereg = fxp_mdi_write;
sc->sc_mii.mii_statchg = fxp_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, fxp_mii_mediachange,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, fxp_mii_mediachange,
fxp_mii_mediastatus);
flags = MIIF_NOISOLATE;
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/rtl81x9.c
--- a/sys/dev/ic/rtl81x9.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/rtl81x9.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtl81x9.c,v 1.41 2002/06/01 23:50:58 lukem Exp $ */
+/* $NetBSD: rtl81x9.c,v 1.42 2002/10/22 00:01:56 fair Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.41 2002/06/01 23:50:58 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.42 2002/10/22 00:01:56 fair Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -734,7 +734,7 @@
sc->mii.mii_readreg = rtk_phy_readreg;
sc->mii.mii_writereg = rtk_phy_writereg;
sc->mii.mii_statchg = rtk_phy_statchg;
- ifmedia_init(&sc->mii.mii_media, 0, rtk_ifmedia_upd, rtk_ifmedia_sts);
+ ifmedia_init(&sc->mii.mii_media, IFM_IMASK, rtk_ifmedia_upd, rtk_ifmedia_sts);
mii_attach(&sc->sc_dev, &sc->mii, 0xffffffff,
MII_PHY_ANY, MII_OFFSET_ANY, 0);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/smc83c170.c
--- a/sys/dev/ic/smc83c170.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/smc83c170.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smc83c170.c,v 1.49 2001/11/13 13:14:44 lukem Exp $ */
+/* $NetBSD: smc83c170.c,v 1.50 2002/10/22 00:01:57 fair Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smc83c170.c,v 1.49 2001/11/13 13:14:44 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smc83c170.c,v 1.50 2002/10/22 00:01:57 fair Exp $");
#include "bpfilter.h"
@@ -235,7 +235,7 @@
sc->sc_mii.mii_readreg = epic_mii_read;
sc->sc_mii.mii_writereg = epic_mii_write;
sc->sc_mii.mii_statchg = epic_statchg;
- ifmedia_init(&sc->sc_mii.mii_media, 0, epic_mediachange,
+ ifmedia_init(&sc->sc_mii.mii_media, IFM_IMASK, epic_mediachange,
epic_mediastatus);
mii_attach(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
MII_OFFSET_ANY, miiflags);
diff -r 5f10725a356e -r 3feef60d4bbb sys/dev/ic/smc91cxx.c
--- a/sys/dev/ic/smc91cxx.c Mon Oct 21 23:38:10 2002 +0000
+++ b/sys/dev/ic/smc91cxx.c Tue Oct 22 00:01:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smc91cxx.c,v 1.43 2002/09/28 10:24:46 scw Exp $ */
+/* $NetBSD: smc91cxx.c,v 1.44 2002/10/22 00:01:57 fair Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.43 2002/09/28 10:24:46 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.44 2002/10/22 00:01:57 fair Exp $");
#include "opt_inet.h"
#include "opt_ccitt.h"
@@ -311,7 +311,7 @@
sc->sc_mii.mii_readreg = smc91cxx_mii_readreg;
sc->sc_mii.mii_writereg = smc91cxx_mii_writereg;
sc->sc_mii.mii_statchg = smc91cxx_statchg;
- ifmedia_init(ifm, 0, smc91cxx_mediachange, smc91cxx_mediastatus);
+ ifmedia_init(ifm, IFM_IMASK, smc91cxx_mediachange, smc91cxx_mediastatus);
SMC_SELECT_BANK(sc, 1);
tmp = bus_space_read_2(bst, bsh, CONFIG_REG_W);
Home |
Main Index |
Thread Index |
Old Index