lxtphy.c (213188) | lxtphy.c (213229) |
---|---|
1/* OpenBSD: lxtphy.c,v 1.5 2000/08/26 20:04:17 nate Exp */ 2/* NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp */ 3 4/*- 5 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 42 unchanged lines hidden (view full) --- 51 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 52 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 53 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 54 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 55 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 */ 57 58#include <sys/cdefs.h> | 1/* OpenBSD: lxtphy.c,v 1.5 2000/08/26 20:04:17 nate Exp */ 2/* NetBSD: lxtphy.c,v 1.19 2000/02/02 23:34:57 thorpej Exp */ 3 4/*- 5 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 42 unchanged lines hidden (view full) --- 51 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 52 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 53 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 54 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 55 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 */ 57 58#include <sys/cdefs.h> |
59__FBSDID("$FreeBSD: head/sys/dev/mii/lxtphy.c 213188 2010-09-26 22:11:41Z marius $"); | 59__FBSDID("$FreeBSD: head/sys/dev/mii/lxtphy.c 213229 2010-09-27 20:31:03Z marius $"); |
60 61/* 62 * driver for Level One's LXT-970 ethernet 10/100 PHY 63 * datasheet from www.level1.com 64 */ 65 66#include <sys/param.h> 67#include <sys/systm.h> --- 59 unchanged lines hidden (view full) --- 127 struct mii_softc *sc; 128 struct mii_attach_args *ma; 129 struct mii_data *mii; 130 const char *nic; 131 132 sc = device_get_softc(dev); 133 ma = device_get_ivars(dev); 134 sc->mii_dev = device_get_parent(dev); | 60 61/* 62 * driver for Level One's LXT-970 ethernet 10/100 PHY 63 * datasheet from www.level1.com 64 */ 65 66#include <sys/param.h> 67#include <sys/systm.h> --- 59 unchanged lines hidden (view full) --- 127 struct mii_softc *sc; 128 struct mii_attach_args *ma; 129 struct mii_data *mii; 130 const char *nic; 131 132 sc = device_get_softc(dev); 133 ma = device_get_ivars(dev); 134 sc->mii_dev = device_get_parent(dev); |
135 mii = device_get_softc(sc->mii_dev); | 135 mii = ma->mii_data; |
136 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 137 138 sc->mii_inst = mii->mii_instance; 139 sc->mii_phy = ma->mii_phyno; 140 sc->mii_service = lxtphy_service; 141 sc->mii_pdata = mii; 142 143 mii->mii_instance++; --- 156 unchanged lines hidden --- | 136 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list); 137 138 sc->mii_inst = mii->mii_instance; 139 sc->mii_phy = ma->mii_phyno; 140 sc->mii_service = lxtphy_service; 141 sc->mii_pdata = mii; 142 143 mii->mii_instance++; --- 156 unchanged lines hidden --- |