inphy.c (213384) | inphy.c (213893) |
---|---|
1/*- 2 * Copyright (c) 2001 Jonathan Lemon 3 * 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 --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Jonathan Lemon 3 * 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 --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/mii/inphy.c 213384 2010-10-03 17:00:57Z marius $"); | 32__FBSDID("$FreeBSD: head/sys/dev/mii/inphy.c 213893 2010-10-15 14:52:11Z marius $"); |
33 34/* 35 * driver for Intel 82553 and 82555 PHYs 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> --- 61 unchanged lines hidden (view full) --- 102 struct mii_data *mii; 103 104 sc = device_get_softc(dev); 105 ma = device_get_ivars(dev); 106 sc->mii_dev = device_get_parent(dev); 107 mii = ma->mii_data; 108 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 109 | 33 34/* 35 * driver for Intel 82553 and 82555 PHYs 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> --- 61 unchanged lines hidden (view full) --- 102 struct mii_data *mii; 103 104 sc = device_get_softc(dev); 105 ma = device_get_ivars(dev); 106 sc->mii_dev = device_get_parent(dev); 107 mii = ma->mii_data; 108 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 109 |
110 sc->mii_flags = miibus_get_flags(dev); |
|
110 sc->mii_inst = mii->mii_instance++; 111 sc->mii_phy = ma->mii_phyno; 112 sc->mii_service = inphy_service; 113 sc->mii_pdata = mii; 114 115 ifmedia_add(&mii->mii_media, 116 IFM_MAKEWORD(IFM_ETHER, IFM_100_TX, IFM_LOOP, sc->mii_inst), 117 MII_MEDIA_100_TX, NULL); --- 87 unchanged lines hidden --- | 111 sc->mii_inst = mii->mii_instance++; 112 sc->mii_phy = ma->mii_phyno; 113 sc->mii_service = inphy_service; 114 sc->mii_pdata = mii; 115 116 ifmedia_add(&mii->mii_media, 117 IFM_MAKEWORD(IFM_ETHER, IFM_100_TX, IFM_LOOP, sc->mii_inst), 118 MII_MEDIA_100_TX, NULL); --- 87 unchanged lines hidden --- |