rlphy.c (213384) | rlphy.c (213893) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/mii/rlphy.c 213384 2010-10-03 17:00:57Z marius $"); | 34__FBSDID("$FreeBSD: head/sys/dev/mii/rlphy.c 213893 2010-10-15 14:52:11Z marius $"); |
35 36/* 37 * driver for RealTek 8139 internal PHYs 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 93 unchanged lines hidden (view full) --- 136 * routine can query the proper register for speed detection. 137 */ 138 rsc = (struct rlphy_softc *)sc; 139 if (mii_phy_dev_probe(dev, rlphys, 0) == 0) 140 rsc->sc_is_RTL8201L++; 141 142 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 143 | 35 36/* 37 * driver for RealTek 8139 internal PHYs 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 93 unchanged lines hidden (view full) --- 136 * routine can query the proper register for speed detection. 137 */ 138 rsc = (struct rlphy_softc *)sc; 139 if (mii_phy_dev_probe(dev, rlphys, 0) == 0) 140 rsc->sc_is_RTL8201L++; 141 142 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 143 |
144 sc->mii_flags = miibus_get_flags(dev); |
|
144 sc->mii_inst = mii->mii_instance++; 145 sc->mii_phy = ma->mii_phyno; 146 sc->mii_service = rlphy_service; 147 sc->mii_pdata = mii; 148 149 /* 150 * The RealTek PHY can never be isolated. 151 */ --- 154 unchanged lines hidden --- | 145 sc->mii_inst = mii->mii_instance++; 146 sc->mii_phy = ma->mii_phyno; 147 sc->mii_service = rlphy_service; 148 sc->mii_pdata = mii; 149 150 /* 151 * The RealTek PHY can never be isolated. 152 */ --- 154 unchanged lines hidden --- |