xlphy.c (213364) | xlphy.c (213893) |
---|---|
1/* $NetBSD: exphy.c,v 1.16 1999/04/23 04:24:32 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 41 unchanged lines hidden (view full) --- 50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> | 1/* $NetBSD: exphy.c,v 1.16 1999/04/23 04:24:32 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 41 unchanged lines hidden (view full) --- 50 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 51 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 52 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 53 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 54 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> |
58__FBSDID("$FreeBSD: head/sys/dev/mii/exphy.c 213364 2010-10-02 18:53:12Z marius $"); | 58__FBSDID("$FreeBSD: head/sys/dev/mii/exphy.c 213893 2010-10-15 14:52:11Z marius $"); |
59 60/* 61 * driver for 3Com internal PHYs 62 */ 63 64#include <sys/param.h> 65#include <sys/systm.h> 66#include <sys/kernel.h> --- 66 unchanged lines hidden (view full) --- 133 struct mii_data *mii; 134 135 sc = device_get_softc(dev); 136 ma = device_get_ivars(dev); 137 sc->mii_dev = device_get_parent(dev); 138 mii = ma->mii_data; 139 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 140 | 59 60/* 61 * driver for 3Com internal PHYs 62 */ 63 64#include <sys/param.h> 65#include <sys/systm.h> 66#include <sys/kernel.h> --- 66 unchanged lines hidden (view full) --- 133 struct mii_data *mii; 134 135 sc = device_get_softc(dev); 136 ma = device_get_ivars(dev); 137 sc->mii_dev = device_get_parent(dev); 138 mii = ma->mii_data; 139 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 140 |
141 sc->mii_flags = miibus_get_flags(dev); |
|
141 sc->mii_inst = mii->mii_instance++; 142 sc->mii_phy = ma->mii_phyno; 143 sc->mii_service = exphy_service; 144 sc->mii_pdata = mii; 145 146 /* 147 * The 3Com PHY can never be isolated. 148 */ --- 70 unchanged lines hidden --- | 142 sc->mii_inst = mii->mii_instance++; 143 sc->mii_phy = ma->mii_phyno; 144 sc->mii_service = exphy_service; 145 sc->mii_pdata = mii; 146 147 /* 148 * The 3Com PHY can never be isolated. 149 */ --- 70 unchanged lines hidden --- |