1 .\" Copyright (c) 2004 Daniel Hartmeier
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
8 .\" - Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" - Redistributions in binary form must reproduce the above
11 .\" copyright notice, this list of conditions and the following
12 .\" disclaimer in the documentation and/or other materials provided
13 .\" with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
25 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
28 .\" $NetBSD: cdce.4,v 1.4 2004/12/08 18:35:56 peter Exp $
35 .Nd USB Communication Device Class Ethernet driver
37 .Cd "cdce* at uhub? port ?"
41 driver provides support for USB Host-to-Host (aka USB-to-USB) bridges
42 based on the USB Communication Device Class (CDC) and Ethernet subclass,
43 including the following:
52 The USB bridge appears as a regular network interface on both sides,
53 transporting Ethernet frames.
55 For more information on configuring this device, see
58 USB 1.x bridges support speeds of up to 12Mbps, and USB 2.0 speeds of
62 received and transmitted over separate USB bulk transfer endpoints.
66 driver does not support different media types or options.
69 .It "cdce%d: no union descriptor"
70 The driver couldn't fetch an interface descriptor from the USB
72 For a manually added USB vendor/product, the CDCE_NO_UNION flag
73 can be tried to work around the missing descriptor.
74 .It "cdce%d: no data interface"
75 .It "cdce%d: could not read endpoint descriptor"
76 .It "cdce%d: unexpected endpoint"
77 .It "cdce%d: could not find data bulk in/out"
78 For a manually added USB vendor/product, these errors indicate
79 that the bridge is not compatible with the driver.
80 .It "cdce%d: watchdog timeout"
81 A packet was queued for transmission and a transmit command was
82 issued, however the device failed to acknowledge the transmission
83 before a timeout expired.
84 .It "cdce%d: no memory for rx list -- packet dropped!"
85 Memory allocation through MGETHDR or MCLGET failed, the system
86 is running low on mbufs.
87 .It "cdce%d: abort/close rx/tx pipe failed"
88 .It "cdce%d: rx/tx list init failed"
89 .It "cdce%d: open rx/tx pipe failed"
90 .It "cdce%d: usb error on rx/tx"
97 .\" .Xr hostname.if 5 ,
100 .%T "Universal Serial Bus Class Definitions for Communication Devices"
101 .%O http://www.usb.org/developers/devclass_docs/usbcdc11.pdf
104 .%T "Data sheet Prolific PL-2501 Host-to-Host Bridge/Network Controller"
105 .%O http://tech.prolific.com.tw/visitor/fcabdl.asp?fid=20679530
110 device driver first appeared in
118 driver was written by
119 .An Craig Boston Aq craig@tobuj.gank.org
123 .An Bill Paul Aq wpaul@windriver.com
127 .An Daniel Hartmeier Aq dhartmei@openbsd.org .
129 Many USB devices notoriously fail to report their class and interfaces
131 Undetected products might work flawlessly when their vendor and product IDs
132 are added to the driver manually.