nsgphy.c (194134) | nsgphy.c (213229) |
---|---|
1/*- 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 2001 4 * Bill Paul <wpaul@bsdi.com>. All rights reserved. 5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 24 unchanged lines hidden (view full) --- 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 37 * THE POSSIBILITY OF SUCH DAMAGE. 38 */ 39 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 2001 4 * Bill Paul <wpaul@bsdi.com>. All rights reserved. 5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 24 unchanged lines hidden (view full) --- 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 37 * THE POSSIBILITY OF SUCH DAMAGE. 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/dev/mii/nsgphy.c 194134 2009-06-13 23:27:04Z marius $"); | 41__FBSDID("$FreeBSD: head/sys/dev/mii/nsgphy.c 213229 2010-09-27 20:31:03Z marius $"); |
42 43/* 44 * Driver for the National Semiconductor DP83861, DP83865 and DP83891 45 * 10/100/1000 PHYs. 46 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf 47 * and at: http://www.national.com/ds/DP/DP83865.pdf 48 * 49 * The DP83891 is the older NS GigE PHY which isn't being sold --- 71 unchanged lines hidden (view full) --- 121 struct mii_data *mii; 122 123 sc = device_get_softc(dev); 124 ma = device_get_ivars(dev); 125 if (bootverbose) 126 device_printf(dev, "<rev. %d>\n", MII_REV(ma->mii_id2)); 127 device_printf(dev, " "); 128 sc->mii_dev = device_get_parent(dev); | 42 43/* 44 * Driver for the National Semiconductor DP83861, DP83865 and DP83891 45 * 10/100/1000 PHYs. 46 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf 47 * and at: http://www.national.com/ds/DP/DP83865.pdf 48 * 49 * The DP83891 is the older NS GigE PHY which isn't being sold --- 71 unchanged lines hidden (view full) --- 121 struct mii_data *mii; 122 123 sc = device_get_softc(dev); 124 ma = device_get_ivars(dev); 125 if (bootverbose) 126 device_printf(dev, "<rev. %d>\n", MII_REV(ma->mii_id2)); 127 device_printf(dev, " "); 128 sc->mii_dev = device_get_parent(dev); |
129 mii = device_get_softc(sc->mii_dev); | 129 mii = ma->mii_data; |
130 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 131 132 sc->mii_inst = mii->mii_instance; 133 sc->mii_phy = ma->mii_phyno; 134 sc->mii_service = nsgphy_service; 135 sc->mii_pdata = mii; 136 137 mii->mii_instance++; --- 141 unchanged lines hidden --- | 130 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 131 132 sc->mii_inst = mii->mii_instance; 133 sc->mii_phy = ma->mii_phyno; 134 sc->mii_service = nsgphy_service; 135 sc->mii_pdata = mii; 136 137 mii->mii_instance++; --- 141 unchanged lines hidden --- |