1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1995-09-26 18:23:38 +00:00
|
|
|
.Dd September 16, 1995
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt SI 4
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm si
|
2000-05-09 14:02:06 +00:00
|
|
|
.Nd "driver for Specialix International SI/XIO or SX intelligent serial card"
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-01-23 16:13:26 +00:00
|
|
|
.Cd "device si"
|
2001-10-13 09:08:37 +00:00
|
|
|
.Pp
|
|
|
|
For ISA host cards put the following lines in
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.si.0.at="isa"
|
|
|
|
.Cd hint.si.0.maddr="0xd0000"
|
|
|
|
.Cd hint.si.0.irq="12"
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh DESCRIPTION
|
1998-03-23 20:24:31 +00:00
|
|
|
The Specialix SI/XIO and SX hardware makes up an 8 to 32 port RS-232 serial
|
1995-09-26 18:23:38 +00:00
|
|
|
multiplexor.
|
|
|
|
.Pp
|
1998-03-23 20:24:31 +00:00
|
|
|
The system uses two components: A "Host adapter", which is plugged into
|
|
|
|
an ISA, EISA or PCI slot and provides intelligence and buffering/processing
|
|
|
|
capabilities, as well as an external bus in the form of a 37 pin cable.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
2003-06-28 23:53:39 +00:00
|
|
|
On this cable, "modules" are connected.
|
|
|
|
The "SI" module comes in a 4 and 8 port version.
|
|
|
|
The "XIO" and "SX" modules come only in
|
1998-03-23 20:24:31 +00:00
|
|
|
8 port versions.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
1998-03-23 20:24:31 +00:00
|
|
|
The host adapter polls and transfers data between the modules and the rest
|
2000-03-01 14:50:24 +00:00
|
|
|
of the machine.
|
|
|
|
The Host adapter provides a 256 byte transmit and 256 byte
|
1995-09-26 18:23:38 +00:00
|
|
|
receive FIFO for each of the 32 ports that it can maintain.
|
|
|
|
.Pp
|
1998-03-23 20:24:31 +00:00
|
|
|
The XIO modules can operate each of their 8 ports at 115,200 baud.
|
2000-03-01 14:50:24 +00:00
|
|
|
The SI version can run at 57,600 baud.
|
|
|
|
The SX modules can operate each of their
|
1998-03-23 20:24:31 +00:00
|
|
|
8 ports at up to 921,600 baud.
|
|
|
|
.Pp
|
2000-03-01 14:50:24 +00:00
|
|
|
SX modules are only supported when connected to an SX host card.
|
|
|
|
SI or
|
1998-03-23 20:24:31 +00:00
|
|
|
XIO modules are supported on any host card.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
|
|
|
The host adapter uses a shared memory block in the traditional ISA bus
|
2003-06-28 23:53:39 +00:00
|
|
|
"hole" between 0xA0000 and 0xEFFFF.
|
|
|
|
The adapter can be configured outside
|
|
|
|
range, but requires the memory range to be explicitly non-cached.
|
|
|
|
The driver does not yet support this mode of operation.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
2000-03-01 14:50:24 +00:00
|
|
|
SX ISA Host cards have an 8/16 bit mode switch or jumper on them.
|
|
|
|
This switch
|
1998-03-23 20:24:31 +00:00
|
|
|
or jumper MUST be set for 8 bit mode.
|
|
|
|
.Pp
|
|
|
|
The ISA adapters can use Irq's 11, 12 or 15 (and 9 and 10 in the case of
|
|
|
|
SX host cards).
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
2001-04-15 19:53:47 +00:00
|
|
|
The si device driver may have some of its configuration settings changed
|
1995-09-26 18:23:38 +00:00
|
|
|
at run-time with the
|
|
|
|
.Xr sicontrol 8
|
|
|
|
utility.
|
|
|
|
.Pp
|
|
|
|
The si device driver also responds to the
|
|
|
|
.Xr comcontrol 8
|
|
|
|
utility for configuring drain-on-close timeouts.
|
|
|
|
.Pp
|
1998-06-08 06:12:02 +00:00
|
|
|
The driver also defines 3 sysctl variables that can be manipulated:
|
2000-03-01 14:50:24 +00:00
|
|
|
machdep.si_debug sets the debug level for the whole driver.
|
|
|
|
It depends
|
1998-03-23 20:24:31 +00:00
|
|
|
on the driver being compiled with SI_DEBUG. machdep.si_pollrate
|
|
|
|
sets how often per second the driver polls for lost interrupts.
|
|
|
|
machdep.si_realpoll sets whether or not the card will treat the
|
|
|
|
poll intervals as if they were interrupts.
|
|
|
|
.Pp
|
1995-09-26 18:23:38 +00:00
|
|
|
An open on a /dev device node controlled by the si driver obeys the same
|
|
|
|
semantics as the
|
|
|
|
.Xr sio 4
|
2003-06-28 23:53:39 +00:00
|
|
|
driver.
|
|
|
|
It fully supports the usual semantics of the cua ports, and the
|
|
|
|
"initial termios" and "locked termios" settings.
|
|
|
|
In summary, an open on a
|
1995-09-26 18:23:38 +00:00
|
|
|
tty port will block until DCD is raised, unless O_NONBLOCK is specified.
|
|
|
|
CLOCAL is honored. An open on a cua port will always succeed, but DCD
|
|
|
|
transitions will be honored after DCD rises for the first time.
|
|
|
|
.Pp
|
1998-03-23 20:24:31 +00:00
|
|
|
Up to four SI/XIO host cards may be controlled by the si driver.
|
|
|
|
Due to the lack of available interrupts, only 3 ISA SI/XIO host cards can be
|
|
|
|
used at once.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
|
|
|
The lowest 5 bits of the minor device number are used to select the port
|
2000-03-01 14:50:24 +00:00
|
|
|
number on the module cluster.
|
|
|
|
The next 2 bits select which of 4 host adapter
|
1995-09-26 18:23:38 +00:00
|
|
|
cards. This allows a maximum of 128 ports on this driver.
|
|
|
|
.Pp
|
|
|
|
Bit 7 is used to differentiate a tty/dialin port (bit 7=0) and a
|
|
|
|
cua/callout port (bit 7=1).
|
|
|
|
.Pp
|
1997-03-21 20:04:21 +00:00
|
|
|
Bit 8 through 15 (on
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx )
|
1997-03-21 20:04:21 +00:00
|
|
|
are unavailable as they are a shadow of the
|
1995-09-26 18:23:38 +00:00
|
|
|
major device number.
|
|
|
|
.Pp
|
|
|
|
If bit 16 is a 1, the device node is referring to the "initial state" device.
|
|
|
|
This "initial state" is used to prime the
|
|
|
|
.Xr termios 4
|
|
|
|
settings of the device when it is initially opened.
|
|
|
|
If bit 17 is a 1, the device node is referring to the "locked state" device.
|
|
|
|
The "locked state" is used to prevent the
|
|
|
|
.Xr termios 4
|
|
|
|
settings from being changed.
|
|
|
|
.Pp
|
2001-07-14 19:41:16 +00:00
|
|
|
To manipulate the initial/locked settings, the
|
1995-09-26 18:23:38 +00:00
|
|
|
.Xr stty 1
|
2003-06-28 23:53:39 +00:00
|
|
|
command is useful.
|
|
|
|
When setting the "locked" variables, enabling the mode
|
1995-09-26 18:23:38 +00:00
|
|
|
on the lock device will lock the termios mode, while disabling the mode will
|
|
|
|
unlock it.
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/si_control -compact
|
|
|
|
.It Pa /dev/si_control
|
|
|
|
global driver control file for
|
|
|
|
.Xr sicontrol 8
|
|
|
|
.It Pa /dev/ttyA*
|
|
|
|
terminal/dialin ports
|
|
|
|
.It Pa /dev/cuaA*
|
|
|
|
dialout ports
|
|
|
|
.It Pa /dev/ttyiA*
|
|
|
|
initial termios state devices
|
|
|
|
.It Pa /dev/ttylA*
|
|
|
|
locked termios state devices
|
1998-03-23 20:24:31 +00:00
|
|
|
.It Pa /dev/cuaiA*
|
|
|
|
initial termios state devices for dialout ports
|
|
|
|
.It Pa /dev/cualA*
|
|
|
|
locked termios state devices for dialout ports
|
1995-09-26 18:23:38 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr stty 1 ,
|
1996-12-26 16:16:37 +00:00
|
|
|
.Xr sio 4 ,
|
1995-09-26 18:23:38 +00:00
|
|
|
.Xr termios 4 ,
|
|
|
|
.Xr tty 4 ,
|
1996-12-26 16:16:37 +00:00
|
|
|
.Xr comcontrol 8 ,
|
|
|
|
.Xr sicontrol 8
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
This driver is loosely based on driver code originating at Specialix, which
|
|
|
|
was ported to run on BSDI by
|
1998-03-12 07:31:21 +00:00
|
|
|
.An Andy Rutter Aq andy@specialix.co.uk .
|
1995-09-26 18:23:38 +00:00
|
|
|
The System V driver source is/was available by ftp from
|
1997-02-05 15:07:37 +00:00
|
|
|
.Sy ftp.specialix.co.uk .
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
2001-07-14 19:41:16 +00:00
|
|
|
This driver is not supported by Specialix International.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
1998-03-23 20:24:31 +00:00
|
|
|
.An Peter Wemm Aq peter@netplex.com.au
|
1999-08-15 10:48:36 +00:00
|
|
|
obtained the code from
|
|
|
|
.An Andy Rutter
|
|
|
|
and ported it to
|
|
|
|
.Fx
|
1998-03-23 20:24:31 +00:00
|
|
|
and threw the man page together.
|
1998-03-12 07:31:21 +00:00
|
|
|
.An Bruce Evans Aq bde@zeta.org.au
|
1998-03-23 20:24:31 +00:00
|
|
|
provided a large amount of assistance during porting.
|
|
|
|
.An Nick Sayer Aq nick@specialix.com
|
|
|
|
wrote the EISA, PCI and SX portions.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The interrupt tuning rate is not believed to be optimal at this time for
|
|
|
|
maximum efficiency.
|
|
|
|
.Pp
|
1998-03-23 20:24:31 +00:00
|
|
|
Polled mode (a feature of standard Specialix drivers) is not implemented,
|
2003-06-28 23:53:39 +00:00
|
|
|
but it can be approximated by turning on machdep.si_realpoll.
|
|
|
|
The poll
|
1998-03-23 20:24:31 +00:00
|
|
|
frequency is set by machdep.si_pollrate (in units of 1/100th of a second).
|
|
|
|
.Pp
|
|
|
|
The driver does not yet support baud rates higher than 115,200 on SX
|
|
|
|
modules.
|
1995-09-26 18:23:38 +00:00
|
|
|
.Pp
|
|
|
|
Operation outside the traditional ISA "hole" is not yet supported, although it
|
|
|
|
should work if the test is removed from the probe routine.
|
1998-03-23 20:24:31 +00:00
|
|
|
.Pp
|
|
|
|
Multiple host cards are supported although combinations of hosts on
|
|
|
|
different bus types have not been tested - device numbering is known to
|
|
|
|
be a problem and may lead to unexpected results.
|