Deleted Added
full compact
smc90cx6.c (109771) smc90cx6.c (110106)
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 109771 2003-01-24 01:32:20Z fjoe $ */
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 110106 2003-01-30 15:55:02Z fjoe $ */
3
4/*-
5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Ignatios Souvatzis.
10 *

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

63#if __FreeBSD_version < 500000
64#include <machine/clock.h>
65#endif
66
67#include <net/if.h>
68#include <net/if_dl.h>
69#include <net/if_types.h>
70#include <net/if_arc.h>
3
4/*-
5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Ignatios Souvatzis.
10 *

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

63#if __FreeBSD_version < 500000
64#include <machine/clock.h>
65#endif
66
67#include <net/if.h>
68#include <net/if_dl.h>
69#include <net/if_types.h>
70#include <net/if_arc.h>
71#include <net/bpf.h>
72
71
73#if 0
74#if NBPFILTER > 0
75#include <net/bpfdesc.h>
76#endif
77#endif
78
79#include <dev/cm/smc90cx6reg.h>
80#include <dev/cm/smc90cx6var.h>
81
82MODULE_DEPEND(if_cm, arcnet, 1, 1, 1);
83
84/* these should be elsewhere */
85
86#define ARC_MIN_LEN 1

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

507 m = arc_frag_next(ifp);
508 buffer = sc->sc_tx_act ^ 1;
509
510 splx(s);
511
512 if (m == 0)
513 return;
514
72#include <dev/cm/smc90cx6reg.h>
73#include <dev/cm/smc90cx6var.h>
74
75MODULE_DEPEND(if_cm, arcnet, 1, 1, 1);
76
77/* these should be elsewhere */
78
79#define ARC_MIN_LEN 1

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

500 m = arc_frag_next(ifp);
501 buffer = sc->sc_tx_act ^ 1;
502
503 splx(s);
504
505 if (m == 0)
506 return;
507
515 /*
516 * If bpf is listening on this interface, let it
517 * see the packet before we commit it to the wire
518 *
519 * (can't give the copy in A2060 card RAM to bpf, because
520 * that RAM is just accessed as on every other byte)
521 */
522 BPF_MTAP(ifp, m);
523
524#ifdef CM_DEBUG
525 if (m->m_len < ARC_HDRLEN)
526 m = m_pullup(m, ARC_HDRLEN);/* gcc does structure padding */
527 if_printf(ifp, "start: filling %d from %d to %d type %d\n",
528 buffer, mtod(m, u_char *)[0],
529 mtod(m, u_char *)[1], mtod(m, u_char *)[2]);
530#else
531 if (m->m_len < 2)

--- 537 unchanged lines hidden ---
508#ifdef CM_DEBUG
509 if (m->m_len < ARC_HDRLEN)
510 m = m_pullup(m, ARC_HDRLEN);/* gcc does structure padding */
511 if_printf(ifp, "start: filling %d from %d to %d type %d\n",
512 buffer, mtod(m, u_char *)[0],
513 mtod(m, u_char *)[1], mtod(m, u_char *)[2]);
514#else
515 if (m->m_len < 2)

--- 537 unchanged lines hidden ---