udbp.c (196219) | udbp.c (207077) |
---|---|
1/*- 2 * Copyright (c) 1996-2000 Whistle Communications, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1996-2000 Whistle Communications, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/udbp.c 196219 2009-08-14 20:03:53Z jhb $"); | 32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/udbp.c 207077 2010-04-22 21:31:34Z thompsa $"); |
33 34/* Driver for arbitrary double bulk pipe devices. 35 * The driver assumes that there will be the same driver on the other side. 36 * 37 * XXX Some more information on what the framing of the IP packets looks like. 38 * 39 * To take full advantage of bulk transmission, packets should be chosen 40 * between 1k and 5k in size (1k to make sure the sending side starts --- 48 unchanged lines hidden (view full) --- 89 90#include <netgraph/ng_message.h> 91#include <netgraph/netgraph.h> 92#include <netgraph/ng_parse.h> 93#include <netgraph/bluetooth/include/ng_bluetooth.h> 94 95#include <dev/usb/misc/udbp.h> 96 | 33 34/* Driver for arbitrary double bulk pipe devices. 35 * The driver assumes that there will be the same driver on the other side. 36 * 37 * XXX Some more information on what the framing of the IP packets looks like. 38 * 39 * To take full advantage of bulk transmission, packets should be chosen 40 * between 1k and 5k in size (1k to make sure the sending side starts --- 48 unchanged lines hidden (view full) --- 89 90#include <netgraph/ng_message.h> 91#include <netgraph/netgraph.h> 92#include <netgraph/ng_parse.h> 93#include <netgraph/bluetooth/include/ng_bluetooth.h> 94 95#include <dev/usb/misc/udbp.h> 96 |
97#if USB_DEBUG | 97#ifdef USB_DEBUG |
98static int udbp_debug = 0; 99 100SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp"); 101SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RW, 102 &udbp_debug, 0, "udbp debug level"); 103#endif 104 105#define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in --- 765 unchanged lines hidden --- | 98static int udbp_debug = 0; 99 100SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp"); 101SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RW, 102 &udbp_debug, 0, "udbp debug level"); 103#endif 104 105#define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in --- 765 unchanged lines hidden --- |