Deleted Added
full compact
if_vr.c (219902) if_vr.c (221407)
1/*-
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.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) 1997, 1998
3 * Bill Paul <wpaul@ctr.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/vr/if_vr.c 219902 2011-03-23 13:10:15Z jhb $");
34__FBSDID("$FreeBSD: head/sys/dev/vr/if_vr.c 221407 2011-05-03 19:51:29Z marius $");
35
36/*
37 * VIA Rhine fast ethernet PCI NIC driver
38 *
39 * Supports various network adapters based on the VIA Rhine
40 * and Rhine II PCI controllers, including the D-Link DFE530TX.
41 * Datasheets are available at http://www.via.com.tw.
42 *

--- 2093 unchanged lines hidden (view full) ---

2136 struct vr_softc *sc;
2137 struct mii_data *mii;
2138 struct mii_softc *miisc;
2139 int error;
2140
2141 sc = ifp->if_softc;
2142 VR_LOCK(sc);
2143 mii = device_get_softc(sc->vr_miibus);
35
36/*
37 * VIA Rhine fast ethernet PCI NIC driver
38 *
39 * Supports various network adapters based on the VIA Rhine
40 * and Rhine II PCI controllers, including the D-Link DFE530TX.
41 * Datasheets are available at http://www.via.com.tw.
42 *

--- 2093 unchanged lines hidden (view full) ---

2136 struct vr_softc *sc;
2137 struct mii_data *mii;
2138 struct mii_softc *miisc;
2139 int error;
2140
2141 sc = ifp->if_softc;
2142 VR_LOCK(sc);
2143 mii = device_get_softc(sc->vr_miibus);
2144 if (mii->mii_instance) {
2145 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
2146 mii_phy_reset(miisc);
2147 }
2144 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
2145 PHY_RESET(miisc);
2148 error = mii_mediachg(mii);
2149 VR_UNLOCK(sc);
2150
2151 return (error);
2152}
2153
2154/*
2155 * Report current media status.

--- 463 unchanged lines hidden ---
2146 error = mii_mediachg(mii);
2147 VR_UNLOCK(sc);
2148
2149 return (error);
2150}
2151
2152/*
2153 * Report current media status.

--- 463 unchanged lines hidden ---