xref: /illumos-gate/usr/src/man/man4i/termiox.4i (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
1*bbf21555SRichard Lowe.\"  Copyright 1989 AT&T
2*bbf21555SRichard Lowe.\" Copyright (C) 1999, Sun Microsystems, Inc. All Rights Reserved
3*bbf21555SRichard Lowe.\" Copyright (c) 2017, Joyent, Inc.
4*bbf21555SRichard Lowe.\" The contents of this file are subject to the terms of the
5*bbf21555SRichard Lowe.\" Common Development and Distribution License (the "License").
6*bbf21555SRichard Lowe.\" You may not use this file except in compliance with the License.
7*bbf21555SRichard Lowe.\"
8*bbf21555SRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*bbf21555SRichard Lowe.\" or http://www.opensolaris.org/os/licensing.
10*bbf21555SRichard Lowe.\" See the License for the specific language governing permissions
11*bbf21555SRichard Lowe.\" and limitations under the License.
12*bbf21555SRichard Lowe.\"
13*bbf21555SRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each
14*bbf21555SRichard Lowe.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*bbf21555SRichard Lowe.\" If applicable, add the following below this CDDL HEADER, with the
16*bbf21555SRichard Lowe.\" fields enclosed by brackets "[]" replaced with your own identifying
17*bbf21555SRichard Lowe.\" information: Portions Copyright [yyyy] [name of copyright owner]
18*bbf21555SRichard Lowe.Dd October 29, 2017
19*bbf21555SRichard Lowe.Dt TERMIOX 4I
20*bbf21555SRichard Lowe.Os
21*bbf21555SRichard Lowe.Sh NAME
22*bbf21555SRichard Lowe.Nm termiox
23*bbf21555SRichard Lowe.Nd extended general terminal interface
24*bbf21555SRichard Lowe.Sh DESCRIPTION
25*bbf21555SRichard LoweThe extended general terminal interface supplements the
26*bbf21555SRichard Lowe.Xr termio 4I
27*bbf21555SRichard Lowegeneral terminal interface by adding support for asynchronous hardware flow
28*bbf21555SRichard Lowecontrol, isochronous flow control and clock modes, and local implementations of
29*bbf21555SRichard Loweadditional asynchronous features.
30*bbf21555SRichard LoweSome systems may not support all of these
31*bbf21555SRichard Lowecapabilities because of either hardware or software limitations.
32*bbf21555SRichard LoweOther systems may not permit certain functions to be disabled.
33*bbf21555SRichard LoweIn these cases the appropriate bits will be ignored.
34*bbf21555SRichard LoweSee
35*bbf21555SRichard Lowe.In sys/termiox.h
36*bbf21555SRichard Lowefor your system to find out which capabilities are supported.
37*bbf21555SRichard Lowe.Ss "Hardware Flow Control Modes"
38*bbf21555SRichard LoweHardware flow control supplements the
39*bbf21555SRichard Lowe.Xr termio 4I
40*bbf21555SRichard Lowe.Dv IXON ,
41*bbf21555SRichard Lowe.Dv IXOFF ,
42*bbf21555SRichard Loweand
43*bbf21555SRichard Lowe.Dv IXANY
44*bbf21555SRichard Lowecharacter flow control.
45*bbf21555SRichard LoweCharacter flow control occurs when one
46*bbf21555SRichard Lowedevice controls the data transfer of another device by the insertion of control
47*bbf21555SRichard Lowecharacters in the data stream between devices.
48*bbf21555SRichard LoweHardware flow control occurs
49*bbf21555SRichard Lowewhen one device controls the data transfer of another device using electrical
50*bbf21555SRichard Lowecontrol signals on wires (circuits) of the asynchronous interface.
51*bbf21555SRichard LoweIsochronous
52*bbf21555SRichard Lowehardware flow control occurs when one device controls the data transfer of
53*bbf21555SRichard Loweanother device by asserting or removing the transmit clock signals of that
54*bbf21555SRichard Lowedevice.
55*bbf21555SRichard LoweCharacter flow control and hardware flow control may be simultaneously
56*bbf21555SRichard Loweset.
57*bbf21555SRichard Lowe.Pp
58*bbf21555SRichard LoweIn asynchronous, full duplex applications, the use of the Electronic Industries
59*bbf21555SRichard LoweAssociation's EIA-232-D Request To Send (RTS) and Clear To Send (CTS) circuits
60*bbf21555SRichard Loweis the preferred method of hardware flow control.
61*bbf21555SRichard LoweAn interface to other
62*bbf21555SRichard Lowehardware flow control methods is included to provide a standard interface to
63*bbf21555SRichard Lowethese existing methods.
64*bbf21555SRichard Lowe.Pp
65*bbf21555SRichard LoweThe EIA-232-D standard specified only unidirectional hardware flow control \(em
66*bbf21555SRichard Lowethe Data Circuit-terminating Equipment or Data Communications Equipment (DCE)
67*bbf21555SRichard Loweindicates to the Data Terminal Equipment (DTE) to stop transmitting data.
68*bbf21555SRichard LoweThe
69*bbf21555SRichard Lowe.Nm
70*bbf21555SRichard Loweinterface allows both unidirectional and bidirectional hardware
71*bbf21555SRichard Loweflow control; when bidirectional flow control is enabled, either the DCE or DTE
72*bbf21555SRichard Lowecan indicate to each other to stop transmitting data across the interface.
73*bbf21555SRichard LoweNote: It is assumed that the asynchronous port is configured as a DTE.
74*bbf21555SRichard LoweIf the
75*bbf21555SRichard Loweconnected device is also a DTE and not a DCE, then DTE to DTE (for example,
76*bbf21555SRichard Loweterminal or printer connected to computer) hardware flow control is possible by
77*bbf21555SRichard Loweusing a null modem to interconnect the appropriate data and control circuits.
78*bbf21555SRichard Lowe.Ss "Clock Modes"
79*bbf21555SRichard LoweIsochronous communication is a variation of asynchronous communication whereby
80*bbf21555SRichard Lowetwo communicating devices may provide transmit and/or receive clock signals to
81*bbf21555SRichard Loweone another.
82*bbf21555SRichard LoweIncoming clock signals can be taken from the baud rate generator
83*bbf21555SRichard Loweon the local isochronous port controller, from CCITT V\.24 circuit 114,
84*bbf21555SRichard LoweTransmitter Signal Element Timing - DCE source (EIA-232-D pin 15), or from
85*bbf21555SRichard LoweCITT V\.24 circuit 115, Receiver Signal Element Timing - DCE source (EIA-232-D
86*bbf21555SRichard Lowepin 17).
87*bbf21555SRichard LoweOutgoing clock signals can be sent on CCITT V\.24 circuit 113,
88*bbf21555SRichard LoweTransmitter Signal Element Timing - DTE source (EIA-232-D pin 24), on CCITT
89*bbf21555SRichard LoweV\.24 circuit 128, Receiver Signal Element Timing - DTE source (no EIA-232-D
90*bbf21555SRichard Lowepin), or not sent at all.
91*bbf21555SRichard Lowe.Pp
92*bbf21555SRichard LoweIn terms of clock modes, traditional asynchronous communication is implemented
93*bbf21555SRichard Lowesimply by using the local baud rate generator as the incoming transmit and
94*bbf21555SRichard Lowereceive clock source and not outputting any clock signals.
95*bbf21555SRichard Lowe.Ss "Terminal Parameters"
96*bbf21555SRichard LoweThe parameters that control the behavior of devices providing the
97*bbf21555SRichard Lowe.Nm
98*bbf21555SRichard Loweinterface are specified by the
99*bbf21555SRichard Lowe.Vt termiox
100*bbf21555SRichard Lowestructure defined in the
101*bbf21555SRichard Lowe.In sys/termiox.h
102*bbf21555SRichard Loweheader.
103*bbf21555SRichard LoweSeveral
104*bbf21555SRichard Lowe.Xr ioctl 2
105*bbf21555SRichard Lowesystem calls that fetch
106*bbf21555SRichard Loweor change these parameters use this structure:
107*bbf21555SRichard Lowe.Bd -literal -offset 2n
108*bbf21555SRichard Lowe#define	NFF	5
109*bbf21555SRichard Lowestruct termiox	{
110*bbf21555SRichard Lowe	unsigned short	x_hflag;       /* hardware flow control modes */
111*bbf21555SRichard Lowe	unsigned short	x_cflag;       /* clock modes */
112*bbf21555SRichard Lowe	unsigned short	x_rflag[NFF];  /* reserved modes */
113*bbf21555SRichard Lowe	unsigned short	x_sflag;       /* spare local modes */
114*bbf21555SRichard Lowe};
115*bbf21555SRichard Lowe.Ed
116*bbf21555SRichard Lowe.Pp
117*bbf21555SRichard LoweThe
118*bbf21555SRichard Lowe.Fa x_hflag
119*bbf21555SRichard Lowefield describes hardware flow control modes:
120*bbf21555SRichard Lowe.Bl -column xxxxxxx xxxxxxx x
121*bbf21555SRichard Lowe.It Dv RTSXOFF Ta 0000001 Ta "Enable RTS hardware flow control on input."
122*bbf21555SRichard Lowe.It Dv CTSXON Ta 0000002 Ta "Enable CTS hardware flow control on output."
123*bbf21555SRichard Lowe.It Dv DTRXOFF Ta 0000004 Ta "Enable DTR hardware flow control on input."
124*bbf21555SRichard Lowe.It Dv CDXON Ta 0000010 Ta "Enable CD hardware flow control on output."
125*bbf21555SRichard Lowe.It Dv ISXOFF Ta 0000020 Ta "Enable isochronous hardware flow control on input."
126*bbf21555SRichard Lowe.El
127*bbf21555SRichard Lowe.Pp
128*bbf21555SRichard LoweThe EIA-232-D DTR and CD circuits are used to establish a connection between
129*bbf21555SRichard Lowetwo systems.
130*bbf21555SRichard LoweThe RTS circuit is also used to establish a connection with a modem.
131*bbf21555SRichard LoweThus, both DTR and RTS are activated when an asynchronous port is opened.
132*bbf21555SRichard LoweIf DTR is used for hardware flow control, then RTS must be used for
133*bbf21555SRichard Loweconnectivity.
134*bbf21555SRichard LoweIf CD is used for hardware flow control, then CTS must be used
135*bbf21555SRichard Lowefor connectivity.
136*bbf21555SRichard LoweThus, RTS and DTR (or CTS and CD) cannot both be used for
137*bbf21555SRichard Lowehardware flow control at the same time.
138*bbf21555SRichard LoweOther mutual exclusions may apply, such as the simultaneous setting of the
139*bbf21555SRichard Lowe.Xr termio 4I
140*bbf21555SRichard Lowe.Dv HUPCL
141*bbf21555SRichard Loweand the
142*bbf21555SRichard Lowe.Vt termiox
143*bbf21555SRichard Lowe.Dv DTRXOFF
144*bbf21555SRichard Lowebits, which use the DTE ready line for different functions.
145*bbf21555SRichard Lowe.Pp
146*bbf21555SRichard LoweVariations of different hardware flow control methods may be selected by
147*bbf21555SRichard Lowesetting the appropriate bits.
148*bbf21555SRichard LoweFor example, bidirectional RTS/CTS flow control is selected by setting both the
149*bbf21555SRichard Lowe.Dv RTSXOFF
150*bbf21555SRichard Loweand
151*bbf21555SRichard Lowe.Dv CTSXON
152*bbf21555SRichard Lowebits and bidirectional DTR/CTS flow control is selected by setting both the
153*bbf21555SRichard Lowe.Dv DTRXOFF
154*bbf21555SRichard Loweand
155*bbf21555SRichard Lowe.Dv CTSXON .
156*bbf21555SRichard LoweModem control or unidirectional CTS hardware
157*bbf21555SRichard Loweflow control is selected by setting only the
158*bbf21555SRichard Lowe.Dv CTSXON
159*bbf21555SRichard Lowebit.
160*bbf21555SRichard Lowe.Pp
161*bbf21555SRichard LoweAs previously mentioned, it is assumed that the local asynchronous port (for
162*bbf21555SRichard Loweexample, computer) is configured as a DTE.
163*bbf21555SRichard LoweIf the connected device (for example, printer) is also a DTE, it is assumed
164*bbf21555SRichard Lowethat the device is connected to the computer's asynchronous port using a null
165*bbf21555SRichard Lowemodem that swaps control circuits (typically RTS and CTS).
166*bbf21555SRichard LoweThe connected DTE drives RTS and the null modem swaps
167*bbf21555SRichard LoweRTS and CTS so that the remote RTS is received as CTS by the local DTE.
168*bbf21555SRichard LoweIn the case that
169*bbf21555SRichard Lowe.Dv CTSXON
170*bbf21555SRichard Loweis set for hardware flow control, printer's lowering
171*bbf21555SRichard Loweof its RTS would cause CTS seen by the computer to be lowered.
172*bbf21555SRichard LoweOutput to the printer is suspended until the printer's raising of its RTS,
173*bbf21555SRichard Lowewhich would cause CTS seen by the computer to be raised.
174*bbf21555SRichard Lowe.Pp
175*bbf21555SRichard LoweIf
176*bbf21555SRichard Lowe.Dv RTSXOFF
177*bbf21555SRichard Loweis set, the Request To Send (RTS) circuit (line) will be
178*bbf21555SRichard Loweraised, and if the asynchronous port needs to have its input stopped, it will
179*bbf21555SRichard Lowelower the Request To Send (RTS) line.
180*bbf21555SRichard LoweIf the RTS line is lowered, it is assumed
181*bbf21555SRichard Lowethat the connected device will stop its output until RTS is raised.
182*bbf21555SRichard Lowe.Pp
183*bbf21555SRichard LoweIf
184*bbf21555SRichard Lowe.Dv CTSXON
185*bbf21555SRichard Loweis set, output will occur only if the Clear To Send (CTS)
186*bbf21555SRichard Lowecircuit (line) is raised by the connected device.
187*bbf21555SRichard LoweIf the CTS line is lowered by
188*bbf21555SRichard Lowethe connected device, output is suspended until CTS is raised.
189*bbf21555SRichard Lowe.Pp
190*bbf21555SRichard LoweIf
191*bbf21555SRichard Lowe.Dv DTRXOFF
192*bbf21555SRichard Loweis set, the DTE Ready (DTR) circuit (line) will be raised, and
193*bbf21555SRichard Loweif the asynchronous port needs to have its input stopped, it will lower the DTE
194*bbf21555SRichard LoweReady (DTR) line.
195*bbf21555SRichard LoweIf the DTR line is lowered, it is assumed that the connected
196*bbf21555SRichard Lowedevice will stop its output until DTR is raised.
197*bbf21555SRichard Lowe.Pp
198*bbf21555SRichard LoweIf
199*bbf21555SRichard Lowe.Dv CDXON
200*bbf21555SRichard Loweis set, output will occur only if the Received Line Signal
201*bbf21555SRichard LoweDetector (CD) circuit (line) is raised by the connected device.
202*bbf21555SRichard LoweIf the CD line
203*bbf21555SRichard Loweis lowered by the connected device, output is suspended until CD is raised.
204*bbf21555SRichard Lowe.Pp
205*bbf21555SRichard LoweIf
206*bbf21555SRichard Lowe.Dv ISXOFF
207*bbf21555SRichard Loweis set, and if the isochronous port needs to have its input
208*bbf21555SRichard Lowestopped, it will stop the outgoing clock signal.
209*bbf21555SRichard LoweIt is assumed that the
210*bbf21555SRichard Loweconnected device is using this clock signal to create its output.
211*bbf21555SRichard LoweTransit and receive clock sources are programmed using the
212*bbf21555SRichard Lowe.Fa x_cflag
213*bbf21555SRichard Lowefields.
214*bbf21555SRichard LoweIf the port is not programmed for external clock generation,
215*bbf21555SRichard Lowe.Dv ISXOFF
216*bbf21555SRichard Loweis ignored.
217*bbf21555SRichard LoweOutput isochronous flow control is supported by appropriate clock source
218*bbf21555SRichard Loweprogramming using the
219*bbf21555SRichard Lowe.Fa x_cflag
220*bbf21555SRichard Lowefield and enabled at the remote connected device.
221*bbf21555SRichard Lowe.Pp
222*bbf21555SRichard LoweThe
223*bbf21555SRichard Lowe.Fa x_cflag
224*bbf21555SRichard Lowefield specifies the system treatment of clock modes.
225*bbf21555SRichard Lowe.Bl -column xxxxxxxxx xxxxxxxx l
226*bbf21555SRichard Lowe.It Dv XMTCLK Ta 0000007 Ta "Transmit clock source:"
227*bbf21555SRichard Lowe.It Dv XCIBRG Ta 0000000 Ta "Get transmit clock from internal baud rate generator."
228*bbf21555SRichard Lowe.It Dv XCTSET Ta 0000001 Ta "Get transmit clock from transmitter signal element timing (DCE source) lead, CCITT V\.24 circuit 114, EIA-232-D pin 15."
229*bbf21555SRichard Lowe.It Dv XCRSET Ta 0000002 Ta  Get transmit clock from receiver signal element timing (DCE source) lead, CCITT V\.4 circuit 115, EIA-232-D pin 17."
230*bbf21555SRichard Lowe.It Dv RCVCLK Ta 0000070 Ta "Receive clock source:"
231*bbf21555SRichard Lowe.It Dv RCIBRG Ta 0000000 Ta "Get receive clock from internal baud rate generator."
232*bbf21555SRichard Lowe.It Dv RCTSET Ta 0000010 Ta "Get receive clock from transmitter signal element timing (DCE source) lead, CCITT V\.24 circuit 114, EIA-232-D pin 15."
233*bbf21555SRichard Lowe.It Dv RCRSET Ta 0000020 Ta "Get receive clock from receiver signal element timing (DCE source) lead, CCITT V\.24 circuit 115, EIA-232-D pin 17."
234*bbf21555SRichard Lowe.It Dv TSETCLK Ta 0000700 Ta "Transmitter signal element timing (DTE source) lead, CCITT V\.24 circuit 113, EIA-232-D pin 24, clock source:"
235*bbf21555SRichard Lowe.It Dv TSETCOFF Ta 0000000 Ta "TSET clock not provided."
236*bbf21555SRichard Lowe.It Dv TSETCRBRG Ta 0000100 Ta "Output receive baud rate generator on circuit 113."
237*bbf21555SRichard Lowe.It Dv TSETCTBRG Ta 0000200 Ta "Output transmit baud rate generator on circuit 113"
238*bbf21555SRichard Lowe.It Dv TSETCTSET Ta 0000300 Ta "Output transmitter signal element timing (DCE source) on circuit 113."
239*bbf21555SRichard Lowe.It Dv TSETCRSET Ta 0000400 Ta "Output receiver signal element timing (DCE source) on circuit 113."
240*bbf21555SRichard Lowe.It Dv RSETCLK Ta 0007000 Ta "Receiver signal element timing (DTE source) lead, CCITT V\.24 circuit 128, no EIA-232-D pin, clock source:"
241*bbf21555SRichard Lowe.It Dv RSETCOFF Ta 0000000 Ta "RSET clock not provided."
242*bbf21555SRichard Lowe.It Dv RSETCRBRG Ta 0001000 Ta "Output receive baud rate generator on circuit 128."
243*bbf21555SRichard Lowe.It Dv RSETCTBRG Ta 0002000 Ta "Output transmit baud rate generator on circuit 128."
244*bbf21555SRichard Lowe.It Dv RSETCTSET Ta 0003000 Ta "Output transmitter signal element timing (DCE source) on circuit 128."
245*bbf21555SRichard Lowe.It Dv RSETCRSET Ta 0004000 Ta "Output receiver signal element timing (DCE) on circuit 128."
246*bbf21555SRichard Lowe.El
247*bbf21555SRichard Lowe.Pp
248*bbf21555SRichard LoweIf the
249*bbf21555SRichard Lowe.Fa XMTCLK
250*bbf21555SRichard Lowefield has a value of
251*bbf21555SRichard Lowe.Dv XCIBRG
252*bbf21555SRichard Lowethe transmit clock is taken from the hardware internal baud rate generator, as
253*bbf21555SRichard Lowein normal asynchronous transmission.
254*bbf21555SRichard LoweIf
255*bbf21555SRichard Lowe.Fa XMTCLK
256*bbf21555SRichard Lowe=
257*bbf21555SRichard Lowe.Dv XCTSET
258*bbf21555SRichard Lowethe transmit clock is taken from
259*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DCE source) circuit.
260*bbf21555SRichard LoweIf
261*bbf21555SRichard Lowe.Fa XMTCLK
262*bbf21555SRichard Lowe=
263*bbf21555SRichard Lowe.Dv XCRSET
264*bbf21555SRichard Lowethe transmit clock is taken from the Receiver Signal Element
265*bbf21555SRichard LoweTiming (DCE source) circuit.
266*bbf21555SRichard Lowe.Pp
267*bbf21555SRichard LoweIf the
268*bbf21555SRichard Lowe.Fa RCVCLK
269*bbf21555SRichard Lowefield has a value of
270*bbf21555SRichard Lowe.Dv RCIBRG ,
271*bbf21555SRichard Lowethe receive clock is
272*bbf21555SRichard Lowetaken from the hardware Internal Baud Rate Generator, as in normal asynchronous
273*bbf21555SRichard Lowetransmission.
274*bbf21555SRichard LoweIf
275*bbf21555SRichard Lowe.Fa RCVCLK
276*bbf21555SRichard Lowe=
277*bbf21555SRichard Lowe.Dv RCTSET
278*bbf21555SRichard Lowethe receive clock is taken from
279*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DCE source) circuit.
280*bbf21555SRichard LoweIf
281*bbf21555SRichard Lowe.Fa RCVCLK
282*bbf21555SRichard Lowe=
283*bbf21555SRichard Lowe.Dv RCRSET
284*bbf21555SRichard Lowethe receive clock is taken from the Receiver Signal Element Timing
285*bbf21555SRichard Lowe(DCE source) circuit.
286*bbf21555SRichard Lowe.Pp
287*bbf21555SRichard LoweIf the
288*bbf21555SRichard Lowe.Fa TSETCLK
289*bbf21555SRichard Lowefield has a value of
290*bbf21555SRichard Lowe.Dv TSETCOFF
291*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DTE source) circuit is not driven.
292*bbf21555SRichard LoweIf
293*bbf21555SRichard Lowe.Fa TSETCLK
294*bbf21555SRichard Lowe=
295*bbf21555SRichard Lowe.Dv TSETCRBRG
296*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DTE source) circuit is
297*bbf21555SRichard Lowedriven by the Receive Baud Rate Generator.
298*bbf21555SRichard LoweIf
299*bbf21555SRichard Lowe.Fa TSETCLK
300*bbf21555SRichard Lowe=
301*bbf21555SRichard Lowe.Dv TSETCTBRG
302*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DTE source) circuit is driven by the
303*bbf21555SRichard LoweTransmit Baud Rate Generator.
304*bbf21555SRichard LoweIf
305*bbf21555SRichard Lowe.Fa TSETCLK
306*bbf21555SRichard Lowe=
307*bbf21555SRichard Lowe.Dv TSETCTSET
308*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DTE source) circuit is driven by the
309*bbf21555SRichard LoweTransmitter Signal Element Timing (DCE source).
310*bbf21555SRichard LoweIf
311*bbf21555SRichard Lowe.Fa TSETCLK
312*bbf21555SRichard Lowe=
313*bbf21555SRichard Lowe.Dv TSETCRBRG
314*bbf21555SRichard Lowethe Transmitter Signal Element Timing (DTE source) circuit is
315*bbf21555SRichard Lowedriven by the Receiver Signal Element Timing (DCE source).
316*bbf21555SRichard Lowe.Pp
317*bbf21555SRichard LoweIf the
318*bbf21555SRichard Lowe.Fa RSETCLK
319*bbf21555SRichard Lowefield has a value of
320*bbf21555SRichard Lowe.Dv RSETCOFF
321*bbf21555SRichard Lowethe Receiver Signal Element Timing (DTE source) circuit is not driven.
322*bbf21555SRichard LoweIf
323*bbf21555SRichard Lowe.Fa RSETCLK
324*bbf21555SRichard Lowe=
325*bbf21555SRichard Lowe.Dv RSETCRBRG
326*bbf21555SRichard Lowethe Receiver Signal Element Timing (DTE source) circuit is
327*bbf21555SRichard Lowedriven by the Receive Baud Rate Generator.
328*bbf21555SRichard LoweIf
329*bbf21555SRichard Lowe.Fa RSETCLK
330*bbf21555SRichard Lowe=
331*bbf21555SRichard Lowe.Dv RSETCTBRG
332*bbf21555SRichard Lowethe Receiver Signal Element Timing (DTE source) circuit is driven by the
333*bbf21555SRichard LoweTransmit Baud Rate Generator.
334*bbf21555SRichard LoweIf
335*bbf21555SRichard Lowe.Fa RSETCLK
336*bbf21555SRichard Lowe=
337*bbf21555SRichard Lowe.Dv RSETCTSET
338*bbf21555SRichard Lowethe Receiver
339*bbf21555SRichard LoweSignal Element Timing (DTE source) circuit is driven by the Transmitter Signal
340*bbf21555SRichard LoweElement Timing (DCE source).
341*bbf21555SRichard LoweIf
342*bbf21555SRichard Lowe.Fa RSETCLK
343*bbf21555SRichard Lowe=
344*bbf21555SRichard Lowe.Dv RSETCRBRG
345*bbf21555SRichard Lowethe Receiver
346*bbf21555SRichard LoweSignal Element Timing (DTE source) circuit is driven by the Receiver Signal
347*bbf21555SRichard LoweElement Timing (DCE source).
348*bbf21555SRichard Lowe.Pp
349*bbf21555SRichard LoweThe
350*bbf21555SRichard Lowe.Fa x_rflag
351*bbf21555SRichard Loweis reserved for future interface definitions and should not
352*bbf21555SRichard Lowebe used by any implementations.
353*bbf21555SRichard LoweThe
354*bbf21555SRichard Lowe.Fa x_sflag
355*bbf21555SRichard Lowemay be used by local
356*bbf21555SRichard Loweimplementations wishing to customize their terminal interface using the
357*bbf21555SRichard Lowe.Nm
358*bbf21555SRichard Loweioctl system calls.
359*bbf21555SRichard Lowe.Sh IOCTLS
360*bbf21555SRichard LoweThe
361*bbf21555SRichard Lowe.Xr ioctl 2
362*bbf21555SRichard Lowesystem calls have the form:
363*bbf21555SRichard Lowe.Bd -literal -offset 2n
364*bbf21555SRichard Lowestruct termiox *arg;
365*bbf21555SRichard Loweioctl(fildes, command, arg);
366*bbf21555SRichard Lowe.Ed
367*bbf21555SRichard Lowe.Pp
368*bbf21555SRichard LoweThe commands using this form are:
369*bbf21555SRichard Lowe.Bl -tag -width TCSETXW
370*bbf21555SRichard Lowe.It Dv TCGETX
371*bbf21555SRichard LoweThe argument is a pointer to a
372*bbf21555SRichard Lowe.Vt termiox
373*bbf21555SRichard Lowestructure.
374*bbf21555SRichard LoweThe current terminal parameters are fetched and stored into that structure.
375*bbf21555SRichard Lowe.It Dv TCSETX
376*bbf21555SRichard LoweThe argument is a pointer to a
377*bbf21555SRichard Lowe.Vt termiox
378*bbf21555SRichard Lowestructure.
379*bbf21555SRichard LoweThe current terminal parameters are set from the values stored in that structure.
380*bbf21555SRichard LoweThe change is immediate.
381*bbf21555SRichard Lowe.It Dv TCSETXW
382*bbf21555SRichard LoweThe argument is a pointer to a
383*bbf21555SRichard Lowe.Vt termiox
384*bbf21555SRichard Lowestructure.
385*bbf21555SRichard LoweThe current terminal parameters are set from the values stored in that structure.
386*bbf21555SRichard LoweThe change occurs after all characters queued for output have been transmitted.
387*bbf21555SRichard LoweThis form should be used when changing parameters that will affect output.
388*bbf21555SRichard Lowe.It Dv TCSETXF
389*bbf21555SRichard LoweThe argument is a pointer to a
390*bbf21555SRichard Lowe.Vt termiox
391*bbf21555SRichard Lowestructure.
392*bbf21555SRichard LoweThe current terminal parameters are set from the values stored in that structure.
393*bbf21555SRichard LoweThe change occurs
394*bbf21555SRichard Loweafter all characters queued for output have been transmitted; all characters
395*bbf21555SRichard Lowequeued for input are discarded and then the change occurs.
396*bbf21555SRichard Lowe.El
397*bbf21555SRichard Lowe.Sh FILES
398*bbf21555SRichard Lowe.Pa /dev/*
399*bbf21555SRichard Lowe.Sh SEE ALSO
400*bbf21555SRichard Lowe.Xr stty 1 ,
401*bbf21555SRichard Lowe.Xr ioctl 2 ,
402*bbf21555SRichard Lowe.Xr termio 4I
403*bbf21555SRichard Lowe.Sh NOTES
404*bbf21555SRichard LoweThe
405*bbf21555SRichard Lowe.Nm termiox Ns Pq 4I
406*bbf21555SRichard Lowesystem call is provided for compatibility with previous
407*bbf21555SRichard Lowereleases and its use is discouraged.
408*bbf21555SRichard LoweInstead, the
409*bbf21555SRichard Lowe.Xr termio 4I
410*bbf21555SRichard Lowesystem call is recommended.
411*bbf21555SRichard LoweSee
412*bbf21555SRichard Lowe.Xr termio 4I
413*bbf21555SRichard Lowefor usage information.
414