ukphy.c (67164) | ukphy.c (69925) |
---|---|
1/* $NetBSD: ukphy.c,v 1.2 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, --- 75 unchanged lines hidden (view full) --- 84 85#include <dev/mii/mii.h> 86#include <dev/mii/miivar.h> 87 88#include "miibus_if.h" 89 90#if !defined(lint) 91static const char rcsid[] = | 1/* $NetBSD: ukphy.c,v 1.2 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, --- 75 unchanged lines hidden (view full) --- 84 85#include <dev/mii/mii.h> 86#include <dev/mii/miivar.h> 87 88#include "miibus_if.h" 89 90#if !defined(lint) 91static const char rcsid[] = |
92 "$FreeBSD: head/sys/dev/mii/ukphy.c 67164 2000-10-15 14:19:01Z phk $"; | 92 "$FreeBSD: head/sys/dev/mii/ukphy.c 69925 2000-12-12 19:31:14Z wpaul $"; |
93#endif 94 95static int ukphy_probe __P((device_t)); 96static int ukphy_attach __P((device_t)); 97static int ukphy_detach __P((device_t)); 98 99static device_method_t ukphy_methods[] = { 100 /* device interface */ --- 86 unchanged lines hidden (view full) --- 187static int ukphy_detach(dev) 188 device_t dev; 189{ 190 struct mii_softc *sc; 191 struct mii_data *mii; 192 193 sc = device_get_softc(dev); 194 mii = device_get_softc(device_get_parent(dev)); | 93#endif 94 95static int ukphy_probe __P((device_t)); 96static int ukphy_attach __P((device_t)); 97static int ukphy_detach __P((device_t)); 98 99static device_method_t ukphy_methods[] = { 100 /* device interface */ --- 86 unchanged lines hidden (view full) --- 187static int ukphy_detach(dev) 188 device_t dev; 189{ 190 struct mii_softc *sc; 191 struct mii_data *mii; 192 193 sc = device_get_softc(dev); 194 mii = device_get_softc(device_get_parent(dev)); |
195 mii_phy_auto_stop(sc); |
|
195 sc->mii_dev = NULL; 196 LIST_REMOVE(sc, mii_list); 197 198 return(0); 199} 200 201int 202ukphy_service(sc, mii, cmd) --- 109 unchanged lines hidden --- | 196 sc->mii_dev = NULL; 197 LIST_REMOVE(sc, mii_list); 198 199 return(0); 200} 201 202int 203ukphy_service(sc, mii, cmd) --- 109 unchanged lines hidden --- |