Deleted Added
full compact
lxtphy.c (95665) lxtphy.c (95667)
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 95665 2002-04-28 19:01:32Z phk $";
96 "$FreeBSD: head/sys/dev/mii/lxtphy.c 95667 2002-04-28 19:25:07Z phk $";
97#endif
98
99static int lxtphy_probe (device_t);
100static int lxtphy_attach (device_t);
101static int lxtphy_detach (device_t);
102
103static device_method_t lxtphy_methods[] = {
104 /* device interface */

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

173 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_FX, 0, sc->mii_inst),
174 BMCR_S100);
175 printf("100baseFX, ");
176 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_FX, IFM_FDX, sc->mii_inst),
177 BMCR_S100|BMCR_FDX);
178 printf("100baseFX-FDX, ");
179#undef ADD
180
97#endif
98
99static int lxtphy_probe (device_t);
100static int lxtphy_attach (device_t);
101static int lxtphy_detach (device_t);
102
103static device_method_t lxtphy_methods[] = {
104 /* device interface */

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

173 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_FX, 0, sc->mii_inst),
174 BMCR_S100);
175 printf("100baseFX, ");
176 ADD(IFM_MAKEWORD(IFM_ETHER, IFM_100_FX, IFM_FDX, sc->mii_inst),
177 BMCR_S100|BMCR_FDX);
178 printf("100baseFX-FDX, ");
179#undef ADD
180
181 mii_add_media(mii, sc->mii_capabilities, sc->mii_inst);
181 mii_add_media(sc);
182 printf("\n");
183
184 MIIBUS_MEDIAINIT(sc->mii_dev);
185 return(0);
186}
187
188
189static int lxtphy_detach(dev)

--- 167 unchanged lines hidden ---
182 printf("\n");
183
184 MIIBUS_MEDIAINIT(sc->mii_dev);
185 return(0);
186}
187
188
189static int lxtphy_detach(dev)

--- 167 unchanged lines hidden ---