Deleted Added
full compact
bmtphy.c (160076) bmtphy.c (164703)
1/*-
2 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
7 * NASA Ames Research Center.
8 *

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

63 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
64 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65 *
66 * from: NetBSD: bmtphy.c,v 1.8 2002/07/03 06:25:50 simonb Exp
67 *
68 */
69
70#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
7 * NASA Ames Research Center.
8 *

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

63 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
64 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65 *
66 * from: NetBSD: bmtphy.c,v 1.8 2002/07/03 06:25:50 simonb Exp
67 *
68 */
69
70#include <sys/cdefs.h>
71__FBSDID("$FreeBSD: head/sys/dev/mii/bmtphy.c 160076 2006-07-03 02:53:40Z yongari $");
71__FBSDID("$FreeBSD: head/sys/dev/mii/bmtphy.c 164703 2006-11-27 23:50:19Z marius $");
72
73/*
74 * Driver for the Broadcom BCM5201/BCM5202 "Mini-Theta" PHYs. This also
75 * drives the PHY on the 3Com 3c905C. The 3c905C's PHY is described in
76 * the 3c905C data sheet.
77 */
78
79#include <sys/param.h>

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

177
178 mii_phy_reset(sc);
179
180 mii->mii_instance++;
181
182 sc->mii_capabilities =
183 PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
184 device_printf(dev, " ");
72
73/*
74 * Driver for the Broadcom BCM5201/BCM5202 "Mini-Theta" PHYs. This also
75 * drives the PHY on the 3Com 3c905C. The 3c905C's PHY is described in
76 * the 3c905C data sheet.
77 */
78
79#include <sys/param.h>

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

177
178 mii_phy_reset(sc);
179
180 mii->mii_instance++;
181
182 sc->mii_capabilities =
183 PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
184 device_printf(dev, " ");
185 if ((sc->mii_capabilities & BMSR_MEDIAMASK) == 0)
186 printf("no media present");
187 else
188 mii_phy_add_media(sc);
189
185 mii_phy_add_media(sc);
190 printf("\n");
191
192 MIIBUS_MEDIAINIT(sc->mii_dev);
193
194 return (0);
195}
196
197static int

--- 105 unchanged lines hidden ---
186 printf("\n");
187
188 MIIBUS_MEDIAINIT(sc->mii_dev);
189
190 return (0);
191}
192
193static int

--- 105 unchanged lines hidden ---