Deleted Added
full compact
tlphy.c (213364) tlphy.c (213384)
1/* $NetBSD: tlphy.c,v 1.18 1999/05/14 11:40:28 drochner 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,

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

50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
1/* $NetBSD: tlphy.c,v 1.18 1999/05/14 11:40:28 drochner 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,

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

50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/dev/mii/tlphy.c 213364 2010-10-02 18:53:12Z marius $");
58__FBSDID("$FreeBSD: head/sys/dev/mii/tlphy.c 213384 2010-10-03 17:00:57Z marius $");
59
60/*
61 * Driver for Texas Instruments's ThunderLAN PHYs
62 */
63
64#include <sys/param.h>
65#include <sys/systm.h>
66#include <sys/kernel.h>

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

328 /*
329 * Grr, braindead ThunderLAN PHY doesn't have any way to
330 * tell which media is actually active. (Note it also
331 * doesn't self-configure after autonegotiation.) We
332 * just have to report what's in the BMCR.
333 */
334 if (bmcr & BMCR_FDX)
335 mii->mii_media_active |= IFM_FDX;
59
60/*
61 * Driver for Texas Instruments's ThunderLAN PHYs
62 */
63
64#include <sys/param.h>
65#include <sys/systm.h>
66#include <sys/kernel.h>

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

328 /*
329 * Grr, braindead ThunderLAN PHY doesn't have any way to
330 * tell which media is actually active. (Note it also
331 * doesn't self-configure after autonegotiation.) We
332 * just have to report what's in the BMCR.
333 */
334 if (bmcr & BMCR_FDX)
335 mii->mii_media_active |= IFM_FDX;
336 else
337 mii->mii_media_active |= IFM_HDX;
336 mii->mii_media_active |= IFM_10_T;
337}
338
339static int
340tlphy_auto(struct tlphy_softc *sc)
341{
342 int error;
343

--- 45 unchanged lines hidden ---
338 mii->mii_media_active |= IFM_10_T;
339}
340
341static int
342tlphy_auto(struct tlphy_softc *sc)
343{
344 int error;
345

--- 45 unchanged lines hidden ---