Deleted Added
full compact
if_tx.c (257176) if_tx.c (266270)
1/*-
2 * Copyright (c) 1997 Semen Ustimenko (semenu@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

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

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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/tx/if_tx.c 257176 2013-10-26 17:58:36Z glebius $");
28__FBSDID("$FreeBSD: head/sys/dev/tx/if_tx.c 266270 2014-05-16 21:19:17Z brueffer $");
29
30/*
31 * EtherPower II 10/100 Fast Ethernet (SMC 9432 serie)
32 *
33 * These cards are based on SMC83c17x (EPIC) chip and one of the various
34 * PHYs (QS6612, AC101 and LXT970 were seen). The media support depends on
35 * card model. All cards support 10baseT/UTP and 100baseTX half- and full-
36 * duplex (SMB9432TX). SMC9432BTX also supports 10baseT/BNC. SMC9432FTX also

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

1146/*
1147 * Report current media status.
1148 */
1149static void
1150epic_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
1151{
1152 epic_softc_t *sc;
1153 struct mii_data *mii;
29
30/*
31 * EtherPower II 10/100 Fast Ethernet (SMC 9432 serie)
32 *
33 * These cards are based on SMC83c17x (EPIC) chip and one of the various
34 * PHYs (QS6612, AC101 and LXT970 were seen). The media support depends on
35 * card model. All cards support 10baseT/UTP and 100baseTX half- and full-
36 * duplex (SMB9432TX). SMC9432BTX also supports 10baseT/BNC. SMC9432FTX also

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

1146/*
1147 * Report current media status.
1148 */
1149static void
1150epic_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
1151{
1152 epic_softc_t *sc;
1153 struct mii_data *mii;
1154 struct ifmedia *ifm;
1155
1156 sc = ifp->if_softc;
1157 mii = device_get_softc(sc->miibus);
1158 EPIC_LOCK(sc);
1154
1155 sc = ifp->if_softc;
1156 mii = device_get_softc(sc->miibus);
1157 EPIC_LOCK(sc);
1159 ifm = &mii->mii_media;
1160
1161 /* Nothing should be selected if interface is down. */
1162 if ((ifp->if_flags & IFF_UP) == 0) {
1163 ifmr->ifm_active = IFM_NONE;
1164 ifmr->ifm_status = 0;
1165 EPIC_UNLOCK(sc);
1166 return;
1167 }

--- 691 unchanged lines hidden ---
1158
1159 /* Nothing should be selected if interface is down. */
1160 if ((ifp->if_flags & IFF_UP) == 0) {
1161 ifmr->ifm_active = IFM_NONE;
1162 ifmr->ifm_status = 0;
1163 EPIC_UNLOCK(sc);
1164 return;
1165 }

--- 691 unchanged lines hidden ---