Deleted Added
full compact
amphy.c (59391) amphy.c (69925)
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ee.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@ee.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/amphy.c 59391 2000-04-19 14:58:28Z phk $
32 * $FreeBSD: head/sys/dev/mii/amphy.c 69925 2000-12-12 19:31:14Z wpaul $
33 */
34
35/*
36 * driver for AMD AM79c873 PHYs
37 * This driver also works for the Davicom DM9101 PHY, which appears to
38 * be an AM79c873 workalike.
39 */
40

--- 11 unchanged lines hidden (view full) ---

52#include <dev/mii/miidevs.h>
53
54#include <dev/mii/amphyreg.h>
55
56#include "miibus_if.h"
57
58#if !defined(lint)
59static const char rcsid[] =
33 */
34
35/*
36 * driver for AMD AM79c873 PHYs
37 * This driver also works for the Davicom DM9101 PHY, which appears to
38 * be an AM79c873 workalike.
39 */
40

--- 11 unchanged lines hidden (view full) ---

52#include <dev/mii/miidevs.h>
53
54#include <dev/mii/amphyreg.h>
55
56#include "miibus_if.h"
57
58#if !defined(lint)
59static const char rcsid[] =
60 "$FreeBSD: head/sys/dev/mii/amphy.c 59391 2000-04-19 14:58:28Z phk $";
60 "$FreeBSD: head/sys/dev/mii/amphy.c 69925 2000-12-12 19:31:14Z wpaul $";
61#endif
62
63static int amphy_probe __P((device_t));
64static int amphy_attach __P((device_t));
65static int amphy_detach __P((device_t));
66
67static device_method_t amphy_methods[] = {
68 /* device interface */

--- 87 unchanged lines hidden (view full) ---

156static int amphy_detach(dev)
157 device_t dev;
158{
159 struct mii_softc *sc;
160 struct mii_data *mii;
161
162 sc = device_get_softc(dev);
163 mii = device_get_softc(device_get_parent(dev));
61#endif
62
63static int amphy_probe __P((device_t));
64static int amphy_attach __P((device_t));
65static int amphy_detach __P((device_t));
66
67static device_method_t amphy_methods[] = {
68 /* device interface */

--- 87 unchanged lines hidden (view full) ---

156static int amphy_detach(dev)
157 device_t dev;
158{
159 struct mii_softc *sc;
160 struct mii_data *mii;
161
162 sc = device_get_softc(dev);
163 mii = device_get_softc(device_get_parent(dev));
164 mii_phy_auto_stop(sc);
164 sc->mii_dev = NULL;
165 LIST_REMOVE(sc, mii_list);
166
167 return(0);
168}
169int
170amphy_service(sc, mii, cmd)
171 struct mii_softc *sc;

--- 179 unchanged lines hidden ---
165 sc->mii_dev = NULL;
166 LIST_REMOVE(sc, mii_list);
167
168 return(0);
169}
170int
171amphy_service(sc, mii, cmd)
172 struct mii_softc *sc;

--- 179 unchanged lines hidden ---