xref: /openbsd-src/share/man/man4/cdce.4 (revision 50b7afb2c2c0993b0894d4e34bf857cb13ed9c80)
1.\" Copyright (c) 2004 Daniel Hartmeier
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\"
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.
14.\"
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.
27.\"
28.\" $OpenBSD: cdce.4,v 1.19 2013/12/11 10:27:12 kirby Exp $
29.\"
30.Dd $Mdocdate: December 11 2013 $
31.Dt CDCE 4
32.Os
33.Sh NAME
34.Nm cdce
35.Nd USB Communication Device Class Ethernet device
36.Sh SYNOPSIS
37.Cd "cdce*  at uhub?"
38.Sh DESCRIPTION
39The
40.Nm
41driver provides support for USB Host-to-Host (aka USB-to-USB) bridges
42based on the USB Communication Device Class (CDC) and Ethernet subclass,
43including the following:
44.Pp
45.Bl -bullet -compact -offset indent
46.It
47Acer Labs USB 2.0 Data Link
48.It
49Dell Wireless 5530
50.It
51Dell Wireless 5540
52.It
53FRITZ!Box Fon ata 1020
54.It
55G.Mate YP3X00
56.It
57Motorola USBNET
58.It
59NetChip EthernetGadget
60.It
61Prolific PL-2501
62.It
63Sharp Zaurus
64.It
65Sony Ericsson K610i
66.It
67Sony Ericsson F3705g
68.It
69Yota LU156
70.It
71Zyxel P-971M
72.El
73.Pp
74The USB bridge appears as a regular network interface on both sides,
75transporting Ethernet frames.
76USB 1.x bridges support speeds of up to 12Mbps, and USB 2.0 speeds of
77up to 480Mbps.
78Packets are
79received and transmitted over separate USB bulk transfer endpoints.
80.Pp
81The
82.Nm
83driver does not support different media types or options.
84For more information on configuring this device, see
85.Xr ifconfig 8 .
86.Sh DIAGNOSTICS
87.Bl -diag
88.It "cdce0: extra ethernet descriptor"
89There is more than one Ethernet descriptor.
90.It "cdce0: no data interface"
91The data interface announced by the union descriptor cannot be found.
92.It "cdce0: no descriptor for interrupt endpoint N"
93.It "cdce0: interface alternate setting N failed"
94.It "cdce0: no descriptor for bulk endpoint N"
95.It "cdce0: could not find data bulk in/out"
96For a manually added USB vendor/product, these errors indicate
97that the bridge is not compatible with the driver.
98.It "cdce0: watchdog timeout"
99A packet was queued for transmission and a transmit command was
100issued, however the device failed to acknowledge the transmission
101before a timeout expired.
102.It "cdce0: no memory for rx list -- packet dropped!"
103Memory allocation through MGETHDR or MCLGET failed, the system
104is running low on mbufs.
105.It "cdce0: abort/close rx/tx/interrupt pipe failed"
106.It "cdce0: rx/tx list init failed"
107.It "cdce0: open rx/tx/interrupt pipe failed"
108.It "cdce0: usb error on rx/tx"
109.El
110.Sh SEE ALSO
111.Xr arp 4 ,
112.Xr cdcef 4 ,
113.Xr intro 4 ,
114.Xr netintro 4 ,
115.Xr usb 4 ,
116.Xr hostname.if 5 ,
117.Xr ifconfig 8
118.Rs
119.%T "Universal Serial Bus Class Definitions for Communication Devices"
120.%U http://www.usb.org/developers/devclass_docs/usbcdc11.pdf
121.Re
122.Rs
123.%T "Data sheet Prolific PL-2501 Host-to-Host Bridge/Network Controller"
124.Re
125.Sh HISTORY
126The
127.Nm
128device driver first appeared in
129.Ox 3.6 .
130.Sh AUTHORS
131.An -nosplit
132The
133.Nm
134driver was written by
135.An Craig Boston Aq Mt craig@tobuj.gank.org
136based on the
137.Xr aue 4
138driver written by
139.An Bill Paul Aq Mt wpaul@windriver.com
140and ported to
141.Ox
142by
143.An Daniel Hartmeier Aq Mt dhartmei@openbsd.org .
144.Sh CAVEATS
145Many USB devices notoriously fail to report their class and interfaces
146correctly.
147Undetected products might work flawlessly when their vendor and product IDs
148are added to the driver manually.
149