1993-08-28 12:41:23 +00:00
|
|
|
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to Berkeley by
|
|
|
|
.\" the Systems Programming Group of the University of Utah Computer
|
|
|
|
.\" Science Department.
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" from: @(#)dca.4 5.2 (Berkeley) 3/27/91
|
|
|
|
.\" from: com.4,v 1.1 1993/08/06 11:19:07 cgd Exp
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1993-08-28 12:41:23 +00:00
|
|
|
.\"
|
2004-10-18 21:31:05 +00:00
|
|
|
.Dd October 17, 2004
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt SIO 4
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm sio
|
2001-04-18 15:54:10 +00:00
|
|
|
.Nd "fast interrupt driven asynchronous serial communications interface"
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-04-01 06:46:17 +00:00
|
|
|
For standard ISA ports:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sio"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2001-10-13 09:08:37 +00:00
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.sio.0.at="isa"
|
|
|
|
.Cd hint.sio.0.port="0x3f8"
|
|
|
|
.Cd hint.sio.0.flags="0x10"
|
|
|
|
.Cd hint.sio.0.irq="4"
|
|
|
|
.Cd hint.sio.1.at="isa"
|
|
|
|
.Cd hint.sio.1.port="0x2f8"
|
|
|
|
.Cd hint.sio.1.flags="0x0"
|
|
|
|
.Cd hint.sio.1.irq="3"
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
For AST compatible multiport cards with 4 ports:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2000-01-17 14:51:44 +00:00
|
|
|
.Cd "options COM_MULTIPORT"
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sio"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2002-07-11 20:24:58 +00:00
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd hint.sio.4.at="isa"
|
|
|
|
.Cd hint.sio.4.port="0x2a0"
|
|
|
|
.Cd hint.sio.4.flags="0x701"
|
|
|
|
.Cd hint.sio.5.at="isa"
|
|
|
|
.Cd hint.sio.5.port="0x2a8"
|
|
|
|
.Cd hint.sio.5.flags="0x701"
|
|
|
|
.Cd hint.sio.6.at="isa"
|
|
|
|
.Cd hint.sio.6.port="0x2b0"
|
|
|
|
.Cd hint.sio.6.flags="0x701"
|
|
|
|
.Cd hint.sio.7.at="isa"
|
|
|
|
.Cd hint.sio.7.port="0x2b8"
|
|
|
|
.Cd hint.sio.7.flags="0x701"
|
|
|
|
.Cd hint.sio.7.irq="12"
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
For Boca Board compatible multiport cards with 8 ports:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2000-01-17 14:51:44 +00:00
|
|
|
.Cd "options COM_MULTIPORT"
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sio"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2001-10-13 09:08:37 +00:00
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.sio.4.at="isa"
|
|
|
|
.Cd hint.sio.4.port="0x100"
|
|
|
|
.Cd hint.sio.4.flags="0xb05"
|
1994-06-04 00:41:25 +00:00
|
|
|
.Cd "..."
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd hint.sio.11.at="isa"
|
|
|
|
.Cd hint.sio.11.port="0x138"
|
|
|
|
.Cd hint.sio.11.flags="0xb05"
|
|
|
|
.Cd hint.sio.11.irq="12"
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
2002-07-10 17:26:11 +00:00
|
|
|
For Netmos Nm9845 multiport cards with 6 ports:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2002-07-10 17:26:11 +00:00
|
|
|
.Cd "options COM_MULTIPORT"
|
|
|
|
.Cd "device sio"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2002-07-10 17:26:11 +00:00
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.sio.4.at="isa"
|
|
|
|
.Cd hint.sio.4.port="0xb000"
|
|
|
|
.Cd hint.sio.4.flags="0x901"
|
|
|
|
.Cd hint.sio.5.at="isa"
|
|
|
|
.Cd hint.sio.5.port="0xb400"
|
|
|
|
.Cd hint.sio.5.flags="0x901"
|
|
|
|
.Cd hint.sio.6.at="isa"
|
|
|
|
.Cd hint.sio.6.port="0xb800"
|
|
|
|
.Cd hint.sio.6.flags="0x901"
|
|
|
|
.Cd hint.sio.7.at="isa"
|
|
|
|
.Cd hint.sio.7.port="0xbc00"
|
|
|
|
.Cd hint.sio.7.flags="0x901"
|
|
|
|
.Cd hint.sio.8.at="isa"
|
|
|
|
.Cd hint.sio.8.port="0xc000"
|
|
|
|
.Cd hint.sio.8.flags="0x901"
|
|
|
|
.Cd hint.sio.9.at="isa"
|
|
|
|
.Cd hint.sio.9.port="0xac00"
|
|
|
|
.Cd hint.sio.9.flags="0x901"
|
|
|
|
.Cd hint.sio.9.irq="12"
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
2002-07-10 17:26:11 +00:00
|
|
|
.Pp
|
1995-12-29 12:51:32 +00:00
|
|
|
For Hayes ESP cards:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2000-01-17 14:51:44 +00:00
|
|
|
.Cd "options COM_ESP"
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sio"
|
1995-12-29 12:51:32 +00:00
|
|
|
.Cd "..."
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
2002-07-11 20:24:58 +00:00
|
|
|
For single port PCI and PCCARD cards:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2000-04-01 06:46:17 +00:00
|
|
|
.Cd "device sio"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2002-07-11 20:24:58 +00:00
|
|
|
No lines are required in
|
|
|
|
.Pa /boot/device.hints
|
|
|
|
for these cards.
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
2000-04-01 06:46:17 +00:00
|
|
|
.Pp
|
2001-08-31 20:16:00 +00:00
|
|
|
For dual port PCI cards that share an interrupt:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device sio"
|
2002-07-11 20:24:58 +00:00
|
|
|
.Cd "options COM_MULTIPORT"
|
2002-08-13 13:59:35 +00:00
|
|
|
.Pp
|
2001-10-13 09:08:37 +00:00
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.sio.2.flags="0x201"
|
|
|
|
.Cd hint.sio.3.flags="0x201"
|
2002-08-14 16:09:31 +00:00
|
|
|
.Ed
|
2001-08-31 20:16:00 +00:00
|
|
|
.Pp
|
1997-09-14 18:55:41 +00:00
|
|
|
Meaning of
|
|
|
|
.Ar flags :
|
|
|
|
.Bl -tag -offset indent -compact -width 0x000000
|
|
|
|
.It 0x00001
|
|
|
|
shared IRQs
|
|
|
|
.It 0x00002
|
|
|
|
disable FIFO
|
|
|
|
.It 0x00004
|
|
|
|
no AST/4 compatible IRQ control register
|
|
|
|
.It 0x00008
|
|
|
|
recover sooner from lost output interrupts
|
|
|
|
.It 0x00010
|
|
|
|
device is potential system console
|
|
|
|
.It 0x00020
|
|
|
|
device is forced to become system console
|
|
|
|
.It 0x00040
|
2004-07-03 18:29:24 +00:00
|
|
|
device is reserved for low-level IO (e.g.\& for remote kernel debugging)
|
1999-10-05 20:30:21 +00:00
|
|
|
.It 0x00080
|
|
|
|
use this port for remote kernel debugging
|
1997-09-14 18:55:41 +00:00
|
|
|
.It 0x0 Ns Em ?? Ns 00
|
|
|
|
minor number of master port
|
2003-02-27 12:27:35 +00:00
|
|
|
.It 0x10000
|
|
|
|
PPS timestamping on CTS instead of DCD
|
1997-09-14 18:55:41 +00:00
|
|
|
.It 0x20000
|
|
|
|
device is assumed to use a 16650A-type (extended FIFO) chip
|
|
|
|
.El
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Minor numbering:
|
2002-08-14 16:09:31 +00:00
|
|
|
.Bd -literal -offset indent -compact
|
1994-06-04 00:41:25 +00:00
|
|
|
0b\fIOLIMMMMM\fR
|
|
|
|
call\fBO\fRut
|
|
|
|
\fBL\fRock
|
|
|
|
\fBI\fRnitial
|
2000-11-10 17:46:15 +00:00
|
|
|
\fBMMMMM\fRinor
|
|
|
|
.Ed
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1994-02-09 23:49:45 +00:00
|
|
|
driver provides support for NS8250-, NS16450-, NS16550 and NS16550A-based
|
1993-08-28 12:41:23 +00:00
|
|
|
.Tn EIA
|
|
|
|
.Tn RS-232C
|
|
|
|
.Pf ( Tn CCITT
|
1994-02-09 23:49:45 +00:00
|
|
|
.Tn V.24 )
|
2003-06-28 23:53:39 +00:00
|
|
|
communications interfaces.
|
|
|
|
The NS8250 and NS16450 have single character
|
1994-06-04 00:41:25 +00:00
|
|
|
buffers, the NS16550A has 16 character FIFO input and output buffers.
|
1993-08-28 12:41:23 +00:00
|
|
|
.Pp
|
|
|
|
Input and output for each line may set to one of following baud rates;
|
|
|
|
50, 75, 110, 134.5, 150, 300, 600, 1200, 1800, 2400, 4800, 9600,
|
2003-06-28 23:53:39 +00:00
|
|
|
19200, 28800, 38400, 57600, or 115200.
|
|
|
|
Your hardware may limit your baud rate choices.
|
1994-02-09 23:49:45 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
The driver supports `multiport' cards.
|
1994-03-18 13:40:01 +00:00
|
|
|
Multiport cards are those that have one or more groups of ports
|
1994-06-04 00:41:25 +00:00
|
|
|
that share an Interrupt Request (IRQ) line per group.
|
|
|
|
Shared IRQs on different cards are not supported.
|
|
|
|
Frequently 4 ports share 1 IRQ; some 8 port cards have 2 groups of 4 ports,
|
1994-03-18 13:40:01 +00:00
|
|
|
thus using 2 IRQs.
|
1998-06-08 06:12:02 +00:00
|
|
|
Some cards allow the first 2 serial ports to have separate IRQs per port
|
1994-03-18 13:40:01 +00:00
|
|
|
(as per DOS PC standard).
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Some cards have an IRQ control register for each group.
|
|
|
|
Some cards require special initialization related to such registers.
|
|
|
|
Only AST/4 compatible IRQ control registers are supported.
|
|
|
|
Some cards have an IRQ status register for each group.
|
|
|
|
The driver does not require or use such registers yet.
|
|
|
|
To work, the control and status registers for a group, if any,
|
|
|
|
must be mapped to the scratch register (register 7)
|
|
|
|
of a port in the group.
|
|
|
|
Such a port is called a
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em master
|
1994-06-04 00:41:25 +00:00
|
|
|
port.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
2000-04-01 06:46:17 +00:00
|
|
|
The driver supports controller based PCI modems.
|
|
|
|
The 3Com FaxModem PCI and the Advantec 56k Voice Messaging PCI
|
|
|
|
FaxModem are the only cards supported.
|
2005-02-13 22:25:33 +00:00
|
|
|
WinModems, softmodems, hfc modems and any other modems that are not
|
2000-04-01 06:46:17 +00:00
|
|
|
controller based are not supported.
|
|
|
|
.Pp
|
1994-03-18 13:40:01 +00:00
|
|
|
The
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em flags
|
1994-06-04 00:41:25 +00:00
|
|
|
keyword may be used on each
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em device sio
|
1994-06-04 00:41:25 +00:00
|
|
|
line in the kernel configuration file
|
1998-05-31 11:16:09 +00:00
|
|
|
to disable the FIFO on 16550A UARTs
|
1994-06-04 00:41:25 +00:00
|
|
|
(see the synopsis).
|
1998-05-31 11:16:09 +00:00
|
|
|
Disabling the FIFO should rarely be necessary.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
The
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em flags
|
1994-06-04 00:41:25 +00:00
|
|
|
keyword
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em must
|
1994-06-04 00:41:25 +00:00
|
|
|
be used for all ports that are part of an IRQ sharing group.
|
|
|
|
One bit specifies IRQ sharing; another bit specifies whether the port does
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em not
|
1994-06-04 00:41:25 +00:00
|
|
|
require AST/4 compatible initialization.
|
|
|
|
The minor number of the device corresponding a master port
|
|
|
|
for the group is encoded as a bitfield in the high byte.
|
|
|
|
The same master port must be specified for all ports in a group.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
The
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em irq
|
1998-10-22 14:12:55 +00:00
|
|
|
specification must be given for master ports
|
1994-06-04 00:41:25 +00:00
|
|
|
and for ports that are not part of an IRQ sharing group,
|
|
|
|
and not for other ports.
|
1994-02-17 11:41:16 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
In the synopsis,
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em flags 0x701
|
1994-05-07 01:15:10 +00:00
|
|
|
means that the 8th port (sio7) is the master
|
1994-06-04 00:41:25 +00:00
|
|
|
port, and that the port is on a multiport card with shared IRQs
|
|
|
|
and an AST/4 compatible IRQ control register.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em flags 0xb05
|
1994-06-04 00:41:25 +00:00
|
|
|
means that the 12th port (sio11) is the master
|
|
|
|
port, and that the port is on a multiport card with shared IRQs
|
|
|
|
and no special IRQ control register.
|
1994-02-17 11:41:16 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Which port is the master port depends on the card type.
|
|
|
|
Consult the hardware documentation of your card.
|
|
|
|
Since IRQ status registers are never used,
|
|
|
|
and IRQ control registers are only used for AST/4 compatible cards,
|
|
|
|
and some cards map the control/status registers to all ports in a group,
|
|
|
|
any port in a group will sometimes do for the master port.
|
|
|
|
Choose a port containing an IRQ status register for forwards compatibility,
|
|
|
|
and the highest possible port for consistency.
|
1994-02-17 11:41:16 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Serial ports controlled by the
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1994-06-04 00:41:25 +00:00
|
|
|
driver can be used for both `callin' and `callout'.
|
|
|
|
For each port there is a callin device and a callout device.
|
|
|
|
The minor number of the callout device is 128 higher
|
|
|
|
than that of the corresponding callin port.
|
|
|
|
The callin device is general purpose.
|
|
|
|
Processes opening it normally wait for carrier
|
|
|
|
and for the callout device to become inactive.
|
|
|
|
The callout device is used to steal the port from
|
|
|
|
processes waiting for carrier on the callin device.
|
|
|
|
Processes opening it do not wait for carrier
|
|
|
|
and put any processes waiting for carrier on the callin device into
|
|
|
|
a deeper sleep so that they do not conflict with the callout session.
|
|
|
|
The callout device is abused for handling programs that are supposed
|
|
|
|
to work on general ports and need to open the port without waiting
|
|
|
|
but are too stupid to do so.
|
1994-03-18 13:40:01 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1994-06-04 00:41:25 +00:00
|
|
|
driver also supports an initial-state and a lock-state control
|
|
|
|
device for each of the callin and the callout "data" devices.
|
|
|
|
The minor number of the initial-state device is 32 higher
|
|
|
|
than that of the corresponding data device.
|
|
|
|
The minor number of the lock-state device is 64 higher
|
|
|
|
than that of the corresponding data device.
|
|
|
|
The termios settings of a data device are copied
|
|
|
|
from those of the corresponding initial-state device
|
|
|
|
on first opens and are not inherited from previous opens.
|
|
|
|
Use
|
|
|
|
.Xr stty 1
|
|
|
|
in the normal way on the initial-state devices to program
|
|
|
|
initial termios states suitable for your setup.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
The lock termios state acts as flags to disable changing
|
2003-06-28 23:53:39 +00:00
|
|
|
the termios state.
|
|
|
|
E.g., to lock a flag variable such as CRTSCTS, use
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em stty crtscts
|
2003-06-28 23:53:39 +00:00
|
|
|
on the lock-state device.
|
|
|
|
Speeds and special characters
|
1994-06-04 00:41:25 +00:00
|
|
|
may be locked by setting the corresponding value in the lock-state
|
|
|
|
device to any nonzero value.
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Correct programs talking to correctly wired external devices
|
1995-06-26 06:05:30 +00:00
|
|
|
work with almost arbitrary initial states and almost no locking,
|
1994-06-04 00:41:25 +00:00
|
|
|
but other setups may benefit from changing some of the default
|
|
|
|
initial state and locking the state.
|
1995-06-26 06:05:30 +00:00
|
|
|
In particular, the initial states for non (POSIX) standard flags
|
|
|
|
should be set to suit the devices attached and may need to be
|
|
|
|
locked to prevent buggy programs from changing them.
|
1994-06-04 00:41:25 +00:00
|
|
|
E.g., CRTSCTS should be locked on for devices that support
|
2005-02-13 22:25:33 +00:00
|
|
|
RTS/CTS handshaking at all times and off for devices that do not
|
2003-06-28 23:53:39 +00:00
|
|
|
support it at all.
|
2005-02-13 22:25:33 +00:00
|
|
|
CLOCAL should be locked on for devices that do not support carrier.
|
|
|
|
HUPCL may be locked off if you do not
|
2003-06-28 23:53:39 +00:00
|
|
|
want to hang up for some reason.
|
|
|
|
In general, very bad things happen
|
1994-06-04 00:41:25 +00:00
|
|
|
if something is locked to the wrong state, and things should not
|
2003-06-28 23:53:39 +00:00
|
|
|
be locked for devices that support more than one setting.
|
|
|
|
The CLOCAL flag on callin ports should be locked off for logins
|
1994-06-04 00:41:25 +00:00
|
|
|
to avoid certain security holes, but this needs to be done by
|
|
|
|
getty if the callin port is used for anything else.
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh FILES
|
2004-10-18 21:31:05 +00:00
|
|
|
.Bl -tag -width /dev/ttyd?.init -compact
|
1994-02-19 13:19:33 +00:00
|
|
|
.It Pa /dev/ttyd?
|
1994-12-06 20:14:30 +00:00
|
|
|
for callin ports
|
2004-10-18 21:31:05 +00:00
|
|
|
.It Pa /dev/ttyd?.init
|
|
|
|
.It Pa /dev/ttyd?.lock
|
1994-06-04 00:41:25 +00:00
|
|
|
corresponding callin initial-state and lock-state devices
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
2004-10-18 21:31:05 +00:00
|
|
|
.It Pa /dev/cuad?
|
1994-06-04 00:41:25 +00:00
|
|
|
for callout ports
|
2004-10-18 21:31:05 +00:00
|
|
|
.It Pa /dev/cuad?.init
|
|
|
|
.It Pa /dev/cuad?.lock
|
1994-06-04 00:41:25 +00:00
|
|
|
corresponding callout initial-state and lock-state devices
|
|
|
|
.El
|
1997-01-31 00:38:18 +00:00
|
|
|
.Pp
|
2004-10-18 21:31:05 +00:00
|
|
|
.Bl -tag -width /etc/rc.d/serial -compact
|
|
|
|
.It Pa /etc/rc.d/serial
|
1994-06-04 00:41:25 +00:00
|
|
|
examples of setting the initial-state and lock-state devices
|
1994-02-19 13:19:33 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2002-12-16 00:52:31 +00:00
|
|
|
The device numbers are made from the set [0-9a-v] so that more than
|
1994-02-19 15:50:38 +00:00
|
|
|
10 ports can be supported.
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
.Bl -diag
|
|
|
|
.It sio%d: silo overflow.
|
1994-06-04 00:41:25 +00:00
|
|
|
Problem in the interrupt handler.
|
|
|
|
.El
|
|
|
|
.Bl -diag
|
|
|
|
.It sio%d: interrupt-level buffer overflow.
|
|
|
|
Problem in the bottom half of the driver.
|
1993-08-28 12:41:23 +00:00
|
|
|
.El
|
1994-06-04 00:41:25 +00:00
|
|
|
.Bl -diag
|
|
|
|
.It sio%d: tty-level buffer overflow.
|
|
|
|
Problem in the application.
|
|
|
|
Input has arrived faster than the given module could process it
|
|
|
|
and some has been lost.
|
|
|
|
.El
|
1995-10-10 03:43:10 +00:00
|
|
|
.\" .Bl -diag
|
|
|
|
.\" .It sio%d: reduced fifo trigger level to %d.
|
|
|
|
.\" Attempting to avoid further silo overflows.
|
|
|
|
.\" .El
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh SEE ALSO
|
1996-12-26 16:16:37 +00:00
|
|
|
.Xr stty 1 ,
|
1994-06-04 00:41:25 +00:00
|
|
|
.Xr termios 4 ,
|
1996-12-26 16:16:37 +00:00
|
|
|
.Xr tty 4 ,
|
|
|
|
.Xr comcontrol 8
|
1993-08-28 12:41:23 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver is derived from the
|
1997-02-05 15:07:37 +00:00
|
|
|
.Tn HP9000/300
|
|
|
|
.Xr dca 4
|
1993-08-28 12:41:23 +00:00
|
|
|
driver and is
|
|
|
|
.Ud
|
|
|
|
.Sh BUGS
|
1995-06-26 06:05:30 +00:00
|
|
|
Data loss may occur at very high baud rates on slow systems,
|
|
|
|
or with too many ports on any system,
|
|
|
|
or on heavily loaded systems when crtscts cannot be used.
|
1994-06-04 00:41:25 +00:00
|
|
|
The use of NS16550A's reduces system load and helps to avoid data loss.
|
1993-08-28 12:41:23 +00:00
|
|
|
.Pp
|
2003-06-28 23:53:39 +00:00
|
|
|
Stay away from plain NS16550's.
|
|
|
|
These are early implementations of the chip with non-functional FIFO hardware.
|
1994-02-13 00:16:23 +00:00
|
|
|
.Pp
|
1993-08-28 12:41:23 +00:00
|
|
|
The constants which define the locations
|
1994-02-17 11:41:16 +00:00
|
|
|
of the various serial ports are holdovers from
|
1997-02-05 15:07:37 +00:00
|
|
|
.Tn DOS .
|
1994-02-13 00:16:23 +00:00
|
|
|
As shown, hex addresses can be and for clarity probably should be used instead.
|
1994-02-09 23:49:45 +00:00
|
|
|
.Pp
|
1994-06-04 00:41:25 +00:00
|
|
|
Note that on the AST/4 the card's dipswitches should
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em not
|
2000-03-01 14:50:24 +00:00
|
|
|
be set to use interrupt sharing.
|
|
|
|
AST/4-like interrupt sharing is only used when
|
1997-02-05 15:07:37 +00:00
|
|
|
.Em multiple
|
2003-06-28 23:53:39 +00:00
|
|
|
AST/4 cards are installed in the same system.
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver does not support more than 1 AST/4 on one IRQ.
|
1994-06-04 00:41:25 +00:00
|
|
|
.Pp
|
|
|
|
The examples in the synopsis are too vendor-specific.
|