Adapt to mii_phy_probe() change.
This commit is contained in:
parent
bedeeb9896
commit
ca9b9a3b2e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: elink3.c,v 1.63 1999/10/30 12:07:08 enami Exp $ */
|
||||
/* $NetBSD: elink3.c,v 1.64 1999/11/04 00:24:00 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -469,7 +469,8 @@ epconfig(sc, chipset, enaddr)
|
|||
* we don't, just treat the Boomerang like the Vortex.
|
||||
*/
|
||||
if (sc->ep_flags & ELINK_FLAGS_MII) {
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff,
|
||||
MII_PHY_ANY, MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media,
|
||||
IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: elinkxl.c,v 1.15 1999/10/15 06:07:26 haya Exp $ */
|
||||
/* $NetBSD: elinkxl.c,v 1.16 1999/11/04 00:24:01 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -402,7 +402,8 @@ ex_config(sc)
|
|||
<< (CONFIG_XCVR_SEL_SHIFT + 16);
|
||||
bus_space_write_4(iot, ioh, ELINK_W3_INTERNAL_CONFIG, icfg);
|
||||
|
||||
mii_phy_probe(&sc->sc_dev, &sc->ex_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->ex_mii, 0xffffffff,
|
||||
MII_PHY_ANY, MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->ex_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->ex_mii.mii_media, IFM_ETHER|IFM_NONE,
|
||||
0, NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: i82557.c,v 1.10 1999/10/30 16:07:58 sommerfeld Exp $ */
|
||||
/* $NetBSD: i82557.c,v 1.11 1999/11/04 00:24:01 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -397,7 +397,8 @@ fxp_mii_initmedia(sc)
|
|||
sc->sc_mii.mii_statchg = fxp_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, fxp_mii_mediachange,
|
||||
fxp_mii_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: smc83c170.c,v 1.21 1999/08/27 19:13:00 thorpej Exp $ */
|
||||
/* $NetBSD: smc83c170.c,v 1.22 1999/11/04 00:24:01 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -229,7 +229,8 @@ epic_attach(sc)
|
|||
sc->sc_mii.mii_statchg = epic_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, epic_mediachange,
|
||||
epic_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tulip.c,v 1.28 1999/11/03 23:07:10 thorpej Exp $ */
|
||||
/* $NetBSD: tulip.c,v 1.29 1999/11/04 00:24:01 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -4098,7 +4098,8 @@ tlp_2114x_isv_tmsw_init(sc)
|
|||
* particularly care; the MII code just likes to
|
||||
* search the whole thing anyhow.
|
||||
*/
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff,
|
||||
MII_PHY_ANY, tm->tm_phyno);
|
||||
|
||||
/*
|
||||
* Now, search for the PHY we hopefully just
|
||||
|
@ -4362,7 +4363,8 @@ tlp_sio_mii_tmsw_init(sc)
|
|||
sc->sc_mii.mii_statchg = sc->sc_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, tlp_mediachange,
|
||||
tlp_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
@ -4409,7 +4411,8 @@ tlp_pnic_tmsw_init(sc)
|
|||
sc->sc_mii.mii_statchg = sc->sc_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, tlp_mediachange,
|
||||
tlp_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
/* XXX What about AUI/BNC support? */
|
||||
printf("%s: ", sc->sc_dev.dv_xname);
|
||||
|
@ -4817,7 +4820,8 @@ tlp_pmac_tmsw_init(sc)
|
|||
tlp_mediastatus);
|
||||
if (sc->sc_chip == TULIP_CHIP_MX98713 ||
|
||||
sc->sc_chip == TULIP_CHIP_MX98713A) {
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff,
|
||||
MII_PHY_ANY, MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) != NULL) {
|
||||
sc->sc_flags |= TULIPF_HAS_MII;
|
||||
sc->sc_tick = tlp_mii_tick;
|
||||
|
@ -4884,7 +4888,8 @@ tlp_al981_tmsw_init(sc)
|
|||
sc->sc_mii.mii_statchg = sc->sc_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, tlp_mediachange,
|
||||
tlp_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_rl.c,v 1.2 1999/08/20 03:36:59 sommerfeld Exp $ */
|
||||
/* $NetBSD: if_rl.c,v 1.3 1999/11/04 00:24:32 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
|
@ -930,7 +930,7 @@ rl_attach(parent, self, aux)
|
|||
sc->mii.mii_writereg = rl_phy_writereg;
|
||||
sc->mii.mii_statchg = rl_phy_statchg;
|
||||
ifmedia_init(&sc->mii.mii_media, 0, rl_ifmedia_upd, rl_ifmedia_sts);
|
||||
mii_phy_probe(self, &sc->mii, 0xffffffff);
|
||||
mii_phy_probe(self, &sc->mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY);
|
||||
|
||||
/* Choose a default media. */
|
||||
if (LIST_FIRST(&sc->mii.mii_phys) == NULL) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_sip.c,v 1.2 1999/08/03 17:25:52 thorpej Exp $ */
|
||||
/* $NetBSD: if_sip.c,v 1.3 1999/11/04 00:24:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 Network Computer, Inc.
|
||||
|
@ -507,7 +507,8 @@ sip_attach(parent, self, aux)
|
|||
sc->sc_mii.mii_statchg = sip_mii_statchg;
|
||||
ifmedia_init(&sc->sc_mii.mii_media, 0, sip_mediachange,
|
||||
sip_mediastatus);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_tl.c,v 1.24 1999/05/18 23:52:58 thorpej Exp $ */
|
||||
/* $NetBSD: if_tl.c,v 1.25 1999/11/04 00:24:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer. All rights reserved.
|
||||
|
@ -428,7 +428,8 @@ tl_pci_attach(parent, self, aux)
|
|||
sc->tl_mii.mii_statchg = tl_statchg;
|
||||
ifmedia_init(&sc->tl_mii.mii_media, IFM_IMASK, tl_mediachange,
|
||||
tl_mediastatus);
|
||||
mii_phy_probe(self, &sc->tl_mii, 0xffffffff);
|
||||
mii_phy_probe(self, &sc->tl_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->tl_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->tl_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->tl_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_vr.c,v 1.26 1999/09/20 17:40:58 thorpej Exp $ */
|
||||
/* $NetBSD: if_vr.c,v 1.27 1999/11/04 00:24:33 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -1823,7 +1823,8 @@ vr_attach(parent, self, aux)
|
|||
sc->vr_mii.mii_writereg = vr_mii_writereg;
|
||||
sc->vr_mii.mii_statchg = vr_mii_statchg;
|
||||
ifmedia_init(&sc->vr_mii.mii_media, 0, vr_ifmedia_upd, vr_ifmedia_sts);
|
||||
mii_phy_probe(&sc->vr_dev, &sc->vr_mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->vr_dev, &sc->vr_mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
if (LIST_FIRST(&sc->vr_mii.mii_phys) == NULL) {
|
||||
ifmedia_add(&sc->vr_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
|
||||
ifmedia_set(&sc->vr_mii.mii_media, IFM_ETHER|IFM_NONE);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: be.c,v 1.6 1999/05/18 23:52:58 thorpej Exp $ */
|
||||
/* $NetBSD: be.c,v 1.7 1999/11/04 00:24:59 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -331,7 +331,8 @@ beattach(parent, self, aux)
|
|||
|
||||
if ((sc->sc_conf & BE_CONF_MII) != 0) {
|
||||
#if 1
|
||||
mii_phy_probe(&sc->sc_dev, mii, 0xffffffff);
|
||||
mii_phy_probe(&sc->sc_dev, mii, 0xffffffff, MII_PHY_ANY,
|
||||
MII_OFFSET_ANY);
|
||||
#else
|
||||
/* TEST */
|
||||
extern int mii_print __P((void *, const char *));
|
||||
|
|
Loading…
Reference in New Issue