if_vge.c (225736) | if_vge.c (229057) |
---|---|
1/*- 2 * Copyright (c) 2004 3 * Bill Paul <wpaul@windriver.com>. 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) 2004 3 * Bill Paul <wpaul@windriver.com>. 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: stable/9/sys/dev/vge/if_vge.c 225440 2011-09-07 16:57:43Z yongari $"); | 34__FBSDID("$FreeBSD: stable/9/sys/dev/vge/if_vge.c 229057 2011-12-31 01:07:01Z yongari $"); |
35 36/* 37 * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver. 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 2125 unchanged lines hidden (view full) --- 2168 mii = device_get_softc(sc->vge_miibus); 2169 2170 VGE_LOCK(sc); 2171 if ((ifp->if_flags & IFF_UP) == 0) { 2172 VGE_UNLOCK(sc); 2173 return; 2174 } 2175 mii_pollstat(mii); | 35 36/* 37 * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver. 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 2125 unchanged lines hidden (view full) --- 2168 mii = device_get_softc(sc->vge_miibus); 2169 2170 VGE_LOCK(sc); 2171 if ((ifp->if_flags & IFF_UP) == 0) { 2172 VGE_UNLOCK(sc); 2173 return; 2174 } 2175 mii_pollstat(mii); |
2176 VGE_UNLOCK(sc); | |
2177 ifmr->ifm_active = mii->mii_media_active; 2178 ifmr->ifm_status = mii->mii_media_status; | 2176 ifmr->ifm_active = mii->mii_media_active; 2177 ifmr->ifm_status = mii->mii_media_status; |
2178 VGE_UNLOCK(sc); |
|
2179} 2180 2181static void 2182vge_miibus_statchg(device_t dev) 2183{ 2184 struct vge_softc *sc; 2185 struct mii_data *mii; 2186 struct ifmedia_entry *ife; --- 715 unchanged lines hidden --- | 2179} 2180 2181static void 2182vge_miibus_statchg(device_t dev) 2183{ 2184 struct vge_softc *sc; 2185 struct mii_data *mii; 2186 struct ifmedia_entry *ife; --- 715 unchanged lines hidden --- |