Deleted Added
full compact
if_tl.c (46561) if_tl.c (46568)
1/*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 *
1/*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 * $Id: if_tl.c,v 1.29 1999/04/24 20:14:01 peter Exp $
32 * $Id: if_tl.c,v 1.30 1999/05/06 15:32:49 wpaul Exp $
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

216#define TL_USEIOSPACE
217
218/* #define TL_BACKGROUND_AUTONEG */
219
220#include <pci/if_tlreg.h>
221
222#if !defined(lint)
223static const char rcsid[] =
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

216#define TL_USEIOSPACE
217
218/* #define TL_BACKGROUND_AUTONEG */
219
220#include <pci/if_tlreg.h>
221
222#if !defined(lint)
223static const char rcsid[] =
224 "$Id: if_tl.c,v 1.29 1999/04/24 20:14:01 peter Exp $";
224 "$Id: if_tl.c,v 1.30 1999/05/06 15:32:49 wpaul Exp $";
225#endif
226
227/*
228 * Various supported device vendors/types and their names.
229 */
230
231static struct tl_type tl_devs[] = {
232 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

1406 printf("tl%d: phy at mii address %d\n", sc->tl_unit,
1407 sc->tl_phy_addr);
1408
1409 printf("tl%d: %s ", sc->tl_unit, sc->tl_pinfo->tl_name);
1410 }
1411
1412 if (sc->tl_phy_sts & PHY_BMSR_100BT4 ||
1413 sc->tl_phy_sts & PHY_BMSR_100BTXHALF ||
225#endif
226
227/*
228 * Various supported device vendors/types and their names.
229 */
230
231static struct tl_type tl_devs[] = {
232 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

1406 printf("tl%d: phy at mii address %d\n", sc->tl_unit,
1407 sc->tl_phy_addr);
1408
1409 printf("tl%d: %s ", sc->tl_unit, sc->tl_pinfo->tl_name);
1410 }
1411
1412 if (sc->tl_phy_sts & PHY_BMSR_100BT4 ||
1413 sc->tl_phy_sts & PHY_BMSR_100BTXHALF ||
1414 sc->tl_phy_sts & PHY_BMSR_100BTXHALF)
1414 sc->tl_phy_sts & PHY_BMSR_100BTXHALF) {
1415 if (bootverbose)
1416 printf("10/100Mbps ");
1415 if (bootverbose)
1416 printf("10/100Mbps ");
1417 else {
1417 } else {
1418 media &= ~IFM_100_TX;
1419 media |= IFM_10_T;
1420 if (bootverbose)
1421 printf("10Mbps ");
1422 }
1423
1424 if (sc->tl_phy_sts & PHY_BMSR_100BTXFULL ||
1418 media &= ~IFM_100_TX;
1419 media |= IFM_10_T;
1420 if (bootverbose)
1421 printf("10Mbps ");
1422 }
1423
1424 if (sc->tl_phy_sts & PHY_BMSR_100BTXFULL ||
1425 sc->tl_phy_sts & PHY_BMSR_10BTFULL)
1425 sc->tl_phy_sts & PHY_BMSR_10BTFULL) {
1426 if (bootverbose)
1427 printf("full duplex ");
1426 if (bootverbose)
1427 printf("full duplex ");
1428 else {
1428 } else {
1429 if (bootverbose)
1430 printf("half duplex ");
1431 media &= ~IFM_FDX;
1432 }
1433
1434 if (sc->tl_phy_sts & PHY_BMSR_CANAUTONEG) {
1435 media = IFM_ETHER|IFM_AUTO;
1436 if (bootverbose)

--- 1401 unchanged lines hidden ---
1429 if (bootverbose)
1430 printf("half duplex ");
1431 media &= ~IFM_FDX;
1432 }
1433
1434 if (sc->tl_phy_sts & PHY_BMSR_CANAUTONEG) {
1435 media = IFM_ETHER|IFM_AUTO;
1436 if (bootverbose)

--- 1401 unchanged lines hidden ---