xref: /freebsd/share/man/man4/udbp.4 (revision 0957b409a90fd597c1e9124cbaf3edd2b488f4ac)
1.\" Copyright (c) 1999
2.\"	Nick Hibma <n_hibma@FreeBSD.org>. 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.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
27.Dd October 20, 2017
28.Dt UDBP 4
29.Os
30.Sh NAME
31.Nm udbp
32.Nd USB Double Bulk Pipe driver
33.Sh SYNOPSIS
34To compile this driver into the kernel,
35place the following line in your
36kernel configuration file:
37.Bd -ragged -offset indent
38.Cd "device udbp"
39.Ed
40.Pp
41Alternatively, to load the driver as a
42module at boot time, place the following line in
43.Xr loader.conf 5 :
44.Bd -literal -offset indent
45udbp_load="YES"
46.Ed
47.Sh DESCRIPTION
48The
49.Nm
50driver provides support for host-to-host cables
51that contain at least two bulk pipes (one for each direction).
52This typically includes cables branded for use with
53.Sy Windows USB Easy Transfer ,
54and many cables based on the Prolific PL2xx1 series of USB bridge chips.
55A useful (but non-comprehensive) list of compatible USB host cables
56is listed in the
57.Sx SEE ALSO
58section below.
59.Pp
60.\" XXX	The description of how to add netgraph to the kernel
61.\"	is out of place here.  It should be limited to the
62.\"	netgraph(4) manpage only.  However, that page does
63.\"	not yet give instructions for kldload(8) for the
64.\"	clueless.  Working on it -- sheldonh
65It requires
66.Xr netgraph 4
67to be available.
68This can be done either by adding
69.Cd "options NETGRAPH"
70to your kernel configuration file, or alternatively loading
71.Xr netgraph 4
72as a module, either from
73.Pa /boot/loader.conf
74or from the command line, before the
75.Nm
76module.
77.Sh EXAMPLES
78.Dl options NETGRAPH
79.Dl device udbp
80.Pp
81Add the
82.Nm
83driver to the kernel.
84.Pp
85.Dl kldload netgraph
86.Dl kldload udbp
87.Pp
88Load the
89.Xr netgraph 4
90module and then the
91.Nm
92driver.
93.Pp
94.Dl ngctl mkpeer udbp0: eiface data ether
95.Dl ifconfig ngeth0 ether aa:dd:xx:xx:xx
96.Dl ifconfig ngeth0 inet 169.254.x.x/16
97.Pp
98Create a new Ethernet network interface node
99and connect its ether hook to the data hook of the
100.Nm
101driver.
102.Pp
103This enables FreeBSD to communicate with a Linux peer (e.g. using the
104.Sy plusb
105driver).
106The Linux node should be configured to prefer link-local IPv4 addresses
107(e.g. using Network Manager in Debian and Red Hat derived distributions).
108.Pp
109Whilst both FreeBSD and Linux are able to interoperate by
110loosely following CDC EEM 1.0 in their behaviour, neither implementation
111has been expressly designed to follow its specification.
112.Sh SEE ALSO
113.Xr netgraph 4 ,
114.Xr ng_eiface 4 ,
115.Xr ohci 4 ,
116.Xr uhci 4 ,
117.Xr usb 4 ,
118.Xr ngctl 8
119.\"
120.Rs
121.%B Universal Serial Bus: Communications Class Subclass Specification for Ethernet Emulation Model Devices
122.%N Revision 1.0
123.%D February 2, 2005
124.%I USB Implementers Forum, Inc.
125.%U http://www.usb.org/developers/docs/devclass_docs/CDC_EEM10.pdf
126.Re
127.\"
128.Rs
129.%B Total Commander: Supported cables for USB cable connection
130.%I Ghisler Software GmbH.
131.%U https://www.ghisler.com/cables/index.htm
132.Re
133.Sh CAVEATS
134The point-to-point nature and additional latency of USB host-host links
135makes them unsuitable as a "drop-in" replacement for an Ethernet LAN;
136for a USB 3.0 SuperSpeed cable, latency is comparable to 100BaseTX Ethernet
137(but often worse), with throughput comparable to 2.5GBASE-T.
138.Pp
139However, their energy efficiency makes them attractive for embedded
140applications. A Plugable PL27A1 cable claims 24mA of USB3 bus power,
141as compared to 150mA for a typical USB 3.0 to Gigabit Ethernet interface.
142.Sh HISTORY
143The
144.Nm
145driver first appeared in
146.Fx 5.0 .
147.Sh BUGS
148The
149.Nm
150driver does not support the special packets described in section 5.1
151of the CDC EEM specification.
152.Sh AUTHORS
153.An -nosplit
154The
155.Nm
156driver was written by
157.An Doug Ambrisko Aq Mt ambrisko@whistle.com ,
158.An Julian Elischer Aq Mt julian@FreeBSD.org
159and
160.An Nick Hibma Aq Mt n_hibma@FreeBSD.org .
161.Pp
162This manual page was written by
163.An Nick Hibma Aq Mt n_hibma@FreeBSD.org
164and updated by
165.An Bruce Simpson Aq Mt bms@FreeBSD.org .
166