Deleted Added
full compact
if_arge.c (220357) if_arge.c (221407)
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko
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) 2009, Oleksandr Tymoshenko
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/mips/atheros/if_arge.c 220357 2011-04-05 06:46:07Z adrian $");
29__FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 221407 2011-05-03 19:51:29Z marius $");
30
31/*
32 * AR71XX gigabit ethernet driver
33 */
34#ifdef HAVE_KERNEL_OPTION_HEADERS
35#include "opt_device_polling.h"
36#endif
37

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

1174 struct arge_softc *sc;
1175 struct mii_data *mii;
1176 struct mii_softc *miisc;
1177 int error;
1178
1179 sc = ifp->if_softc;
1180 ARGE_LOCK(sc);
1181 mii = device_get_softc(sc->arge_miibus);
30
31/*
32 * AR71XX gigabit ethernet driver
33 */
34#ifdef HAVE_KERNEL_OPTION_HEADERS
35#include "opt_device_polling.h"
36#endif
37

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

1174 struct arge_softc *sc;
1175 struct mii_data *mii;
1176 struct mii_softc *miisc;
1177 int error;
1178
1179 sc = ifp->if_softc;
1180 ARGE_LOCK(sc);
1181 mii = device_get_softc(sc->arge_miibus);
1182 if (mii->mii_instance) {
1183 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
1184 mii_phy_reset(miisc);
1185 }
1182 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
1183 PHY_RESET(miisc);
1186 error = mii_mediachg(mii);
1187 ARGE_UNLOCK(sc);
1188
1189 return (error);
1190}
1191
1192/*
1193 * Report current media status.

--- 743 unchanged lines hidden ---
1184 error = mii_mediachg(mii);
1185 ARGE_UNLOCK(sc);
1186
1187 return (error);
1188}
1189
1190/*
1191 * Report current media status.

--- 743 unchanged lines hidden ---