xref: /freebsd/share/man/man4/udbp.4 (revision b1f9167f94059fd55c630891d359bcff987bd7eb)
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 November 22, 2006
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),
52for example
53the EzLink cable and the NetChip 1080 chip.
54.Pp
55.\" XXX	The description of how to add netgraph to the kernel
56.\"	is out of place here.  It should be limited to the
57.\"	netgraph(4) manpage only.  However, that page does
58.\"	not yet give instructions for kldload(8) for the
59.\"	clueless.  Working on it -- sheldonh
60It requires
61.Xr netgraph 4
62to be available.
63This can be done either by adding
64.Cd "options NETGRAPH"
65to your kernel configuration file, or alternatively loading
66.Xr netgraph 4
67as a module, either from
68.Pa /boot/loader.conf
69or from the command line, before the
70.Nm
71module.
72.Sh EXAMPLES
73.Dl options NETGRAPH
74.Dl device udbp
75.Pp
76Add the
77.Nm
78driver to the kernel.
79.Pp
80.Dl kldload netgraph
81.Dl kldload udbp
82.Pp
83Load the
84.Xr netgraph 4
85module and then the
86.Nm
87driver.
88.Pp
89.Dl ngctl mkpeer udbp0: iface data inet
90.Dl ifconfig ng0 10.0.0.1 10.0.0.2
91.Pp
92Create a new network interface node
93and connect its inet hook to the data hook of the
94.Nm
95node.
96.Xr ifconfig 8
97configures the resulting network interface ng0 with a local
98IP address of 10.0.0.1 and a remote IP address of 10.0.0.2.
99On the remote host, the two
100IP addresses should of course be reversed.
101.Sh SEE ALSO
102.Xr netgraph 4 ,
103.Xr ng_iface 4 ,
104.Xr ohci 4 ,
105.Xr uhci 4 ,
106.Xr usb 4 ,
107.Xr ngctl 8
108.Sh HISTORY
109The
110.Nm
111driver first appeared in
112.Fx 5.0 .
113.Sh AUTHORS
114.An -nosplit
115The
116.Nm
117driver was written by
118.An Doug Ambrisko Aq ambrisko@whistle.com ,
119.An Julian Elischer Aq julian@FreeBSD.org
120and
121.An Nick Hibma Aq n_hibma@FreeBSD.org .
122.Pp
123This manual page was written by
124.An Nick Hibma Aq n_hibma@FreeBSD.org .
125