2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH USBSACM 7D "Nov 1, 2006"
8 usbsacm \- USB communication device class ACM driver
12 #include <sys/termio.h>
25 The \fBusbsacm\fR driver is a loadable STREAMS and USBA (Solaris USB
26 architecture)-compliant client driver that provides basic asynchronous
27 communication support for USB modems and ISDN terminal adapters that conform to
28 the \fIUniversal Serial Bus Communication Device Class Abstract Control Model
29 (USB CDC ACM)\fR specification. You can download the \fIUSB CDC\fR
30 specification from the USB website at
31 \fIhttp://www.usb.org/developers/devclass_docs/usbcdc11.pdf\fR. Supported
32 devices include mobile phones and PCMCIA cards which provide modem function by
33 the usb cable. Serial device streams are built with appropriate modules that
34 are pushed atop the usbsacm driver by the \fBautopush\fR(1M) facility.
37 The \fBusbsacm\fR module supports the \fBtermio\fR(7I) device control functions
38 specified by flags in the c_cflag word of termios structure, and by the IGNBRK,
39 IGNPAR, PARMRK and INPCK flags in the c_iflag word of the termios structure.
40 All other \fBtermio\fR(7I) functions must be performed by STREAMS modules
41 pushed atop the driver. When a device is opened, the \fBldterm\fR(7M) and
42 \fBttcompat\fR(7M) STREAMS modules are automatically pushed on top of the
43 stream, providing the standard \fBtermio\fR(7I) interface.
46 You use device logical names /dev/term/[\fI0-9\fR]* to access the serial ports.
47 These names are typically used to provide a logical access point for a dial-in
48 line that is used with a modem. You can use \fBpppd\fR(1M) to transmit
49 datagrams over these serial ports.
52 A special feature (controlled by the minor device number) is available that
53 enables a single tty line to be connected to a modem and used for incoming and
54 outgoing calls. By accessing through device logical name /dev/cua/[\fI0-9\fR]*,
55 you can open a port without the carrier detect signal being asserted, either
56 through hardware or an equivalent software mechanism. These devices are
57 commonly known as 'dial-out' lines.
60 Unlike onboard serial ports, the \fBusbsacm\fR ports cannot serve as a local
62 .SH APPLICATION PROGRAMMING INTERFACE
65 A dial-in line can be opened only if the corresponding dial-out line is
66 closed. A blocking /dev/term open waits until the /dev/cua line is closed
67 (which drops Data Terminal Ready, after which Carrier Detect usually drops as
68 well) and carrier is detected again. A non-blocking /dev/term open returns an
69 error if the /dev/cua is open.
72 If the /dev/term line is opened successfully (usually only when carrier is
73 recognized on the modem), the corresponding /dev/cua line cannot be
74 opened. This allows a modem and port to be used for dial-in (by enabling the
75 line for login in \fB/etc/inittab\fR) or dial-out (by \fBtip\fR(1) or
76 \fBuucp\fR(1C)) as \fB/dev/cua0\fR when no one is logged in on the line.
79 Device hot-removal is functionally equivalent to a modem disconnect event, as
80 defined in \fBtermio\fR(7I).
84 The \fBusbsacm\fR driver supports the standard set of \fBtermio\fR(7I) ioctl
88 The input and output line speeds may be set to any of the following baud rates:
89 75, 150, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
90 230400 or 460800. The speeds cannot be set independently. For example, when the
91 output speed is set, the input speed is automatically set to the same speed.
95 An \fBopen()\fR fails under the following conditions:
102 The unit being opened does not exist.
111 The /dev/cua (dial-out) device is being opened while the /dev/term (dial-in
112 device) is open, or the dial-in device is being opened with a no-delay open
113 while the dial-out device is open.
122 The unit has been marked as exclusive-use by another process with a
123 \fBTIOCEXCL\fR \fBioctl()\fR call.
132 USB device I/O error.
139 \fB\fB/kernel/drv/usbsacm\fR\fR
143 32-bit ELF kernel module. (x86)
149 \fB\fB/kernel/drv/amd64/usbsacm\fR\fR
153 64-bit ELF kernel module. (x86)
159 \fB\fB/kernel/drv/sparcv9/usbsacm\fR\fR
163 64-bit ELF kernel module. (SPARC)
169 \fB\fB/dev/cua/[0-9]\fR\fR
179 \fB\fB/dev/term/[0-9]\fR\fR
189 See \fBattributes\fR(5) for descriptions of the following attributes:
197 ATTRIBUTE TYPE ATTRIBUTE VALUE
199 Architecture SPARC, x86 PCI-based systems
205 \fBstrconf\fR(1), \fBtip\fR(1),\fBuucp\fR(1C), \fBautopush\fR(1M),
206 \fBpppd\fR(1M), \fBioctl\fR(2), \fBopen\fR(2), \fBtermios\fR(3C),
207 \fBattributes\fR(5), \fBusba\fR(7D), \fBtermio\fR(7I), \fBldterm\fR(7M),
212 In addition to being logged, the following messages may appear on the system
213 console. All messages are formatted in the following manner:
217 Warning: <device path> (usbsacm<instance num>):Error Message...
225 \fBDevice was disconnected while open. Data may have been lost.\fR
229 The device has been hot-removed or powered off while it was open and a possible
230 data transfer was in progress. The job may be aborted.
236 \fBDevice is not identical to the previous one on this port. Please disconnect
241 The device was hot-removed while open. A new device was hot-inserted which is
242 not identical to the original device. Please disconnect the device and
243 reconnect the original device to the same port.
249 \fBDevice has been reconnected, but data may have been lost.\fR
253 The device that was hot-removed from its USB port has been re-inserted again
254 to the same port. It is available for access but data from a previous transfer
261 \fBCannot access <device>. Please reconnect.\fR
265 This device has been disconnected because a device other than the original one
266 has been inserted. The driver informs you of this fact by displaying the name
267 of the original device.
272 The following messages may be logged into the system log. They are formatted in
273 the following manner:
277 <device path><usbsacm<instance number>): message...