udbp.c (189275) | udbp.c (190186) |
---|---|
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 189275 2009-03-02 05:37:05Z thompsa $"); | 32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/udbp.c 190186 2009-03-20 22:10:36Z 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 --- 166 unchanged lines hidden (view full) --- 207 .mh.callback = &udbp_bulk_read_callback, 208 }, 209 210 [UDBP_T_WR_CS] = { 211 .type = UE_CONTROL, 212 .endpoint = 0x00, /* Control pipe */ 213 .direction = UE_DIR_ANY, 214 .mh.bufsize = sizeof(struct usb2_device_request), | 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 --- 166 unchanged lines hidden (view full) --- 207 .mh.callback = &udbp_bulk_read_callback, 208 }, 209 210 [UDBP_T_WR_CS] = { 211 .type = UE_CONTROL, 212 .endpoint = 0x00, /* Control pipe */ 213 .direction = UE_DIR_ANY, 214 .mh.bufsize = sizeof(struct usb2_device_request), |
215 .mh.flags = {}, | |
216 .mh.callback = &udbp_bulk_write_clear_stall_callback, 217 .mh.timeout = 1000, /* 1 second */ 218 .mh.interval = 50, /* 50ms */ 219 }, 220 221 [UDBP_T_RD_CS] = { 222 .type = UE_CONTROL, 223 .endpoint = 0x00, /* Control pipe */ 224 .direction = UE_DIR_ANY, 225 .mh.bufsize = sizeof(struct usb2_device_request), | 215 .mh.callback = &udbp_bulk_write_clear_stall_callback, 216 .mh.timeout = 1000, /* 1 second */ 217 .mh.interval = 50, /* 50ms */ 218 }, 219 220 [UDBP_T_RD_CS] = { 221 .type = UE_CONTROL, 222 .endpoint = 0x00, /* Control pipe */ 223 .direction = UE_DIR_ANY, 224 .mh.bufsize = sizeof(struct usb2_device_request), |
226 .mh.flags = {}, | |
227 .mh.callback = &udbp_bulk_read_clear_stall_callback, 228 .mh.timeout = 1000, /* 1 second */ 229 .mh.interval = 50, /* 50ms */ 230 }, 231}; 232 233static devclass_t udbp_devclass; 234 --- 619 unchanged lines hidden --- | 225 .mh.callback = &udbp_bulk_read_clear_stall_callback, 226 .mh.timeout = 1000, /* 1 second */ 227 .mh.interval = 50, /* 50ms */ 228 }, 229}; 230 231static devclass_t udbp_devclass; 232 --- 619 unchanged lines hidden --- |