Deleted Added
full compact
udbp.c (184610) udbp.c (185948)
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/usb2/misc/udbp2.c 184610 2008-11-04 02:31:03Z alfred $");
32__FBSDID("$FreeBSD: head/sys/dev/usb2/misc/udbp2.c 185948 2008-12-11 23:13:02Z 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

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

128static device_attach_t udbp_attach;
129static device_detach_t udbp_detach;
130
131static usb2_callback_t udbp_bulk_read_callback;
132static usb2_callback_t udbp_bulk_read_clear_stall_callback;
133static usb2_callback_t udbp_bulk_write_callback;
134static usb2_callback_t udbp_bulk_write_clear_stall_callback;
135
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

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

128static device_attach_t udbp_attach;
129static device_detach_t udbp_detach;
130
131static usb2_callback_t udbp_bulk_read_callback;
132static usb2_callback_t udbp_bulk_read_clear_stall_callback;
133static usb2_callback_t udbp_bulk_write_callback;
134static usb2_callback_t udbp_bulk_write_clear_stall_callback;
135
136static void udbp_bulk_read_complete(node_p node, hook_p hook, void *arg1, int arg2);
136static void udbp_bulk_read_complete(node_p, hook_p, void *, int);
137
137
138static ng_constructor_t ng_udbp_constructor;
139static ng_rcvmsg_t ng_udbp_rcvmsg;
140static ng_shutdown_t ng_udbp_rmnode;
141static ng_newhook_t ng_udbp_newhook;
142static ng_connect_t ng_udbp_connect;
143static ng_rcvdata_t ng_udbp_rcvdata;
144static ng_disconnect_t ng_udbp_disconnect;
138static ng_constructor_t ng_udbp_constructor;
139static ng_rcvmsg_t ng_udbp_rcvmsg;
140static ng_shutdown_t ng_udbp_rmnode;
141static ng_newhook_t ng_udbp_newhook;
142static ng_connect_t ng_udbp_connect;
143static ng_rcvdata_t ng_udbp_rcvdata;
144static ng_disconnect_t ng_udbp_disconnect;
145
146/* Parse type for struct ngudbpstat */
147static const struct ng_parse_struct_field
148 ng_udbp_stat_type_fields[] = NG_UDBP_STATS_TYPE_INFO;
149
150static const struct ng_parse_type ng_udbp_stat_type = {
151 &ng_parse_struct_type,
152 &ng_udbp_stat_type_fields

--- 709 unchanged lines hidden ---
145
146/* Parse type for struct ngudbpstat */
147static const struct ng_parse_struct_field
148 ng_udbp_stat_type_fields[] = NG_UDBP_STATS_TYPE_INFO;
149
150static const struct ng_parse_type ng_udbp_stat_type = {
151 &ng_parse_struct_type,
152 &ng_udbp_stat_type_fields

--- 709 unchanged lines hidden ---