xref: /openbsd/share/man/man4/man4.sparc64/zs.4 (revision 5d293618)
1*5d293618Smiod.\"	$OpenBSD: zs.4,v 1.7 2003/01/28 21:20:56 miod Exp $
2c22d9515Smiod.\"
3a16123a8Smiod.\" Copyright (c) 1998, 2002 The OpenBSD Project
4c22d9515Smiod.\" All rights reserved.
5c22d9515Smiod.\"
6c22d9515Smiod.\"
7a16123a8Smiod.Dd December 3, 2002
8c22d9515Smiod.Dt ZS 4 sparc64
9c22d9515Smiod.Os
10c22d9515Smiod.Sh NAME
11c22d9515Smiod.Nm zs
12c22d9515Smiod.Nd Zilog 8530 (ZSCC) serial communications driver
13c22d9515Smiod.Sh SYNOPSIS
14c22d9515Smiod.Cd "zs* at sbus? slot ? offset ?"
15c22d9515Smiod.Cd "zstty* at zs? channel ?"
169cf9dc59Smiod.Cd "zskbd* at zs? channel ?"
175fb62df1Sjason.Cd "wskbd* at zskbd? console ?"
18a16123a8Smiod.Cd "option SUNKBD_LAYOUT=XXX"
19a16123a8Smiod.Cd "option SUNKBD5_LAYOUT=XXX"
20c22d9515Smiod.Sh DESCRIPTION
21c22d9515SmiodThe
22c22d9515Smiod.Nm
23c22d9515Smiodis a Zilog 8530 serial interface chip used in SBus-based ULTRAsparc
24c22d9515Smiod.Tn Sun
25c22d9515Smiodworkstations.
26c22d9515SmiodThe Zilog 8530 provides two input/output channels per instance.
27c22d9515SmiodMost
28c22d9515Smiod.Tn Sun
29c22d9515Smiodworkstations include two of these interfaces.
30c22d9515SmiodOne of the interfaces is usually hardwired for use by the keyboard and mouse
31c22d9515Smiodattached to the workstation console.
325fb62df1SjasonThe
335fb62df1Sjason.Nm zskbd
345fb62df1Sjasondevices connect keyboard devices to the generic keyboard driver
355fb62df1Sjason.Nm wskbd .
36c22d9515SmiodThe remaining additional
375fb62df1Sjason.Nm zs
38c22d9515Smiodinterfaces provide RS-423
39c22d9515Smiodand RS-232 serial ports for general purpose use.
40c22d9515Smiod.Pp
41c22d9515SmiodThe
42c22d9515Smiod.Nm
43c22d9515Smioddriver supports all of the standard
44c22d9515Smiod.Xr tty 4
45c22d9515Smiodioctl calls.
46c22d9515SmiodThe status of the DTR, RTS, CTS, and DCD signals can be queried with
47c22d9515SmiodTIOCMGET command, but, due to limitations in the hardware,
48c22d9515Smiodonly the DTR and RTS signals can be modified with TIOCMSET, TIOCMBIC,
49c22d9515Smiodand TIOCMBIS
50c22d9515Smiod.Xr ioctl 2
51c22d9515Smiodcommands.
52a16123a8Smiod.Pp
53c22d9515SmiodThe
54a16123a8Smiod.Nm zskbd
55a16123a8Smioddriver supports a number of different key mappings.
56a16123a8SmiodBy default, the layout corresponding to the keyboard model
57a16123a8Smiodas probed by the
58a16123a8Smiod.Nm zskbd
59a16123a8Smioddriver will be used.
60a16123a8SmiodA different layout can be chosen either with the kernel options
61a16123a8Smiod.Dq SUNKBD_LAYOUT
62a16123a8Smiod(for type 4 keyboards)
63a16123a8Smiodand
64a16123a8Smiod.Dq SUNKBD5_LAYOUT
65a16123a8Smiod(for type 5 keyboards)
66a16123a8Smiodat compile time or with the utility
67a16123a8Smiod.Xr wsconsctl 8
68a16123a8Smiod(variable:
69a16123a8Smiod.Dq keyboard.encoding
70a16123a8Smiod) at runtime.
71a16123a8Smiod.Pp
72a16123a8SmiodOther mappings can be used if the whole keymap is replaced by means of
73a16123a8Smiod.Xr wsconsctl 8 .
74a16123a8SmiodThe built-in mappings are at this time:
75a16123a8Smiod.Bl -hang
76a16123a8Smiod.It KB_BE
77a16123a8Smiod(
78a16123a8Smiod.Dq be
79a16123a8Smiod) Belgium French (type 4 only).
80a16123a8Smiod.It KB_DE
81a16123a8Smiod(
82a16123a8Smiod.Dq de
83a16123a8Smiod) German.
84a16123a8Smiod.It KB_DK
85a16123a8Smiod(
86a16123a8Smiod.Dq dk
87a16123a8Smiod) Danish.
88a16123a8Smiod.It KB_ES
89a16123a8Smiod(
90a16123a8Smiod.Dq es
91a16123a8Smiod) Spanish.
92a16123a8Smiod.It KB_FR
93a16123a8Smiod(
94a16123a8Smiod.Dq fr
95a16123a8Smiod) French (type 5 only).
96a16123a8Smiod.It KB_IT
97a16123a8Smiod(
98a16123a8Smiod.Dq it
99a16123a8Smiod) Italian.
100*5d293618Smiod.It KB_JP
101*5d293618Smiod(
102*5d293618Smiod.Dq jp
103*5d293618Smiod) Japanese (type 5 only).
104a16123a8Smiod.It KB_NL
105a16123a8Smiod(
106a16123a8Smiod.Dq \&nl
107a16123a8Smiod) Dutch.
108a16123a8Smiod.It KB_NO
109a16123a8Smiod(
110a16123a8Smiod.Dq no
111a16123a8Smiod) Norwegian.
112a16123a8Smiod.It KB_PT
113a16123a8Smiod(
114a16123a8Smiod.Dq pt
115a16123a8Smiod) Portuguese.
116a16123a8Smiod.It KB_SF
117a16123a8Smiod(
118a16123a8Smiod.Dq sf
119a16123a8Smiod) Swiss French.
120a16123a8Smiod.It KB_SG
121a16123a8Smiod(
122a16123a8Smiod.Dq sg
123a16123a8Smiod) Swiss German.
124a16123a8Smiod.It KB_SV
125a16123a8Smiod(
126a16123a8Smiod.Dq sv
127a16123a8Smiod) Swedish with
128a16123a8Smiod.Dq dead accents .
129a16123a8Smiod.It KB_UK
130a16123a8Smiod(
131a16123a8Smiod.Dq uk
132a16123a8Smiod) British.
133a16123a8Smiod.It KB_US
134a16123a8Smiod(
135a16123a8Smiod.Dq us
136a16123a8Smiod) English / US keyboard mapping.
137a16123a8Smiod.El
138a16123a8Smiod.Pp
139a16123a8SmiodThe KB_SV mapping can be used in
140a16123a8Smiodthe KB_NODEAD (
141a16123a8Smiod.Dq .nodead
142a16123a8Smiod) variant.
143a16123a8SmiodThis switches off the
144a16123a8Smiod.Dq dead accents .
145a16123a8Smiod.Sh EXAMPLES
146a16123a8SmiodTo set a german keyboard layout, use
147a16123a8Smiod.Ic wsconsctl -w keyboard.encoding=de .
148a16123a8SmiodTo set it at kernel build time, add
149a16123a8Smiod.Em option SUNKBD_LAYOUT="KB_DE"
150a16123a8Smiodto the kernel configuration file for a type 4 keyboard, or
151a16123a8Smiod.Em option SUNKBD5_LAYOUT="KB_DE"
152a16123a8Smiodfor a type 5 keyboard.
153c22d9515Smiod.Sh SEE ALSO
154c22d9515Smiod.Xr ioctl 2 ,
1559cf9dc59Smiod.Xr intro 4 ,
15617ab3eb8Sjason.Xr sbus 4 ,
157a35b76abSjason.Xr tty 4 ,
158a16123a8Smiod.Xr wskbd 4 ,
159a16123a8Smiod.Xr wsconsctl 8
160c22d9515Smiod.Sh HISTORY
161c22d9515SmiodThe
162c22d9515Smiod.Nm
163c22d9515Smioddriver first appeared in
164c22d9515Smiod.Bx 4.4 .
165c22d9515SmiodSupport for the TIOCM*
166c22d9515Smiod.Xr ioctl 2 Ns s
167c22d9515Smiodappeared in
168c22d9515Smiod.Ox 2.3 .
169a16123a8Smiod.Sh BUGS
170a16123a8SmiodThe
171a16123a8Smiod.Nm
172a16123a8Smioddriver now supports cua minor devices, but with this known deficiency
173a16123a8Smiodin the simultaneous outgoing/incoming aspect of the driver:
174a16123a8SmiodThe first outgoing connection succeeds, but second and subsequent
175a16123a8Smiodconnections fail, apparently due to a getty hang.
176a16123a8SmiodThe hung getty apparently prevents the cua device from being re-opened.
177a16123a8Smiod.Pp
178*5d293618SmiodThe kernel does not provide a keyboard layout for all manufactured
179*5d293618Smiod.Tn Sun
180a16123a8Smiodkeyboard models.
181