udbp.c (190749) | udbp.c (192499) |
---|---|
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 190749 2009-04-05 21:24:15Z piso $"); | 32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/udbp.c 192499 2009-05-21 00:04:17Z 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 --- 233 unchanged lines hidden (view full) --- 274 return (error); 275} 276 277static int 278udbp_probe(device_t dev) 279{ 280 struct usb2_attach_arg *uaa = device_get_ivars(dev); 281 | 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 --- 233 unchanged lines hidden (view full) --- 274 return (error); 275} 276 277static int 278udbp_probe(device_t dev) 279{ 280 struct usb2_attach_arg *uaa = device_get_ivars(dev); 281 |
282 if (uaa->usb2_mode != USB_MODE_HOST) { | 282 if (uaa->usb_mode != USB_MODE_HOST) { |
283 return (ENXIO); 284 } 285 /* 286 * XXX Julian, add the id of the device if you have one to test 287 * things with. run 'usbdevs -v' and note the 3 ID's that appear. 288 * The Vendor Id and Product Id are in hex and the Revision Id is in 289 * bcd. But as usual if the revision is 0x101 then you should 290 * compare the revision id in the device descriptor with 0x101 Or go --- 561 unchanged lines hidden --- | 283 return (ENXIO); 284 } 285 /* 286 * XXX Julian, add the id of the device if you have one to test 287 * things with. run 'usbdevs -v' and note the 3 ID's that appear. 288 * The Vendor Id and Product Id are in hex and the Revision Id is in 289 * bcd. But as usual if the revision is 0x101 then you should 290 * compare the revision id in the device descriptor with 0x101 Or go --- 561 unchanged lines hidden --- |