Deleted Added
full compact
if_cdce.c (200307) if_cdce.c (207077)
1/* $NetBSD: if_cdce.c,v 1.4 2004/10/24 12:50:54 augustss Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com>
5 * Copyright (c) 2003-2005 Craig Boston
6 * Copyright (c) 2004 Daniel Hartmeier
7 * Copyright (c) 2009 Hans Petter Selasky
8 * All rights reserved.

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

41 */
42
43/*
44 * USB Network Control Model (NCM)
45 * http://www.usb.org/developers/devclass_docs/NCM10.zip
46 */
47
48#include <sys/cdefs.h>
1/* $NetBSD: if_cdce.c,v 1.4 2004/10/24 12:50:54 augustss Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com>
5 * Copyright (c) 2003-2005 Craig Boston
6 * Copyright (c) 2004 Daniel Hartmeier
7 * Copyright (c) 2009 Hans Petter Selasky
8 * All rights reserved.

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

41 */
42
43/*
44 * USB Network Control Model (NCM)
45 * http://www.usb.org/developers/devclass_docs/NCM10.zip
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_cdce.c 200307 2009-12-09 20:27:06Z thompsa $");
49__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_cdce.c 207077 2010-04-22 21:31:34Z thompsa $");
50
51#include <sys/stdint.h>
52#include <sys/stddef.h>
53#include <sys/param.h>
54#include <sys/queue.h>
55#include <sys/types.h>
56#include <sys/systm.h>
57#include <sys/kernel.h>

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

103static uether_fn_t cdce_init;
104static uether_fn_t cdce_stop;
105static uether_fn_t cdce_start;
106static uether_fn_t cdce_setmulti;
107static uether_fn_t cdce_setpromisc;
108
109static uint32_t cdce_m_crc32(struct mbuf *, uint32_t, uint32_t);
110
50
51#include <sys/stdint.h>
52#include <sys/stddef.h>
53#include <sys/param.h>
54#include <sys/queue.h>
55#include <sys/types.h>
56#include <sys/systm.h>
57#include <sys/kernel.h>

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

103static uether_fn_t cdce_init;
104static uether_fn_t cdce_stop;
105static uether_fn_t cdce_start;
106static uether_fn_t cdce_setmulti;
107static uether_fn_t cdce_setpromisc;
108
109static uint32_t cdce_m_crc32(struct mbuf *, uint32_t, uint32_t);
110
111#if USB_DEBUG
111#ifdef USB_DEBUG
112static int cdce_debug = 0;
113
114SYSCTL_NODE(_hw_usb, OID_AUTO, cdce, CTLFLAG_RW, 0, "USB CDC-Ethernet");
115SYSCTL_INT(_hw_usb_cdce, OID_AUTO, debug, CTLFLAG_RW, &cdce_debug, 0,
116 "Debug level");
117#endif
118
119static const struct usb_config cdce_config[CDCE_N_TRANSFER] = {

--- 1199 unchanged lines hidden ---
112static int cdce_debug = 0;
113
114SYSCTL_NODE(_hw_usb, OID_AUTO, cdce, CTLFLAG_RW, 0, "USB CDC-Ethernet");
115SYSCTL_INT(_hw_usb_cdce, OID_AUTO, debug, CTLFLAG_RW, &cdce_debug, 0,
116 "Debug level");
117#endif
118
119static const struct usb_config cdce_config[CDCE_N_TRANSFER] = {

--- 1199 unchanged lines hidden ---