pnaphy.c (164827) | pnaphy.c (213229) |
---|---|
1/*- 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/mii/pnaphy.c 164827 2006-12-02 15:32:34Z marius $"); | 35__FBSDID("$FreeBSD: head/sys/dev/mii/pnaphy.c 213229 2010-09-27 20:31:03Z marius $"); |
36 37/* 38 * driver for homePNA PHYs 39 * This is really just a stub that allows us to identify homePNA-based 40 * transceicers and display the link status. MII-based homePNA PHYs 41 * only support one media type and no autonegotiation. If we were 42 * really clever, we could tweak some of the vendor-specific registers 43 * to optimize the link. --- 58 unchanged lines hidden (view full) --- 102 struct mii_softc *sc; 103 struct mii_attach_args *ma; 104 struct mii_data *mii; 105 const char *sep = ""; 106 107 sc = device_get_softc(dev); 108 ma = device_get_ivars(dev); 109 sc->mii_dev = device_get_parent(dev); | 36 37/* 38 * driver for homePNA PHYs 39 * This is really just a stub that allows us to identify homePNA-based 40 * transceicers and display the link status. MII-based homePNA PHYs 41 * only support one media type and no autonegotiation. If we were 42 * really clever, we could tweak some of the vendor-specific registers 43 * to optimize the link. --- 58 unchanged lines hidden (view full) --- 102 struct mii_softc *sc; 103 struct mii_attach_args *ma; 104 struct mii_data *mii; 105 const char *sep = ""; 106 107 sc = device_get_softc(dev); 108 ma = device_get_ivars(dev); 109 sc->mii_dev = device_get_parent(dev); |
110 mii = device_get_softc(sc->mii_dev); | 110 mii = ma->mii_data; |
111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 112 113 sc->mii_inst = mii->mii_instance; 114 sc->mii_phy = ma->mii_phyno; 115 sc->mii_service = pnaphy_service; 116 sc->mii_pdata = mii; 117 118 mii->mii_instance++; --- 98 unchanged lines hidden --- | 111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 112 113 sc->mii_inst = mii->mii_instance; 114 sc->mii_phy = ma->mii_phyno; 115 sc->mii_service = pnaphy_service; 116 sc->mii_pdata = mii; 117 118 mii->mii_instance++; --- 98 unchanged lines hidden --- |