xref: /netbsd-src/share/man/man4/zstty.4 (revision 7fa608457b817eca6e0977b37f758ae064f3c99c)
1.\"	$NetBSD: zstty.4,v 1.11 2007/05/12 20:46:33 pavel 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 12, 2007
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 ( DEC 3000 )
49.Cd "zsc0	at ioasic? offset 0x100000"
50.Cd "zsc1	at ioasic? offset 0x180000"
51.Cd "zstty0	at zsc0 channel ?	# serial ports on B channels"
52.Cd "zstty2	at zsc1 channel ?	# serial ports on B channels"
53.Cd "lkkbd0	at zsc1 channel ?	# keyboard port on A channels"
54.Cd "vsms0	at zsc0 channel ?	# mouse port on A channels"
55.Ss cesfic
56.Cd "zsc*	at mainbus0"
57.Cd "zstty*	at zsc? channel ?"
58.Ss mac68k and macppc
59.Cd "zsc0	at obio?"
60.Cd "zstty*	at zsc? channel ?"
61.Ss mipsco
62.Cd "zsc0	at obio0 addr 0xbb000000"
63.Cd "zstty0	at zsc0 channel 0"
64.Cd "zstty1	at zsc0 channel 1"
65.Ss mvme68k
66.Cd "zsc*	at pcc? ipl 4"
67.Cd "zsc*	at pcctwo? ipl 4"
68.Cd "zstty*	at zsc? channel ?"
69.Ss news68k
70.Cd "zsc0	at hb0 addr 0xe0d40000 ipl 5 vect 64 flags 0x0	# news1700"
71.Cd "zsc0	at hb1 addr 0xe1780000 ipl 5 vect 64 flags 0x1	# news1200"
72.Cd "zstty0	at zsc0 channel 0"
73.Cd "zstty1	at zsc0 channel 1"
74.Ss newsmips
75.Cd "zsc0	at hb0 addr 0xbfec0000 level 1 flags 0x0	# on-board"
76.Cd "zsc1	at hb0 addr 0xb8c40100 level 1 flags 0x1	# expansion board"
77.Cd "zsc2	at hb0 addr 0xb8c40104 level 1 flags 0x1"
78.Cd "zsc0	at ap?"
79.Cd "zstty0	at zsc0 channel 0"
80.Cd "zstty1	at zsc0 channel 1"
81.Cd "zstty2	at zsc1 channel 0"
82.Cd "zstty3	at zsc1 channel 1"
83.Cd "zstty4	at zsc2 channel 0"
84.Cd "zstty5	at zsc2 channel 1"
85.Ss next68k
86.Cd "zsc0	at intio? ipl 5"
87.Cd "#zsc1	at intio? ipl 5"
88.Cd "zstty0	at zsc0 channel 0	# ttya"
89.Cd "zstty1	at zsc0 channel 1	# ttyb"
90.Ss sgimips
91.Cd "zsc* 	at hpc0 offset ?"
92.Cd "zstty*	at zsc? channel ?"
93.Ss sparc
94.Cd "zs0	at mainbus0				# sun4c"
95.Cd "zs0	at obio0				# sun4m"
96.Cd "zs0	at obio0 addr 0xf1000000 level 12	# sun4/200 and sun4/300"
97.Cd "zs0	at obio0 addr 0x01000000 level 12	# sun4/100"
98.Cd "zstty0	at zs0 channel 0			# ttya"
99.Cd "zstty1	at zs0 channel 1			# ttyb"
100.Cd "zs1	at mainbus0				# sun4c"
101.Cd "zs1	at obio0				# sun4m"
102.Cd "zs1	at obio0 addr 0xf0000000 level 12	# sun4/200 and sun4/300"
103.Cd "zs1	at obio0 addr 0x00000000 level 12	# sun4/100"
104.Cd "kbd0	at zs1 channel 0			# keyboard"
105.Cd "ms0	at zs1 channel 1			# mouse"
106.Cd "zs2	at obio0 addr 0xe0000000 level 12	# sun4/300"
107.Cd "zstty2	at zs2 channel 0			# ttyc"
108.Cd "zstty3	at zs2 channel 1			# ttyd"
109.Ss sun2
110.Cd "zs0	at obio0 addr 0x002000	# 2/120, 2/170"
111.Cd "zs1	at obmem0 addr 0x780000	# 2/120, 2/170"
112.Cd "zs0	at obio0 addr 0x7f2000	# 2/50"
113.Cd "zs1	at obio0 addr 0x7f1800	# 2/50"
114.Cd "zs2	at mbmem0 addr 0x080800	# 2/120, 2/170 (first sc SCSI)"
115.Cd "zs3	at mbmem0 addr 0x081000	# 2/120, 2/170 (first sc SCSI)"
116.Cd "zs4	at mbmem0 addr 0x084800	# 2/120, 2/170 (second sc SCSI)"
117.Cd "zs5	at mbmem0 addr 0x085000	# 2/120, 2/170 (second sc SCSI)"
118.Cd "zstty*	at zs? channel ?	# ttya"
119.Cd "kbd0	at zstty?		# keyboard"
120.Cd "ms0	at zstty?		# mouse"
121.Ss sun3
122.Cd "zstty0	at zsc1 channel 0	# ttya"
123.Cd "zstty1	at zsc1 channel 1	# ttyb"
124.Cd "kbd0	at zsc0 channel 0	# keyboard"
125.Cd "ms0	at zsc0 channel 1	# mouse"
126.Ss x68k
127.Cd "zsc0	at intio0 addr 0xe98000 intr 112"
128.Cd "zstty0	at zsc0 channel 0		# built-in RS-232C"
129.Cd "ms0	at zsc0 channel 1		# standard mouse"
130.Cd "#zsc1	at intio0 addr 0xeafc00 intr 113"
131.Cd "#zstty2	at zsc1 channel 0"
132.Cd "#zstty3	at zsc1 channel 1"
133.Cd "#zsc2	at intio0 addr 0xeafc10 intr 114"
134.Cd "#zstty4	at zsc2 channel 0"
135.Cd "#zstty5	at zsc2 channel 1"
136.Sh DESCRIPTION
137The
138.Nm
139driver provides
140.Tn TTY
141support for
142.Tn Zilog
1438530 Dual
144.Tn UART
145chips.
146.Pp
147Input and output for each line may set to any baud rate in the
148range 50 to 38400 (and higher on some machines).
149.Sh FILES
150.Ss alpha
151.Bl -tag -width Pa
152.It Pa /dev/ttyB0
153.It Pa /dev/ttyB1
154.El
155.Ss others
156.Bl -tag -width Pa
157.It Pa /dev/ttya
158.It Pa /dev/ttyb
159.El
160.Sh DIAGNOSTICS
161.Bl -tag -width indent
162.It zs0*: fifo overflow
163.br
164The on-chip
165.Dq FIFO
166has overflowed and incoming data has been lost.
167This generally means the machine is not responding to
168interrupts from the ZS chip fast enough, which can be
169remedied only by using a lower baud rate.
170.It zs0*: ring overflow
171.br
172The software input
173.Qq ring
174has overflowed.
175This usually means input flow-control is not configured correctly
176.Pq i.e. incorrect cable wiring .
177.El
178.Sh SEE ALSO
179.Xr kbd 4 ,
180.Xr ms 4 ,
181.Xr scc 4 ,
182.Xr tty 4
183.Sh HISTORY
184The
185.Nm
186driver was derived from the
187.Nm sparc
188.Nm zs
189driver supplied with
190.Bx 4.4
191.Ux .
192.Sh CAVEATS
193.Pa /dev/ttyB1
194on alpha is created by
195.Xr MAKEDEV 8
196with minor number 2, so the corresponding device should be zstty2, not zstty1.
197.Sh BUGS
198The old
199.Tn Zilog
2008530 chip has a very small FIFO (3 bytes?) and
201therefore has very strict latency requirements for the
202interrupt service routine.
203This limits the usable baud rates on many machines.
204