Deleted Added
full compact
lance.c (263289) lance.c (270856)
1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace

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

60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
62 * SUCH DAMAGE.
63 *
64 * @(#)if_le.c 8.2 (Berkeley) 11/16/93
65 */
66
67#include <sys/cdefs.h>
1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace

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

60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
62 * SUCH DAMAGE.
63 *
64 * @(#)if_le.c 8.2 (Berkeley) 11/16/93
65 */
66
67#include <sys/cdefs.h>
68__FBSDID("$FreeBSD: head/sys/dev/le/lance.c 263289 2014-03-18 01:40:25Z emaste $");
68__FBSDID("$FreeBSD: head/sys/dev/le/lance.c 270856 2014-08-30 19:55:54Z glebius $");
69
70#include <sys/param.h>
71#include <sys/bus.h>
72#include <sys/endian.h>
73#include <sys/lock.h>
74#include <sys/kernel.h>
75#include <sys/mbuf.h>
76#include <sys/mutex.h>

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

191lance_attach(struct lance_softc *sc)
192{
193 struct ifnet *ifp = sc->sc_ifp;
194
195 /* Attach the interface. */
196 ether_ifattach(ifp, sc->sc_enaddr);
197
198 /* Claim 802.1q capability. */
69
70#include <sys/param.h>
71#include <sys/bus.h>
72#include <sys/endian.h>
73#include <sys/lock.h>
74#include <sys/kernel.h>
75#include <sys/mbuf.h>
76#include <sys/mutex.h>

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

191lance_attach(struct lance_softc *sc)
192{
193 struct ifnet *ifp = sc->sc_ifp;
194
195 /* Attach the interface. */
196 ether_ifattach(ifp, sc->sc_enaddr);
197
198 /* Claim 802.1q capability. */
199 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
199 ifp->if_hdrlen = sizeof(struct ether_vlan_header);
200 ifp->if_capabilities |= IFCAP_VLAN_MTU;
201 ifp->if_capenable |= IFCAP_VLAN_MTU;
202}
203
204void
205lance_detach(struct lance_softc *sc)
206{
207 struct ifnet *ifp = sc->sc_ifp;

--- 610 unchanged lines hidden ---
200 ifp->if_capabilities |= IFCAP_VLAN_MTU;
201 ifp->if_capenable |= IFCAP_VLAN_MTU;
202}
203
204void
205lance_detach(struct lance_softc *sc)
206{
207 struct ifnet *ifp = sc->sc_ifp;

--- 610 unchanged lines hidden ---