1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */ |
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> |
71 |
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 |
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 --- |