nsphy.c (95722) | nsphy.c (96026) |
---|---|
1/* $NetBSD: nsphy.c,v 1.18 1999/07/14 23:57:36 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, --- 78 unchanged lines hidden (view full) --- 87#include <dev/mii/miidevs.h> 88 89#include <dev/mii/nsphyreg.h> 90 91#include "miibus_if.h" 92 93#if !defined(lint) 94static const char rcsid[] = | 1/* $NetBSD: nsphy.c,v 1.18 1999/07/14 23:57:36 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, --- 78 unchanged lines hidden (view full) --- 87#include <dev/mii/miidevs.h> 88 89#include <dev/mii/nsphyreg.h> 90 91#include "miibus_if.h" 92 93#if !defined(lint) 94static const char rcsid[] = |
95 "$FreeBSD: head/sys/dev/mii/nsphy.c 95722 2002-04-29 13:07:38Z phk $"; | 95 "$FreeBSD: head/sys/dev/mii/nsphy.c 96026 2002-05-04 11:00:30Z phk $"; |
96#endif 97 98static int nsphy_probe (device_t); 99static int nsphy_attach (device_t); 100 101static device_method_t nsphy_methods[] = { 102 /* device interface */ 103 DEVMETHOD(device_probe, nsphy_probe), --- 158 unchanged lines hidden (view full) --- 262 263 switch (IFM_SUBTYPE(ife->ifm_media)) { 264 case IFM_AUTO: 265 /* 266 * If we're already in auto mode, just return. 267 */ 268 if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) 269 return (0); | 96#endif 97 98static int nsphy_probe (device_t); 99static int nsphy_attach (device_t); 100 101static device_method_t nsphy_methods[] = { 102 /* device interface */ 103 DEVMETHOD(device_probe, nsphy_probe), --- 158 unchanged lines hidden (view full) --- 262 263 switch (IFM_SUBTYPE(ife->ifm_media)) { 264 case IFM_AUTO: 265 /* 266 * If we're already in auto mode, just return. 267 */ 268 if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) 269 return (0); |
270 (void) mii_phy_auto(sc, 1); | 270 (void) mii_phy_auto(sc); |
271 break; 272 case IFM_100_T4: 273 /* 274 * XXX Not supported as a manual setting right now. 275 */ 276 return (EINVAL); 277 default: 278 /* --- 103 unchanged lines hidden --- | 271 break; 272 case IFM_100_T4: 273 /* 274 * XXX Not supported as a manual setting right now. 275 */ 276 return (EINVAL); 277 default: 278 /* --- 103 unchanged lines hidden --- |