Deleted Added
full compact
if_ex.c (201794) if_ex.c (207554)
1/*-
2 * Copyright (c) 1996, Javier Mart�n Rueda (jmrueda@diatel.upm.es)
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

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

25 * SUCH DAMAGE.
26 *
27 *
28 * MAINTAINER: Matthew N. Dodd <winter@jurai.net>
29 * <mdodd@FreeBSD.org>
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1996, Javier Mart�n Rueda (jmrueda@diatel.upm.es)
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

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

25 * SUCH DAMAGE.
26 *
27 *
28 * MAINTAINER: Matthew N. Dodd <winter@jurai.net>
29 * <mdodd@FreeBSD.org>
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/ex/if_ex.c 201794 2010-01-08 15:44:49Z trasz $");
33__FBSDID("$FreeBSD: head/sys/dev/ex/if_ex.c 207554 2010-05-03 07:32:50Z sobomax $");
34
35/*
36 * Intel EtherExpress Pro/10, Pro/10+ Ethernet driver
37 *
38 * Revision history:
39 *
40 * dd-mmm-yyyy: Multicast support ported from NetBSD's if_iy driver.
41 * 30-Oct-1996: first beta version. Inet and BPF supported, but no multicast.

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

232 */
233 ifp->if_softc = sc;
234 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
235 ifp->if_mtu = ETHERMTU;
236 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
237 ifp->if_start = ex_start;
238 ifp->if_ioctl = ex_ioctl;
239 ifp->if_init = ex_init;
34
35/*
36 * Intel EtherExpress Pro/10, Pro/10+ Ethernet driver
37 *
38 * Revision history:
39 *
40 * dd-mmm-yyyy: Multicast support ported from NetBSD's if_iy driver.
41 * 30-Oct-1996: first beta version. Inet and BPF supported, but no multicast.

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

232 */
233 ifp->if_softc = sc;
234 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
235 ifp->if_mtu = ETHERMTU;
236 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
237 ifp->if_start = ex_start;
238 ifp->if_ioctl = ex_ioctl;
239 ifp->if_init = ex_init;
240 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
240 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
241
242 ifmedia_init(&sc->ifmedia, 0, ex_ifmedia_upd, ex_ifmedia_sts);
243 mtx_init(&sc->lock, device_get_nameunit(dev), MTX_NETWORK_LOCK,
244 MTX_DEF);
245 callout_init_mtx(&sc->timer, &sc->lock, 0);
246
247 temp = ex_eeprom_read(sc, EE_W5);
248 if (temp & EE_W5_PORT_TPE)

--- 834 unchanged lines hidden ---
241
242 ifmedia_init(&sc->ifmedia, 0, ex_ifmedia_upd, ex_ifmedia_sts);
243 mtx_init(&sc->lock, device_get_nameunit(dev), MTX_NETWORK_LOCK,
244 MTX_DEF);
245 callout_init_mtx(&sc->timer, &sc->lock, 0);
246
247 temp = ex_eeprom_read(sc, EE_W5);
248 if (temp & EE_W5_PORT_TPE)

--- 834 unchanged lines hidden ---