mlphy.c (67164) | mlphy.c (69925) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/mii/mlphy.c 67164 2000-10-15 14:19:01Z phk $ | 32 * $FreeBSD: head/sys/dev/mii/mlphy.c 69925 2000-12-12 19:31:14Z wpaul $ |
33 */ 34 35/* 36 * driver for Micro Linear 6692 PHYs 37 * 38 * The Micro Linear 6692 is a strange beast, and dealing with it using 39 * this code framework is tricky. The 6692 is actually a 100Mbps-only 40 * device, which means that a second PHY is required to support 10Mbps --- 140 unchanged lines hidden (view full) --- 181static int mlphy_detach(dev) 182 device_t dev; 183{ 184 struct mlphy_softc *sc; 185 struct mii_data *mii; 186 187 sc = device_get_softc(dev); 188 mii = device_get_softc(device_get_parent(dev)); | 33 */ 34 35/* 36 * driver for Micro Linear 6692 PHYs 37 * 38 * The Micro Linear 6692 is a strange beast, and dealing with it using 39 * this code framework is tricky. The 6692 is actually a 100Mbps-only 40 * device, which means that a second PHY is required to support 10Mbps --- 140 unchanged lines hidden (view full) --- 181static int mlphy_detach(dev) 182 device_t dev; 183{ 184 struct mlphy_softc *sc; 185 struct mii_data *mii; 186 187 sc = device_get_softc(dev); 188 mii = device_get_softc(device_get_parent(dev)); |
189 mii_phy_auto_stop(&sc->ml_mii); |
|
189 sc->ml_mii.mii_dev = NULL; 190 LIST_REMOVE(&sc->ml_mii, mii_list); 191 192 return(0); 193} 194 195static int 196mlphy_service(xsc, mii, cmd) --- 258 unchanged lines hidden --- | 190 sc->ml_mii.mii_dev = NULL; 191 LIST_REMOVE(&sc->ml_mii, mii_list); 192 193 return(0); 194} 195 196static int 197mlphy_service(xsc, mii, cmd) --- 258 unchanged lines hidden --- |