Deleted Added
full compact
if_aue.c (217265) if_aue.c (221407)
1/*-
2 * Copyright (c) 1997, 1998, 1999, 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
4 *
5 * Copyright (c) 2006
6 * Alfred Perlstein <alfred@FreeBSD.org>. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33 * THE POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, 1998, 1999, 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
4 *
5 * Copyright (c) 2006
6 * Alfred Perlstein <alfred@FreeBSD.org>. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33 * THE POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_aue.c 217265 2011-01-11 13:59:06Z jhb $");
37__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_aue.c 221407 2011-05-03 19:51:29Z marius $");
38
39/*
40 * ADMtek AN986 Pegasus and AN8511 Pegasus II USB to ethernet driver.
41 * Datasheet is available from http://www.admtek.com.tw.
42 *
43 * Written by Bill Paul <wpaul@ee.columbia.edu>
44 * Electrical Engineering Department
45 * Columbia University, New York City

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

1006/*
1007 * Set media options.
1008 */
1009static int
1010aue_ifmedia_upd(struct ifnet *ifp)
1011{
1012 struct aue_softc *sc = ifp->if_softc;
1013 struct mii_data *mii = GET_MII(sc);
38
39/*
40 * ADMtek AN986 Pegasus and AN8511 Pegasus II USB to ethernet driver.
41 * Datasheet is available from http://www.admtek.com.tw.
42 *
43 * Written by Bill Paul <wpaul@ee.columbia.edu>
44 * Electrical Engineering Department
45 * Columbia University, New York City

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

1006/*
1007 * Set media options.
1008 */
1009static int
1010aue_ifmedia_upd(struct ifnet *ifp)
1011{
1012 struct aue_softc *sc = ifp->if_softc;
1013 struct mii_data *mii = GET_MII(sc);
1014 struct mii_softc *miisc;
1014
1015 AUE_LOCK_ASSERT(sc, MA_OWNED);
1016
1017 sc->sc_flags &= ~AUE_FLAG_LINK;
1015
1016 AUE_LOCK_ASSERT(sc, MA_OWNED);
1017
1018 sc->sc_flags &= ~AUE_FLAG_LINK;
1018 if (mii->mii_instance) {
1019 struct mii_softc *miisc;
1020
1021 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
1022 mii_phy_reset(miisc);
1023 }
1019 LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
1020 PHY_RESET(miisc);
1024 mii_mediachg(mii);
1025 return (0);
1026}
1027
1028/*
1029 * Report current media status.
1030 */
1031static void

--- 38 unchanged lines hidden ---
1021 mii_mediachg(mii);
1022 return (0);
1023}
1024
1025/*
1026 * Report current media status.
1027 */
1028static void

--- 38 unchanged lines hidden ---