Deleted Added
full compact
if_nge.c (219902) if_nge.c (221407)
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001
4 * Bill Paul <wpaul@bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001
4 * Bill Paul <wpaul@bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/nge/if_nge.c 219902 2011-03-23 13:10:15Z jhb $");
35__FBSDID("$FreeBSD: head/sys/dev/nge/if_nge.c 221407 2011-05-03 19:51:29Z marius $");
36
37/*
38 * National Semiconductor DP83820/DP83821 gigabit ethernet driver
39 * for FreeBSD. Datasheets are available from:
40 *
41 * http://www.national.com/ds/DP/DP83820.pdf
42 * http://www.national.com/ds/DP/DP83821.pdf
43 *

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

2391 struct nge_softc *sc;
2392 struct mii_data *mii;
2393 struct mii_softc *miisc;
2394 int error;
2395
2396 sc = ifp->if_softc;
2397 NGE_LOCK(sc);
2398 mii = device_get_softc(sc->nge_miibus);
36
37/*
38 * National Semiconductor DP83820/DP83821 gigabit ethernet driver
39 * for FreeBSD. Datasheets are available from:
40 *
41 * http://www.national.com/ds/DP/DP83820.pdf
42 * http://www.national.com/ds/DP/DP83821.pdf
43 *

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

2391 struct nge_softc *sc;
2392 struct mii_data *mii;
2393 struct mii_softc *miisc;
2394 int error;
2395
2396 sc = ifp->if_softc;
2397 NGE_LOCK(sc);
2398 mii = device_get_softc(sc->nge_miibus);
2399 if (mii->mii_instance) {
2400 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
2401 mii_phy_reset(miisc);
2402 }
2399 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
2400 PHY_RESET(miisc);
2403 error = mii_mediachg(mii);
2404 NGE_UNLOCK(sc);
2405
2406 return (error);
2407}
2408
2409/*
2410 * Report current media status.

--- 490 unchanged lines hidden ---
2401 error = mii_mediachg(mii);
2402 NGE_UNLOCK(sc);
2403
2404 return (error);
2405}
2406
2407/*
2408 * Report current media status.

--- 490 unchanged lines hidden ---