1.\" $NetBSD: zstty.4,v 1.8 2004/05/11 22:42:47 wiz Exp $ 2.\" 3.\" Copyright (c) 1997 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Gordon W. Ross. 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.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd May 1, 2003 38.Dt ZSTTY 4 39.Os 40.Sh NAME 41.Nm zstty , 42.Nm zsc , 43.Nm zs 44.Nd 45.Tn Zilog 468530 serial communications interface 47.Sh SYNOPSIS 48.Ss alpha 49.Cd "zsc0 at ioasic? offset 0x100000" 50.Cd "zsc1 at ioasic? offset 0x180000" 51.Cd "zstty* at zsc? channel ? # serial ports on B channels" 52.Cd "lkkbd0 at zsc1 channel ? # keyboard port on A channels" 53.Cd "vsms0 at zsc0 channel ? # mouse port on A channels" 54.Ss cesfic 55.Cd "zsc* at mainbus0" 56.Cd "zstty* at zsc? channel ?" 57.Ss mac68k and macppc 58.Cd "zsc0 at obio?" 59.Cd "zstty* at zsc? channel ?" 60.Ss mipsco 61.Cd "zsc0 at obio0 addr 0xbb000000" 62.Cd "zstty0 at zsc0 channel 0" 63.Cd "zstty1 at zsc0 channel 1" 64.Ss mvme68k 65.Cd "zsc* at pcc? ipl 4" 66.Cd "zsc* at pcctwo? ipl 4" 67.Cd "zstty* at zsc? channel ?" 68.Ss news68k 69.Cd "zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64 flags 0x0 # news1700" 70.Cd "zsc0 at hb1 addr 0xe1780000 ipl 5 vect 64 flags 0x1 # news1200" 71.Cd "zstty0 at zsc0 channel 0" 72.Cd "zstty1 at zsc0 channel 1" 73.Ss newsmips 74.Cd "zsc0 at hb0 addr 0xbfec0000 level 1 flags 0x0 # on-board" 75.Cd "zsc1 at hb0 addr 0xb8c40100 level 1 flags 0x1 # expansion board" 76.Cd "zsc2 at hb0 addr 0xb8c40104 level 1 flags 0x1" 77.Cd "zsc0 at ap?" 78.Cd "zstty0 at zsc0 channel 0" 79.Cd "zstty1 at zsc0 channel 1" 80.Cd "zstty2 at zsc1 channel 0" 81.Cd "zstty3 at zsc1 channel 1" 82.Cd "zstty4 at zsc2 channel 0" 83.Cd "zstty5 at zsc2 channel 1" 84.Ss next68k 85.Cd "zsc0 at intio? ipl 5" 86.Cd "#zsc1 at intio? ipl 5" 87.Cd "zstty0 at zsc0 channel 0 # ttya" 88.Cd "zstty1 at zsc0 channel 1 # ttyb" 89.Ss sgimips 90.Cd "zsc* at hpc0 offset ?" 91.Cd "zstty* at zsc? channel ?" 92.Ss sparc 93.Cd "zs0 at mainbus0 # sun4c" 94.Cd "zs0 at obio0 # sun4m" 95.Cd "zs0 at obio0 addr 0xf1000000 level 12 # sun4/200 and sun4/300" 96.Cd "zs0 at obio0 addr 0x01000000 level 12 # sun4/100" 97.Cd "zstty0 at zs0 channel 0 # ttya" 98.Cd "zstty1 at zs0 channel 1 # ttyb" 99.Cd "zs1 at mainbus0 # sun4c" 100.Cd "zs1 at obio0 # sun4m" 101.Cd "zs1 at obio0 addr 0xf0000000 level 12 # sun4/200 and sun4/300" 102.Cd "zs1 at obio0 addr 0x00000000 level 12 # sun4/100" 103.Cd "kbd0 at zs1 channel 0 # keyboard" 104.Cd "ms0 at zs1 channel 1 # mouse" 105.Cd "zs2 at obio0 addr 0xe0000000 level 12 # sun4/300" 106.Cd "zstty2 at zs2 channel 0 # ttyc" 107.Cd "zstty3 at zs2 channel 1 # ttyd" 108.Ss sun2 109.Cd "zs0 at obio0 addr 0x002000 # 2/120, 2/170" 110.Cd "zs1 at obmem0 addr 0x780000 # 2/120, 2/170" 111.Cd "zs0 at obio0 addr 0x7f2000 # 2/50" 112.Cd "zs1 at obio0 addr 0x7f1800 # 2/50" 113.Cd "zs2 at mbmem0 addr 0x080800 # 2/120, 2/170 (first sc SCSI)" 114.Cd "zs3 at mbmem0 addr 0x081000 # 2/120, 2/170 (first sc SCSI)" 115.Cd "zs4 at mbmem0 addr 0x084800 # 2/120, 2/170 (second sc SCSI)" 116.Cd "zs5 at mbmem0 addr 0x085000 # 2/120, 2/170 (second sc SCSI)" 117.Cd "zstty* at zs? channel ? # ttya" 118.Cd "kbd0 at zstty? # keyboard" 119.Cd "ms0 at zstty? # mouse" 120.Ss sun3 121.Cd "zstty0 at zsc1 channel 0 # ttya" 122.Cd "zstty1 at zsc1 channel 1 # ttyb" 123.Cd "kbd0 at zsc0 channel 0 # keyboard" 124.Cd "ms0 at zsc0 channel 1 # mouse" 125.Ss x68k 126.Cd "zsc0 at intio0 addr 0xe98000 intr 112" 127.Cd "zstty0 at zsc0 channel 0 # built-in RS-232C" 128.Cd "ms0 at zsc0 channel 1 # standard mouse" 129.Cd "#zsc1 at intio0 addr 0xeafc00 intr 113" 130.Cd "#zstty2 at zsc1 channel 0" 131.Cd "#zstty3 at zsc1 channel 1" 132.Cd "#zsc2 at intio0 addr 0xeafc10 intr 114" 133.Cd "#zstty4 at zsc2 channel 0" 134.Cd "#zstty5 at zsc2 channel 1" 135.Sh DESCRIPTION 136The 137.Nm 138driver provides 139.Tn TTY 140support for 141.Tn Zilog 1428530 Dual 143.Tn UART 144chips. 145.Pp 146Input and output for each line may set to any baud rate in the 147range 50 to 38400 (and higher on some machines). 148.Sh FILES 149.Bl -tag -width Pa 150.It Pa /dev/ttya 151.It Pa /dev/ttyb 152.El 153.Sh DIAGNOSTICS 154.Bl -tag -width indent 155.It zs0*: fifo overflow 156.br 157The on-chip 158.Dq FIFO 159has overflowed and incoming data has been lost. 160This generally means the machine is not responding to 161interrupts from the ZS chip fast enough, which can be 162remedied only by using a lower baud rate. 163.It zs0*: ring overflow 164.br 165The software input 166.Qq ring 167has overflowed. 168This usually means input flow-control is not configured correctly 169.Pq i.e. incorrect cable wiring . 170.El 171.Sh SEE ALSO 172.Xr kbd 4 , 173.Xr ms 4 , 174.Xr scc 4 , 175.Xr tty 4 176.Sh HISTORY 177The 178.Nm 179driver was derived from the 180.Nm sparc 181.Nm zs 182driver supplied with 183.Bx 4.4 184.Ux . 185.Sh BUGS 186The old 187.Tn Zilog 1888530 chip has a very small FIFO (3 bytes?) and 189therefore has very strict latency requirements for the 190interrupt service routine. 191This limits the usable baud rates on many machines. 192