Deleted Added
full compact
if_jme.c (219902) if_jme.c (221407)
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/jme/if_jme.c 219902 2011-03-23 13:10:15Z jhb $");
29__FBSDID("$FreeBSD: head/sys/dev/jme/if_jme.c 221407 2011-05-03 19:51:29Z marius $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/endian.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/mbuf.h>

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

313 struct jme_softc *sc;
314 struct mii_data *mii;
315 struct mii_softc *miisc;
316 int error;
317
318 sc = ifp->if_softc;
319 JME_LOCK(sc);
320 mii = device_get_softc(sc->jme_miibus);
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/endian.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/mbuf.h>

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

313 struct jme_softc *sc;
314 struct mii_data *mii;
315 struct mii_softc *miisc;
316 int error;
317
318 sc = ifp->if_softc;
319 JME_LOCK(sc);
320 mii = device_get_softc(sc->jme_miibus);
321 if (mii->mii_instance != 0) {
322 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
323 mii_phy_reset(miisc);
324 }
321 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
322 PHY_RESET(miisc);
325 error = mii_mediachg(mii);
326 JME_UNLOCK(sc);
327
328 return (error);
329}
330
331static int
332jme_probe(device_t dev)

--- 3128 unchanged lines hidden ---
323 error = mii_mediachg(mii);
324 JME_UNLOCK(sc);
325
326 return (error);
327}
328
329static int
330jme_probe(device_t dev)

--- 3128 unchanged lines hidden ---