rlphy.c (59391) | rlphy.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/rlphy.c 59391 2000-04-19 14:58:28Z phk $ | 32 * $FreeBSD: head/sys/dev/mii/rlphy.c 69925 2000-12-12 19:31:14Z wpaul $ |
33 */ 34 35/* 36 * driver for RealTek 8139 internal PHYs 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> --- 6 unchanged lines hidden (view full) --- 47 48#include <dev/mii/mii.h> 49#include <dev/mii/miivar.h> 50 51#include "miibus_if.h" 52 53#if !defined(lint) 54static const char rcsid[] = | 33 */ 34 35/* 36 * driver for RealTek 8139 internal PHYs 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> --- 6 unchanged lines hidden (view full) --- 47 48#include <dev/mii/mii.h> 49#include <dev/mii/miivar.h> 50 51#include "miibus_if.h" 52 53#if !defined(lint) 54static const char rcsid[] = |
55 "$FreeBSD: head/sys/dev/mii/rlphy.c 59391 2000-04-19 14:58:28Z phk $"; | 55 "$FreeBSD: head/sys/dev/mii/rlphy.c 69925 2000-12-12 19:31:14Z wpaul $"; |
56#endif 57 58static int rlphy_probe __P((device_t)); 59static int rlphy_attach __P((device_t)); 60static int rlphy_detach __P((device_t)); 61 62static device_method_t rlphy_methods[] = { 63 /* device interface */ --- 105 unchanged lines hidden (view full) --- 169static int rlphy_detach(dev) 170 device_t dev; 171{ 172 struct mii_softc *sc; 173 struct mii_data *mii; 174 175 sc = device_get_softc(dev); 176 mii = device_get_softc(device_get_softc(dev)); | 56#endif 57 58static int rlphy_probe __P((device_t)); 59static int rlphy_attach __P((device_t)); 60static int rlphy_detach __P((device_t)); 61 62static device_method_t rlphy_methods[] = { 63 /* device interface */ --- 105 unchanged lines hidden (view full) --- 169static int rlphy_detach(dev) 170 device_t dev; 171{ 172 struct mii_softc *sc; 173 struct mii_data *mii; 174 175 sc = device_get_softc(dev); 176 mii = device_get_softc(device_get_softc(dev)); |
177 mii_phy_auto_stop(sc); |
|
177 sc->mii_dev = NULL; 178 LIST_REMOVE(sc, mii_list); 179 180 return(0); 181} 182 183int 184rlphy_service(sc, mii, cmd) --- 99 unchanged lines hidden --- | 178 sc->mii_dev = NULL; 179 LIST_REMOVE(sc, mii_list); 180 181 return(0); 182} 183 184int 185rlphy_service(sc, mii, cmd) --- 99 unchanged lines hidden --- |