Devices usbsksp(7D)
NAME
usbsksp - Keyspan USB to serial converter driver
SYNOPSIS
#include
#include
usbskpsp@unitDESCRIPTION
The usbsksp driver is a loadable STREAMS and USBA (Solaris
USB architecture) compliant client driver that providesbasic asynchronous communication support for Keyspan USB-
to-serial converters. The usbsksp driver supports the Keys-
pan USA19HS, USA49WG and USA49WLC models. By default, theUSA19HS and USA49WG models are compatible with the usbsksp
driver and no configuration or installation steps are required. (The USA49WG model is a USB 2.0 device comforming to Universal Serial Bus Specification 2.0 and the USB 2.0 host controller is required to support the USA49WG model. Note that the USA49WG is not compatible with USB 1.1 host controllers). If you use the Keyspan USA49WLC model, you must download and install a firmware package to enable thedevice to work with the usbsksp driver. See the Keyspan web-
site (http://www.keyspan.com/downloads/sun/) for more infor-
mation. Serial device streams are built with appropriatemodules that are pushed atop the usbsksp driver by the
autopush(1M) facility.The usbsksp module supports the termio(7I) device control
functions specified by flags in the c_cflag word of the ter-
mios structure, and by the IGNBRK, IGNPAR, PARMRK andINPCK flags in the c_iflag word of the termios structure.
All other termio(7I) functions must be performed by STREAMS modules pushed atop the driver. When a device is opened, theldterm(7M) and ttcompat(7M) STREAMS modules are automati-
cally pushed on top of the stream, providing the standard termio(7I) interface.Use device logical names /dev/term/[0-9]* to access the
serial ports. These names are typically used to provide alogical access point for a dial-in line that is used with a
modem.SunOS 5.11 Last change: 23 August 2006 1
Devices usbsksp(7D)
A special feature (controlled by the minor device number) is available that enables a single tty line to be connected toa modem and used for incoming and outgoing calls. By access-
ing through device logical name /dev/cua/[0-9]*, you can
open a port without the carrier detect signal being asserted, either through hardware or an equivalent softwaremechanism. These devices are commonly known as 'dial-out'
lines.Unlike onboard serial ports, the usbsksp ports cannot serve
as a local serial console. APPLICATION PROGRAMMING INTERFACEA dial-in line can be opened only if the corresponding
dial-out line is closed. A blocking /dev/term open waits
until the /dev/cua line is closed (which drops Data Terminal Ready, after which Carrier Detect usually drops as well) andcarrier is detected again. A non-blocking /dev/term open
returns an error if the /dev/cua is open. If the /dev/term line is opened successfully (usually only when carrier is recognized on the modem), the corresponding /dev/cua line cannot be opened. This allows a modem and portto be used for dial-in (by enabling the line for login in
/etc/inittab) or dial-out (by tip(1), or uucp(1C)) when no
one is logged in on the line.Device hot-removal is functionally equivalent to a modem
disconnect event, as defined in termio(7I). IOCTLSThe usbsksp driver supports the standard set of termio(7I)
ioctl calls. Input and output line speeds can be set to the following baud rates: 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200, or230400. Input and output line speeds cannot be set indepen-
dently. For example, when the output speed is set, the input speed is automatically set to the same speed.ERRORS
An open() fails under the following conditions: ENXIO The unit being opened does not exist.SunOS 5.11 Last change: 23 August 2006 2
Devices usbsksp(7D)
EBUSY The /dev/cua (dial-out) device is being opened
while the /dev/term (dial-in device) is open, or
the dial-in device is being opened with a no-delay
open while the dial-out device is open.
EBUSY The unit has been marked as exclusive-use by
another process with a TIOCEXCL ioctl() call.EIO USB device I/O error. FILES
/kernel/drv/usbsksp
32-bit x86 ELF kernel module.
/kernel/drv/amd64/usbsksp
64-bit x86 ELF kernel module.
/kernel/drv/sparcv9/usbsksp
64-bit SPARC ELF kernel module.
/dev/cua/[0-9]*
dial-out tty lines.
/dev/term/[0-9]*
dial-in tty lines.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 23 August 2006 3
Devices usbsksp(7D)
_____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|______________________________|
| Architecture | SPARC, x86, PCI-based systems|
|_____________________________|______________________________|
| Availability | driver/serial/usbsksp |
|_____________________________|______________________________|
SEE ALSO
strconf(1), tip(1), uucp(1C), autopush(1M), ioctl(2), open(2), termios(3C), attributes(5), usba(7D), termio(7I), ldterm(7M), ttcompat(7M) DIAGNOSTICS In addition to being logged, the following messages may appear on the system console. All messages are formatted in the following manner:Warning:
Device was disconnected while open. Data may have been lost.(usbsksp ): Error Message... The device has been hot-removed or powered off while it
was open and a possible data transfer was in progress. The job may be aborted. Device is not identical to the previous one on this port. Please disconnect and reconnect.The device was hot-removed while open. A new device was
hot-inserted which is not identical to the original dev-
ice. Please disconnect the device and reconnect the ori-
ginal device to the same port. Device has been reconnected, but data may have been lost.The device that was hot-removed from its USB port has
been re-inserted again to the same port. It is available
for access but data from a previous transfer may be lost. Cannot access. Please reconnect. This device has been disconnected because a device other than the original one has been inserted. The driver informs you of this fact by displaying the name of the SunOS 5.11 Last change: 23 August 2006 4
Devices usbsksp(7D)
original device.No valid firmware available for Keyspan usa49wlc usb-to-
serial adapter. Please download it from Keyspan website and install it. By default, only an empty firmware package is installed for the usa49wlc model. Please download the SUNWukspfw package from Keyspan's web site and install it. The following messages may be logged into the system log. They are formatted in the following manner:Input overrun Data was lost.
): message... SunOS 5.11 Last change: 23 August 2006 5