Deleted Added
full compact
if_de.c (148445) if_de.c (148654)
1/* $NetBSD: if_de.c,v 1.86 1999/06/01 19:17:59 thorpej Exp $ */
2/*-
3 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

31 * Written by Matt Thomas
32 * BPF support code stolen directly from if_ec.c
33 *
34 * This driver supports the DEC DE435 or any other PCI
35 * board which support 21040, 21041, or 21140 (mostly).
36 */
37
38#include <sys/cdefs.h>
1/* $NetBSD: if_de.c,v 1.86 1999/06/01 19:17:59 thorpej Exp $ */
2/*-
3 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

31 * Written by Matt Thomas
32 * BPF support code stolen directly from if_ec.c
33 *
34 * This driver supports the DEC DE435 or any other PCI
35 * board which support 21040, 21041, or 21140 (mostly).
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/de/if_de.c 148445 2005-07-27 13:51:01Z jhb $");
39__FBSDID("$FreeBSD: head/sys/dev/de/if_de.c 148654 2005-08-03 00:18:35Z rwatson $");
40
41#define TULIP_HDR_DATA
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/endian.h>
46#include <sys/mbuf.h>
47#include <sys/socket.h>

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

3021 sc->tulip_cmdmode &= ~TULIP_CMD_RXRUN;
3022 sc->tulip_intrmask &= ~TULIP_STS_RXSTOPPED;
3023#if defined(IFF_ALLMULTI)
3024 if (sc->tulip_ifp->if_flags & IFF_ALLMULTI)
3025 sc->tulip_flags |= TULIP_ALLMULTI ;
3026#endif
3027
3028 multicnt = 0;
40
41#define TULIP_HDR_DATA
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/endian.h>
46#include <sys/mbuf.h>
47#include <sys/socket.h>

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

3021 sc->tulip_cmdmode &= ~TULIP_CMD_RXRUN;
3022 sc->tulip_intrmask &= ~TULIP_STS_RXSTOPPED;
3023#if defined(IFF_ALLMULTI)
3024 if (sc->tulip_ifp->if_flags & IFF_ALLMULTI)
3025 sc->tulip_flags |= TULIP_ALLMULTI ;
3026#endif
3027
3028 multicnt = 0;
3029 IF_ADDR_LOCK(sc->tulip_ifp);
3029 TAILQ_FOREACH(ifma, &sc->tulip_ifp->if_multiaddrs, ifma_link) {
3030
3031 if (ifma->ifma_addr->sa_family == AF_LINK)
3032 multicnt++;
3033 }
3034
3035 if (multicnt > 14) {
3036 u_int32_t *sp = sc->tulip_setupdata;

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

3142 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[2] << 16;
3143#else
3144 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[0];
3145 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[1];
3146 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[2];
3147#endif
3148 }
3149 }
3030 TAILQ_FOREACH(ifma, &sc->tulip_ifp->if_multiaddrs, ifma_link) {
3031
3032 if (ifma->ifma_addr->sa_family == AF_LINK)
3033 multicnt++;
3034 }
3035
3036 if (multicnt > 14) {
3037 u_int32_t *sp = sc->tulip_setupdata;

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

3143 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[2] << 16;
3144#else
3145 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[0];
3146 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[1];
3147 *sp++ = ((u_int16_t *) IFP2ENADDR(sc->tulip_ifp))[2];
3148#endif
3149 }
3150 }
3151 IF_ADDR_UNLOCK(sc->tulip_ifp);
3150#if defined(IFF_ALLMULTI)
3151 if (sc->tulip_flags & TULIP_ALLMULTI)
3152 sc->tulip_ifp->if_flags |= IFF_ALLMULTI;
3153#endif
3154}
3155
3156static void
3157tulip_reset(

--- 1962 unchanged lines hidden ---
3152#if defined(IFF_ALLMULTI)
3153 if (sc->tulip_flags & TULIP_ALLMULTI)
3154 sc->tulip_ifp->if_flags |= IFF_ALLMULTI;
3155#endif
3156}
3157
3158static void
3159tulip_reset(

--- 1962 unchanged lines hidden ---