Deleted Added
full compact
udbp.c (192499) udbp.c (192502)
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 192499 2009-05-21 00:04:17Z thompsa $");
32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/udbp.c 192502 2009-05-21 01:48:42Z 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

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

78#include <netgraph/ng_parse.h>
79#include <netgraph/bluetooth/include/ng_bluetooth.h>
80
81#include <dev/usb/misc/udbp.h>
82
83#if USB_DEBUG
84static int udbp_debug = 0;
85
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

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

78#include <netgraph/ng_parse.h>
79#include <netgraph/bluetooth/include/ng_bluetooth.h>
80
81#include <dev/usb/misc/udbp.h>
82
83#if USB_DEBUG
84static int udbp_debug = 0;
85
86SYSCTL_NODE(_hw_usb2, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp");
87SYSCTL_INT(_hw_usb2_udbp, OID_AUTO, debug, CTLFLAG_RW,
86SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp");
87SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RW,
88 &udbp_debug, 0, "udbp debug level");
89#endif
90
91#define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in
92 * msecs */
93#define UDBP_BUFFERSIZE MCLBYTES /* maximum number of bytes in one
94 * transfer */
95#define UDBP_T_WR 0

--- 756 unchanged lines hidden ---
88 &udbp_debug, 0, "udbp debug level");
89#endif
90
91#define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in
92 * msecs */
93#define UDBP_BUFFERSIZE MCLBYTES /* maximum number of bytes in one
94 * transfer */
95#define UDBP_T_WR 0

--- 756 unchanged lines hidden ---