1996-08-11 06:28:43 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1996 Jonathan Stone.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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 Jonathan Stone.
|
1999-04-07 00:24:37 +04:00
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
1996-08-11 06:28:43 +04:00
|
|
|
.\" derived from this software without specific prior written permission
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
|
|
|
|
.\"
|
2003-05-06 12:09:36 +04:00
|
|
|
.\" $NetBSD: scc.4,v 1.8 2003/05/06 08:09:36 wiz Exp $
|
1996-08-11 06:28:43 +04:00
|
|
|
.\"
|
2003-04-25 06:48:23 +04:00
|
|
|
.Dd April 24, 2003
|
2001-09-21 13:11:40 +04:00
|
|
|
.Dt SCC 4
|
1999-03-16 04:19:14 +03:00
|
|
|
.Os
|
1996-08-11 06:28:43 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm scc
|
|
|
|
.Nd
|
1998-03-20 16:31:57 +03:00
|
|
|
Zilog 8530 Serial Communications Controller interface
|
1996-08-11 06:28:43 +04:00
|
|
|
.Sh SYNOPSIS
|
2001-09-21 13:11:40 +04:00
|
|
|
.Cd "scc* at ioasic? offset ?"
|
1996-08-11 06:28:43 +04:00
|
|
|
.Sh DESCRIPTION
|
1998-03-20 16:31:57 +03:00
|
|
|
The
|
1996-08-11 06:28:43 +04:00
|
|
|
.Nm
|
2003-04-25 06:48:23 +04:00
|
|
|
driver provides support for the
|
|
|
|
.Tn Zilog
|
|
|
|
8530 Serial Communications
|
|
|
|
Controller
|
|
|
|
.Pq Tn SCC
|
|
|
|
via the
|
|
|
|
.Tn IOASIC
|
|
|
|
found on
|
|
|
|
.Tn DECstation
|
2003-04-25 07:03:07 +04:00
|
|
|
5000 models in the /100, /20, and /240 series
|
|
|
|
.Po
|
|
|
|
supported by
|
|
|
|
.Nx Ns /pmax
|
|
|
|
.Pc .
|
2003-04-25 06:48:23 +04:00
|
|
|
.Pp
|
|
|
|
Each
|
|
|
|
.Tn SCC
|
|
|
|
device has two serial ports.
|
|
|
|
The
|
|
|
|
.Tn DECstation
|
|
|
|
5000 model 20 provides one
|
|
|
|
.Tn SCC
|
|
|
|
device.
|
2001-09-21 13:11:40 +04:00
|
|
|
Other models provide two, but one port of each device is dedicated to
|
|
|
|
mouse and keyboard input, respectively.
|
1996-08-11 06:28:43 +04:00
|
|
|
.Pp
|
1998-03-20 16:31:57 +03:00
|
|
|
Input and output for each line may set to one of following baud rates:
|
1996-08-11 06:28:43 +04:00
|
|
|
50, 75, 110, 134.5, 150, 300, 600, 1200, 1800, 2400, 4800, 9600,
|
|
|
|
19200, 38400, or 57600.
|
2003-04-25 06:48:23 +04:00
|
|
|
.Pp
|
1996-08-11 06:28:43 +04:00
|
|
|
Speeds up to 230400 are supported by the chip and the motherboard,
|
1998-03-20 16:31:57 +03:00
|
|
|
but speeds higher than 57600 do not work reliably without an external
|
1996-08-11 06:28:43 +04:00
|
|
|
clock signal.
|
1997-11-03 14:19:21 +03:00
|
|
|
.Sh FILES
|
2003-04-25 07:17:08 +04:00
|
|
|
.Bl -tag -width Pa -compact
|
2003-04-25 07:03:07 +04:00
|
|
|
.It Pa /dev/ttya
|
|
|
|
.It Pa /dev/ttyb
|
|
|
|
.It Pa /dev/ttyc
|
|
|
|
.It Pa /dev/ttyd
|
|
|
|
.El
|
1997-11-03 14:19:21 +03:00
|
|
|
.Pp
|
1998-03-20 16:31:57 +03:00
|
|
|
The mapping from units to serial-hardware outlets is idiosyncratic.
|
|
|
|
The even ports are wired serial connectors and the odd-numbered ports
|
1997-11-03 14:19:21 +03:00
|
|
|
are reserved for mouse and keyboard.
|
2003-04-25 06:48:23 +04:00
|
|
|
.Pp
|
1998-03-20 16:31:57 +03:00
|
|
|
On machines with one port like
|
|
|
|
.Tn "Personal DECstations" ,
|
1997-11-03 14:19:21 +03:00
|
|
|
the single device is
|
2003-04-25 07:03:07 +04:00
|
|
|
.Pa ttya .
|
2003-04-25 06:48:23 +04:00
|
|
|
.Pp
|
2001-07-08 21:22:53 +04:00
|
|
|
On the
|
|
|
|
.Tn "5000/1xx"
|
1997-11-03 14:19:21 +03:00
|
|
|
and
|
|
|
|
.Tn "5000/2xx" ,
|
|
|
|
the first serial port (default serial console) is
|
2003-04-25 07:03:07 +04:00
|
|
|
.Pa ttyc
|
2001-07-08 21:22:53 +04:00
|
|
|
and the second port is
|
2003-04-25 07:03:07 +04:00
|
|
|
.Pa ttya .
|
2001-09-21 13:11:40 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr intro 4 ,
|
2003-04-25 06:31:57 +04:00
|
|
|
.Xr ioasic 4 ,
|
2003-04-25 07:17:08 +04:00
|
|
|
.Xr ttys 5 ,
|
2003-04-25 06:31:57 +04:00
|
|
|
.Xr MAKEDEV 8
|
1996-08-11 06:28:43 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Bx 4.4 .
|
2003-05-01 23:31:54 +04:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was also used for the
|
|
|
|
.Tn IOASIC
|
|
|
|
.Tn SCC
|
2003-05-06 12:09:36 +04:00
|
|
|
found in
|
2003-05-01 23:31:54 +04:00
|
|
|
.Tn DEC
|
|
|
|
.Tn Alpha
|
|
|
|
model 3000
|
|
|
|
.Tn TurboCHANNEL
|
|
|
|
based systems;
|
|
|
|
.Nx Ns /alpha
|
|
|
|
has since been converted to use the machine-independent
|
|
|
|
.Xr zstty 4 .
|
1996-08-11 06:28:43 +04:00
|
|
|
.Sh BUGS
|
2003-04-25 06:48:23 +04:00
|
|
|
The
|
|
|
|
.Tn IOASIC
|
|
|
|
provides internal
|
|
|
|
.Tn DMA
|
|
|
|
channels that can be programmed to transfer up to 4096 bytes of
|
|
|
|
data into, or out, of an
|
|
|
|
.Tn SCC
|
|
|
|
without
|
2003-04-25 06:31:57 +04:00
|
|
|
further software intervention.
|
2003-04-25 06:48:23 +04:00
|
|
|
This feature of the
|
|
|
|
.Tn IOASIC
|
|
|
|
is not yet supported.
|
1997-11-03 14:19:21 +03:00
|
|
|
.Pp
|
|
|
|
The mapping from device-special files (major and minor number) to chip
|
|
|
|
and port is arguably backwards.
|
2003-03-31 01:20:17 +04:00
|
|
|
.Tn ULTRIX
|
1998-03-20 16:31:57 +03:00
|
|
|
tries to hide the hardware mapping, but
|
1997-11-03 14:19:21 +03:00
|
|
|
.Nx
|
1998-03-20 16:31:57 +03:00
|
|
|
does not.
|
|
|
|
Users wanting to use
|
2003-03-31 01:20:17 +04:00
|
|
|
.Tn ULTRIX
|
2001-07-08 21:22:53 +04:00
|
|
|
compatible tty names
|
1997-11-03 14:19:21 +03:00
|
|
|
.Pa /dev/tty0
|
|
|
|
and
|
|
|
|
.Pa /dev/tty1
|
|
|
|
for the
|
|
|
|
.Nm
|
|
|
|
comm-port lines should make links or device-special files which match
|
2003-03-31 01:20:17 +04:00
|
|
|
their hardware setup.
|