lxtphy.c (95722) | lxtphy.c (96026) |
---|---|
1/* OpenBSD: lxtphy.c,v 1.5 2000/08/26 20:04:17 nate Exp */ 2/* NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp */ 3 4/*- 5 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 79 unchanged lines hidden (view full) --- 88#include <dev/mii/miidevs.h> 89 90#include <dev/mii/lxtphyreg.h> 91 92#include "miibus_if.h" 93 94#if !defined(lint) 95static const char rcsid[] = | 1/* OpenBSD: lxtphy.c,v 1.5 2000/08/26 20:04:17 nate Exp */ 2/* NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp */ 3 4/*- 5 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 79 unchanged lines hidden (view full) --- 88#include <dev/mii/miidevs.h> 89 90#include <dev/mii/lxtphyreg.h> 91 92#include "miibus_if.h" 93 94#if !defined(lint) 95static const char rcsid[] = |
96 "$FreeBSD: head/sys/dev/mii/lxtphy.c 95722 2002-04-29 13:07:38Z phk $"; | 96 "$FreeBSD: head/sys/dev/mii/lxtphy.c 96026 2002-05-04 11:00:30Z phk $"; |
97#endif 98 99static int lxtphy_probe (device_t); 100static int lxtphy_attach (device_t); 101 102static device_method_t lxtphy_methods[] = { 103 /* device interface */ 104 DEVMETHOD(device_probe, lxtphy_probe), --- 119 unchanged lines hidden (view full) --- 224 /* 225 * If we're already in auto mode, just return. 226 */ 227 if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) 228 return (0); 229 230 lxtphy_set_tp(sc); 231 | 97#endif 98 99static int lxtphy_probe (device_t); 100static int lxtphy_attach (device_t); 101 102static device_method_t lxtphy_methods[] = { 103 /* device interface */ 104 DEVMETHOD(device_probe, lxtphy_probe), --- 119 unchanged lines hidden (view full) --- 224 /* 225 * If we're already in auto mode, just return. 226 */ 227 if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) 228 return (0); 229 230 lxtphy_set_tp(sc); 231 |
232 (void) mii_phy_auto(sc, 1); | 232 (void) mii_phy_auto(sc); |
233 break; 234 case IFM_100_T4: 235 /* 236 * XXX Not supported as a manual setting right now. 237 */ 238 return (EINVAL); 239 240 case IFM_100_FX: --- 100 unchanged lines hidden --- | 233 break; 234 case IFM_100_T4: 235 /* 236 * XXX Not supported as a manual setting right now. 237 */ 238 return (EINVAL); 239 240 case IFM_100_FX: --- 100 unchanged lines hidden --- |