mii_physubr.c (279fe8d15669ab601a2b4d94cce9e607d8012b0b) | mii_physubr.c (875525d5170879ddf1e60f715547714848253354) |
---|---|
1/* $NetBSD: mii_physubr.c,v 1.5 1999/08/03 19:41:49 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 579 unchanged lines hidden (view full) --- 588 sc = device_get_softc(dev); 589 mii = device_get_softc(device_get_parent(dev)); 590 mii_phy_down(sc); 591 sc->mii_dev = NULL; 592 LIST_REMOVE(sc, mii_list); 593 594 return(0); 595} | 1/* $NetBSD: mii_physubr.c,v 1.5 1999/08/03 19:41:49 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 579 unchanged lines hidden (view full) --- 588 sc = device_get_softc(dev); 589 mii = device_get_softc(device_get_parent(dev)); 590 mii_phy_down(sc); 591 sc->mii_dev = NULL; 592 LIST_REMOVE(sc, mii_list); 593 594 return(0); 595} |
596 597const struct mii_phydesc * 598mii_phy_match(const struct mii_attach_args *ma, const struct mii_phydesc *mpd) 599{ 600 601 for (; mpd->mpd_name != NULL; mpd++) { 602 if (MII_OUI(ma->mii_id1, ma->mii_id2) == mpd->mpd_oui && 603 MII_MODEL(ma->mii_id2) == mpd->mpd_model) 604 return (mpd); 605 } 606 return (NULL); 607} |
|