xref: /freebsd/share/man/man4/umcs.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.\"
294f4acb65SEdward Tomasz Napierala.Dd April 26, 2017
30884a2a69SHans Petter Selasky.Dt UMCS 4
31884a2a69SHans Petter Selasky.Os
32884a2a69SHans Petter Selasky.Sh NAME
33884a2a69SHans Petter Selasky.Nm umcs
34884a2a69SHans Petter Selasky.Nd USB support for serial adapters based on the MCS7820 and MCS7840 chips
35884a2a69SHans Petter Selasky.Sh SYNOPSIS
36884a2a69SHans Petter SelaskyTo compile this driver into the kernel,
37884a2a69SHans Petter Selaskyplace the following lines in your
38884a2a69SHans Petter Selaskykernel configuration file:
39884a2a69SHans Petter Selasky.Bd -ragged -offset indent
4099fc5899SMartin Wilke.Cd "device usb"
4199fc5899SMartin Wilke.Cd "device ucom"
42884a2a69SHans Petter Selasky.Cd "device umcs"
43884a2a69SHans Petter Selasky.Ed
44884a2a69SHans Petter Selasky.Pp
45884a2a69SHans Petter SelaskyAlternatively, to load the driver as a
46884a2a69SHans Petter Selaskymodule at boot time, place the following line in
47884a2a69SHans Petter Selasky.Xr loader.conf 5 :
48884a2a69SHans Petter Selasky.Bd -literal -offset indent
49884a2a69SHans Petter Selaskyumcs_load="YES"
50884a2a69SHans Petter Selasky.Ed
51884a2a69SHans Petter Selasky.Sh DESCRIPTION
52884a2a69SHans Petter SelaskyThe
53884a2a69SHans Petter Selasky.Nm
54884a2a69SHans Petter Selaskydriver provides support for various multiport serial adapters based on the MosCom
559d496f5aSGlen BarberMCS7820 and MCS7840 chips.
569d496f5aSGlen BarberThey are 2- or 4-port adapters with full-featured
579d496f5aSGlen Barber16550-compatible UARTs and very flexible baud generators.
589d496f5aSGlen BarberAlso, these chips
593102cfe2SGlen Barbersupport RS422/RS485 and IrDA operations.
60884a2a69SHans Petter Selasky.Pp
61884a2a69SHans Petter SelaskyThe device is accessed through the
62884a2a69SHans Petter Selasky.Xr ucom 4
63884a2a69SHans Petter Selaskydriver which makes it behave like a
64884a2a69SHans Petter Selasky.Xr tty 4 .
65884a2a69SHans Petter Selasky.Pp
66884a2a69SHans Petter SelaskyDifferent ports on device are presented as sub-units, like
67884a2a69SHans Petter Selasky.Pa /dev/ttyU0.1
68884a2a69SHans Petter Selaskyand
6950d922a0SGlen Barber.Pa /dev/ttyU0.2 .
70884a2a69SHans Petter Selasky.Sh HARDWARE
71884a2a69SHans Petter SelaskyThe
72884a2a69SHans Petter Selasky.Nm
73884a2a69SHans Petter Selaskydriver was tested on the following adapters:
74884a2a69SHans Petter Selasky.Pp
75884a2a69SHans Petter Selasky.Bl -bullet -compact
76884a2a69SHans Petter Selasky.It
77884a2a69SHans Petter SelaskyST Lab U-360 two-port serial USB adapter
78884a2a69SHans Petter Selasky.It
79884a2a69SHans Petter SelaskyST Lab U-400 four-port serial USB adapter
80884a2a69SHans Petter Selasky.El
814f4acb65SEdward Tomasz Napierala.Sh FILES
82*fa196deaSEdward Tomasz Napierala.Bl -tag -width "/dev/ttyU*.*.init" -compact
83*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*
844f4acb65SEdward Tomasz Napieralafor callin ports
85*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.init
86*fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.lock
874f4acb65SEdward Tomasz Napieralacorresponding callin initial-state and lock-state devices
884f4acb65SEdward Tomasz Napierala.Pp
89*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*
904f4acb65SEdward Tomasz Napieralafor callout ports
91*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.init
92*fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.lock
934f4acb65SEdward Tomasz Napieralacorresponding callout initial-state and lock-state devices
944f4acb65SEdward Tomasz Napierala.El
95884a2a69SHans Petter Selasky.Sh SEE ALSO
96884a2a69SHans Petter Selasky.Xr tty 4 ,
97884a2a69SHans Petter Selasky.Xr ucom 4 ,
98884a2a69SHans Petter Selasky.Xr usb 4
99884a2a69SHans Petter Selasky.Sh HISTORY
100884a2a69SHans Petter SelaskyThe
101884a2a69SHans Petter Selasky.Nm
102884a2a69SHans Petter Selaskydriver
103884a2a69SHans Petter Selaskyappeared in ports since December of 2010.
104884a2a69SHans Petter Selasky.Sh AUTHORS
105884a2a69SHans Petter Selasky.An -nosplit
106884a2a69SHans Petter SelaskyThe
107884a2a69SHans Petter Selasky.Nm
108884a2a69SHans Petter Selaskydriver was written by
1096c899950SBaptiste Daroussin.An Lev Serebryakov Aq Mt lev@FreeBSD.org .
11012afe06cSJoel Dahl.Sh BUGS
11112afe06cSJoel DahlThis driver doesn't support access to any fine tunes of
11212afe06cSJoel Dahlchip, like RS522/RS485 mode, non-standard baudrates, etc.
113