1 .\" Copyright (c) 1997, 1998 Nick Hibma <n_hibma@FreeBSD.org>
2 .\" Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
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
25 .\" $FreeBSD: head/share/man/man4/usb.4 258618 2013-11-26 07:52:40Z lwhsu $
32 .Nd Universal Serial Bus
34 To compile this driver into the kernel,
35 place the following line in your
36 kernel configuration file:
37 .Bd -ragged -offset indent
41 Alternatively, to load the driver as a
42 module at boot time, place the following line in
44 .Bd -literal -offset indent
47 .Sh USERLAND PROGRAMMING
48 USB functions can be accessed from userland through the libusb library.
54 provides machine-independent bus support and drivers for
56 devices in host and device side mode.
60 driver has three layers:
61 .Bl -tag -width 6n -offset indent
62 .It USB Controller (Bus)
67 The controller attaches to a physical bus
72 bus attaches to the controller, and the root hub attaches
74 Any devices attached to the bus will attach to the root hub
75 or another hub attached to the
81 device will always be present as it is needed for the
85 provides support for the following devices.
87 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
91 Mass Storage Devices, e.g., external disk drives
93 Diamond Rio 500 MP3 player
95 Mass storage driver for device-side mode
97 .Ss Wired network interfaces
98 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
100 ADMtek AN986 Pegasus Ethernet driver
102 ASIX Electronics AX88x7x/760 USB Ethernet driver
104 ASIX Electronics AX88178A/AX88179 USB Gigabit Ethernet driver
106 CATC USB-EL1210A Ethernet driver
108 USB Apple iPhone/iPad tethered Ethernet driver
110 Kawasaki LSI KL5KUSB101B Ethernet driver
112 .\"USB CDC (communication device class) driver for the LG P-500 smartphone
114 Moschip MCS7730/MCS7830/MCS7832 USB Ethernet driver
116 .\"RealTek RTL8150 Ethernet driver
118 Davicom DM9601 USB Ethernet driver
120 .Ss Wireless network interfaces
121 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
123 NDIS miniport driver wrapper
125 Ralink Technology RT2501USB/RT2601USB IEEE 802.11 driver
127 Ralink Technology RT2700U/RT2800U/RT3000U IEEE 802.11 driver
129 .\"Bluetooth adapters
131 .\"Ralink Technology RT2500USB IEEE 802.11 driver
133 RNDIS USB ethernet driver
135 Realtek RTL8188CU/RTL8192CU IEEE 802.11 driver
137 .Ss Serial and parallel interfaces
138 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
140 .\"MosChip Semiconductor MCS7703 based serial adapters
142 support for 3G datacards
144 Arkmicro Technologies ARK3116 based serial adapters
146 Belkin serial adapters
148 support for BWCT console serial adapters
150 WinChipHead CH341/CH340 serial adapters
154 Cypress CY7C63743 and CY7C64013 USB to RS232 bridges
158 serial devices based on the FTDI chips
160 generic serial device
162 support for iPAQ units
166 serial adapters based on the MCS7820 and MCS7840 chips
168 Magic Control Technology USB-232 based serial adapters
172 serial adapters based on the MCS7703 chip
174 Prolific PL-2303/2303X/2303HX serial adapters
176 Silicon Laboratories CP2101, CP2102 and CP2103 USB to serial bridge
178 .\"Texas Instruments TUSB3410 RS232 to USB converter
180 support for the Handspring Visor, a Palmpilot compatible PDA
182 SUNTAC Slipper U VS-10U serial adapters
185 .\".Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
186 .\".It Xr snd_uaudio 4
187 .\"audio device driver
189 .\"driver for the Rio500 MP3 player
191 .Ss Radio receiver devices
192 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
194 Cypress Semiconductor FM Radio
196 .Ss Human Interface Devices
197 .Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
199 eGalax touchscreen driver
201 generic driver for Human Interface Devices
203 keyboards that follow the boot protocol
207 .\".Ss Miscellaneous devices
208 .\".Bl -tag -width ".Xr snd_uaudio 4" -offset indent -compact
212 .Sh INTRODUCTION TO USB
215 is a system where external devices can be connected to a PC.
216 The most common USB speeds are:
217 .Bl -tag -width 6n -offset indent
218 .It Low Speed (1.5MBit/sec)
219 .It Full Speed (12MBit/sec)
220 .It High Speed (480MBit/sec)
225 has a USB controller that is the master of the bus.
226 The physical communication is simplex which means the host controller only communicates with one USB device at a time.
228 There can be up to 127 devices connected to an USB HUB tree.
229 The addresses are assigned
230 dynamically by the host when each device is attached to the bus.
232 Within each device there can be up to 16 endpoints.
234 is individually addressed and the addresses are static.
235 Each of these endpoints will communicate in one of four different modes:
236 .Em control , isochronous , bulk ,
239 A device always has at least one endpoint.
240 This endpoint has address 0 and is a control
241 endpoint and is used to give commands to and extract basic data,
242 such as descriptors, from the device.
243 Each endpoint, except the control endpoint, is unidirectional.
245 The endpoints in a device are grouped into interfaces.
246 An interface is a logical unit within a device; e.g.\&
247 a compound device with both a keyboard and a trackball would present
248 one interface for each.
249 An interface can sometimes be set into different modes,
250 called alternate settings, which affects how it operates.
251 Different alternate settings can have different endpoints
254 A device may operate in different configurations.
256 configuration, the device may present different sets of endpoints
259 The bus enumeration of the
261 bus proceeds in several steps:
264 Any interface specific driver can attach to the device.
266 If none is found, generic interface class drivers can attach.
271 specifications can be found at:
273 .D1 Pa http://www.usb.org/developers/docs/
327 module complies with the USB 2.0 standard.
331 module has been inspired by the
333 USB stack initially written by Lennart Augustsson.
336 module was written by
337 .An Hans Petter Selasky Aq Mt hselasky@FreeBSD.org .