]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/ucom.4
Upgrade Unbound to 1.9.2.
[FreeBSD/FreeBSD.git] / share / man / man4 / ucom.4
1 .\" $NetBSD: ucom.4,v 1.9 2002/03/22 00:39:40 augustss Exp $
2 .\"
3 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
5 .\"
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Lennart Augustsson.
8 .\"
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
11 .\" are met:
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\"    notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\"    notice, this list of conditions and the following disclaimer in the
16 .\"    documentation and/or other materials provided with the distribution.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
29 .\"
30 .\" $FreeBSD$
31 .\"
32 .Dd April 25, 2018
33 .Dt UCOM 4
34 .Os
35 .Sh NAME
36 .Nm ucom
37 .Nd USB tty support
38 .Sh SYNOPSIS
39 To compile this driver into the kernel,
40 place the following line in your
41 kernel configuration file:
42 .Bd -ragged -offset indent
43 .Cd "device ucom"
44 .Ed
45 .Pp
46 Alternatively, to load the driver as a
47 module at boot time, place the following line in
48 .Xr loader.conf 5 :
49 .Bd -literal -offset indent
50 ucom_load="YES"
51 .Ed
52 .Sh DESCRIPTION
53 The
54 .Nm
55 driver attaches to USB modems, serial ports, and other devices that need
56 to look like a tty.
57 The
58 .Nm
59 driver shows a behavior like a
60 .Xr tty 4 .
61 This means that normal programs such as
62 .Xr tip 1
63 or
64 .Xr ppp 8
65 can be used to access the device.
66 .Sh SYSCTL VARIABLES
67 The following variables are available as both
68 .Xr sysctl 8
69 variables and
70 .Xr loader 8
71 tunables:
72 .Bl -tag -width indent
73 .It Va hw.usb.ucom.debug
74 Debug output level, where 0 is debugging disabled and larger values increase
75 debug message verbosity.
76 Default is 0.
77 .It Va hw.usb.ucom.device_mode_console
78 When set to 1, the
79 .Nm
80 driver will mark terminals as console devices when operating in device mode.
81 Default is 1.
82 .It Va hw.usb.ucom.pps_mode
83 Enables and configure PPS capture mode as described below.
84 .El
85 .Sh Pulse Per Second (PPS) Timing Interface
86 The
87 .Nm
88 driver can capture PPS timing information as defined in RFC 2783.
89 The API, accessed via
90 .Xr ioctl 2 ,
91 is available on the tty device.
92 To use the PPS capture feature with
93 .Xr ntpd 8 ,
94 symlink the tty device to
95 .Va /dev/pps0.
96 .Pp
97 The
98 .Va hw.usb.ucom.pps_mode
99 sysctl configures the PPS capture mode.
100 It can be set in
101 .Xr loader.conf 5
102 or
103 .Xr sysctl.conf 5 .
104 The following capture modes are available:
105 .Bl -tag -compact -offset "mmmm" -width "mmmm"
106 .It 0
107 Capture disabled (default).
108 .It 1
109 Capture pulses on the CTS line.
110 .It 2
111 Capture pulses on the DCD line.
112 .El
113 .Sh FILES
114 .Bl -tag -width "/dev/ttyU*.init" -compact
115 .It Pa /dev/ttyU*
116 for callin ports
117 .It Pa /dev/ttyU*.init
118 .It Pa /dev/ttyU*.lock
119 corresponding callin initial-state and lock-state devices
120 .Pp
121 .It Pa /dev/cuaU*
122 for callout ports
123 .It Pa /dev/cuaU*.init
124 .It Pa /dev/cuaU*.lock
125 corresponding callout initial-state and lock-state devices
126 .El
127 .Sh SEE ALSO
128 .Xr tty 4 ,
129 .Xr uark 4 ,
130 .Xr ubsa 4 ,
131 .Xr ubser 4 ,
132 .Xr uchcom 4 ,
133 .Xr ucycom 4 ,
134 .Xr ufoma 4 ,
135 .Xr uftdi 4 ,
136 .Xr uhso 4 ,
137 .\".Xr ugensa 4 ,
138 .Xr uipaq 4 ,
139 .Xr umcs 4 ,
140 .Xr umct 4 ,
141 .Xr umodem 4 ,
142 .Xr umoscom 4 ,
143 .Xr uplcom 4 ,
144 .Xr usb 4 ,
145 .Xr uslcom 4 ,
146 .Xr uvisor 4 ,
147 .Xr uvscom 4
148 .Sh HISTORY
149 The
150 .Nm
151 driver was adopted from
152 .Nx
153 in March of 2002.
154 This manual page was adopted from
155 .Nx
156 by
157 .An Tom Rhodes Aq Mt trhodes@FreeBSD.org
158 in April 2002.
159 .Sh BUGS
160 Prior to
161 .Fx 6.0
162 .Nm
163 created
164 .Pa /dev/ucom?
165 rather than the uniform device names created today.
166 Old scripts must be adjusted accordingly.