xref: /freebsd/share/man/man4/umcs.4 (revision fa196dea221ece5efebff38017ac66220b46c2ce)
1884a2a69SHans Petter Selasky.\"
2884a2a69SHans Petter Selasky.\" Copyright (c) 2010 Lev Serebryakov <lev@FreeBSD.org>.
3884a2a69SHans Petter Selasky.\" All rights reserved.
4884a2a69SHans Petter Selasky.\"
5884a2a69SHans Petter Selasky.\" This code is derived from software contributed to The NetBSD Foundation
6884a2a69SHans Petter Selasky.\" by Lennart Augustsson.
7884a2a69SHans Petter Selasky.\"
8884a2a69SHans Petter Selasky.\" Redistribution and use in source and binary forms, with or without
9884a2a69SHans Petter Selasky.\" modification, are permitted provided that the following conditions
10884a2a69SHans Petter Selasky.\" are met:
11884a2a69SHans Petter Selasky.\" 1. Redistributions of source code must retain the above copyright
12884a2a69SHans Petter Selasky.\"    notice, this list of conditions and the following disclaimer.
13884a2a69SHans Petter Selasky.\" 2. Redistributions in binary form must reproduce the above copyright
14884a2a69SHans Petter Selasky.\"    notice, this list of conditions and the following disclaimer in the
15884a2a69SHans Petter Selasky.\"    documentation and/or other materials provided with the distribution.
16884a2a69SHans Petter Selasky.\"
17884a2a69SHans Petter Selasky.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18884a2a69SHans Petter Selasky.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19884a2a69SHans Petter Selasky.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20884a2a69SHans Petter Selasky.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21884a2a69SHans Petter Selasky.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22884a2a69SHans Petter Selasky.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23884a2a69SHans Petter Selasky.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24884a2a69SHans Petter Selasky.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25884a2a69SHans Petter Selasky.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26884a2a69SHans Petter Selasky.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27884a2a69SHans Petter Selasky.\" POSSIBILITY OF SUCH DAMAGE.
28884a2a69SHans Petter Selasky.\"
29884a2a69SHans Petter Selasky.\" $FreeBSD$
30884a2a69SHans Petter Selasky.\"
314f4acb65SEdward Tomasz Napierala.Dd April 26, 2017
32884a2a69SHans Petter Selasky.Dt UMCS 4
33884a2a69SHans Petter Selasky.Os
34884a2a69SHans Petter Selasky.Sh NAME
35884a2a69SHans Petter Selasky.Nm umcs
36884a2a69SHans Petter Selasky.Nd USB support for serial adapters based on the MCS7820 and MCS7840 chips
37884a2a69SHans Petter Selasky.Sh SYNOPSIS
38884a2a69SHans Petter SelaskyTo compile this driver into the kernel,
39884a2a69SHans Petter Selaskyplace the following lines in your
40884a2a69SHans Petter Selaskykernel configuration file:
41884a2a69SHans Petter Selasky.Bd -ragged -offset indent
4299fc5899SMartin Wilke.Cd "device usb"
4399fc5899SMartin Wilke.Cd "device ucom"
44884a2a69SHans Petter Selasky.Cd "device umcs"
45884a2a69SHans Petter Selasky.Ed
46884a2a69SHans Petter Selasky.Pp
47884a2a69SHans Petter SelaskyAlternatively, to load the driver as a
48884a2a69SHans Petter Selaskymodule at boot time, place the following line in
49884a2a69SHans Petter Selasky.Xr loader.conf 5 :
50884a2a69SHans Petter Selasky.Bd -literal -offset indent
51884a2a69SHans Petter Selaskyumcs_load="YES"
52884a2a69SHans Petter Selasky.Ed
53884a2a69SHans Petter Selasky.Sh DESCRIPTION
54884a2a69SHans Petter SelaskyThe
55884a2a69SHans Petter Selasky.Nm
56884a2a69SHans Petter Selaskydriver provides support for various multiport serial adapters based on the MosCom
579d496f5aSGlen BarberMCS7820 and MCS7840 chips.
589d496f5aSGlen BarberThey are 2- or 4-port adapters with full-featured
599d496f5aSGlen Barber16550-compatible UARTs and very flexible baud generators.
609d496f5aSGlen BarberAlso, these chips
613102cfe2SGlen Barbersupport RS422/RS485 and IrDA operations.
62884a2a69SHans Petter Selasky.Pp
63884a2a69SHans Petter SelaskyThe device is accessed through the
64884a2a69SHans Petter Selasky.Xr ucom 4
65884a2a69SHans Petter Selaskydriver which makes it behave like a
66884a2a69SHans Petter Selasky.Xr tty 4 .
67884a2a69SHans Petter Selasky.Pp
68884a2a69SHans Petter SelaskyDifferent ports on device are presented as sub-units, like
69884a2a69SHans Petter Selasky.Pa /dev/ttyU0.1
70884a2a69SHans Petter Selaskyand
7150d922a0SGlen Barber.Pa /dev/ttyU0.2 .
72884a2a69SHans Petter Selasky.Sh HARDWARE
73884a2a69SHans Petter SelaskyThe
74884a2a69SHans Petter Selasky.Nm
75884a2a69SHans Petter Selaskydriver was tested on the following adapters:
76884a2a69SHans Petter Selasky.Pp
77884a2a69SHans Petter Selasky.Bl -bullet -compact
78884a2a69SHans Petter Selasky.It
79884a2a69SHans Petter SelaskyST Lab U-360 two-port serial USB adapter
80884a2a69SHans Petter Selasky.It
81884a2a69SHans Petter SelaskyST Lab U-400 four-port serial USB adapter
82884a2a69SHans Petter Selasky.El
834f4acb65SEdward Tomasz Napierala.Sh FILES
84*fa196deaSEdward Tomasz Napierala.Bl -tag -width "/dev/ttyU*.*.init" -compact
85*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*
864f4acb65SEdward Tomasz Napieralafor callin ports
87*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.init
88*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.lock
894f4acb65SEdward Tomasz Napieralacorresponding callin initial-state and lock-state devices
904f4acb65SEdward Tomasz Napierala.Pp
91*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*
924f4acb65SEdward Tomasz Napieralafor callout ports
93*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.init
94*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.lock
954f4acb65SEdward Tomasz Napieralacorresponding callout initial-state and lock-state devices
964f4acb65SEdward Tomasz Napierala.El
97884a2a69SHans Petter Selasky.Sh SEE ALSO
98884a2a69SHans Petter Selasky.Xr tty 4 ,
99884a2a69SHans Petter Selasky.Xr ucom 4 ,
100884a2a69SHans Petter Selasky.Xr usb 4
101884a2a69SHans Petter Selasky.Sh HISTORY
102884a2a69SHans Petter SelaskyThe
103884a2a69SHans Petter Selasky.Nm
104884a2a69SHans Petter Selaskydriver
105884a2a69SHans Petter Selaskyappeared in ports since December of 2010.
106884a2a69SHans Petter Selasky.Sh AUTHORS
107884a2a69SHans Petter Selasky.An -nosplit
108884a2a69SHans Petter SelaskyThe
109884a2a69SHans Petter Selasky.Nm
110884a2a69SHans Petter Selaskydriver was written by
1116c899950SBaptiste Daroussin.An Lev Serebryakov Aq Mt lev@FreeBSD.org .
11212afe06cSJoel Dahl.Sh BUGS
11312afe06cSJoel DahlThis driver doesn't support access to any fine tunes of
11412afe06cSJoel Dahlchip, like RS522/RS485 mode, non-standard baudrates, etc.
115