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