xmphy.c (213364) | xmphy.c (213893) |
---|---|
1/*- 2 * Copyright (c) 2000 3 * Bill Paul <wpaul@ee.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) 2000 3 * Bill Paul <wpaul@ee.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/xmphy.c 213364 2010-10-02 18:53:12Z marius $"); | 34__FBSDID("$FreeBSD: head/sys/dev/mii/xmphy.c 213893 2010-10-15 14:52:11Z marius $"); |
35 36/* 37 * driver for the XaQti XMAC II's internal PHY. This is sort of 38 * like a 10/100 PHY, except the only thing we're really autoselecting 39 * here is full/half duplex. Speed is always 1000mbps. 40 */ 41 42#include <sys/param.h> --- 62 unchanged lines hidden (view full) --- 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 = ma->mii_data; 111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 112 | 35 36/* 37 * driver for the XaQti XMAC II's internal PHY. This is sort of 38 * like a 10/100 PHY, except the only thing we're really autoselecting 39 * here is full/half duplex. Speed is always 1000mbps. 40 */ 41 42#include <sys/param.h> --- 62 unchanged lines hidden (view full) --- 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 = ma->mii_data; 111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 112 |
113 sc->mii_flags = miibus_get_flags(dev); |
|
113 sc->mii_inst = mii->mii_instance++; 114 sc->mii_phy = ma->mii_phyno; 115 sc->mii_service = xmphy_service; 116 sc->mii_pdata = mii; 117 118 sc->mii_flags |= MIIF_NOISOLATE; 119 sc->mii_anegticks = MII_ANEGTICKS; 120 --- 174 unchanged lines hidden --- | 114 sc->mii_inst = mii->mii_instance++; 115 sc->mii_phy = ma->mii_phyno; 116 sc->mii_service = xmphy_service; 117 sc->mii_pdata = mii; 118 119 sc->mii_flags |= MIIF_NOISOLATE; 120 sc->mii_anegticks = MII_ANEGTICKS; 121 --- 174 unchanged lines hidden --- |