Deleted Added
full compact
xlphy.c (59391) xlphy.c (69925)
1/* $NetBSD: exphy.c,v 1.16 1999/04/23 04:24:32 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999 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,

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

83#include <dev/mii/mii.h>
84#include <dev/mii/miivar.h>
85#include <dev/mii/miidevs.h>
86
87#include "miibus_if.h"
88
89#if !defined(lint)
90static const char rcsid[] =
1/* $NetBSD: exphy.c,v 1.16 1999/04/23 04:24:32 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 1998, 1999 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,

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

83#include <dev/mii/mii.h>
84#include <dev/mii/miivar.h>
85#include <dev/mii/miidevs.h>
86
87#include "miibus_if.h"
88
89#if !defined(lint)
90static const char rcsid[] =
91 "$FreeBSD: head/sys/dev/mii/exphy.c 59391 2000-04-19 14:58:28Z phk $";
91 "$FreeBSD: head/sys/dev/mii/exphy.c 69925 2000-12-12 19:31:14Z wpaul $";
92#endif
93
94static int exphy_probe __P((device_t));
95static int exphy_attach __P((device_t));
96static int exphy_detach __P((device_t));
97
98static device_method_t exphy_methods[] = {
99 /* device interface */

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

209static int exphy_detach(dev)
210 device_t dev;
211{
212 struct mii_softc *sc;
213 struct mii_data *mii;
214
215 sc = device_get_softc(dev);
216 mii = device_get_softc(device_get_parent(dev));
92#endif
93
94static int exphy_probe __P((device_t));
95static int exphy_attach __P((device_t));
96static int exphy_detach __P((device_t));
97
98static device_method_t exphy_methods[] = {
99 /* device interface */

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

209static int exphy_detach(dev)
210 device_t dev;
211{
212 struct mii_softc *sc;
213 struct mii_data *mii;
214
215 sc = device_get_softc(dev);
216 mii = device_get_softc(device_get_parent(dev));
217 mii_phy_auto_stop(sc);
217 sc->mii_dev = NULL;
218 LIST_REMOVE(sc, mii_list);
219
220 return(0);
221}
222
223int
224exphy_service(sc, mii, cmd)

--- 91 unchanged lines hidden ---
218 sc->mii_dev = NULL;
219 LIST_REMOVE(sc, mii_list);
220
221 return(0);
222}
223
224int
225exphy_service(sc, mii, cmd)

--- 91 unchanged lines hidden ---