1 .\" $NetBSD: kbd.4,v 1.6 1999/12/17 16:23:25 abs Exp $
3 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Paul Kranenburg.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
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.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd Sun workstation keyboard
37 .Cd "pseudo-device kbd"
41 driver provides an interface to the workstation console keyboard.
49 keyboards are supported.
52 keyboard is treated as if it were a
54 All types generate keycodes encoding the
55 key identity and motion (up or down) as the keys are pressed and released.
58 driver either passes the keycodes to an application as they come in
60 or translates them into
62 characters first according to a set of built-in tables.
66 is configured as the device to be used for system console input
67 .Pq see Xr openprom 4 ,
68 it will be internally connected to the
70 device special file, which can be used as a
74 The device special file
76 is used to get direct access to the keyboard input stream.
79 ioctl's are supported (mostly just enough to keep the
82 .Bl -tag -width KIOCSDIRECT
85 The argument is of type
87 the only value supported is
88 .Dv TR_UNTRANS_EVENT .
91 The argument is of type
96 Fill in old-style key station translation.
97 The argument is of type
98 .Fa "struct okiockey *" .
100 Send a command to the keyboard.
101 The argument is of type
103 and can have one of the following values:
104 .Bl -tag -width KBD_CMD_NOCLICK
106 Start the keyboard beeper.
108 Stop the keyboard beeper.
110 Instruct the keyboard to make extra noise when touching keys.
112 Instruct the keyboard to stop making extra noise when touching keys.
116 The argument is of type
118 in which one of the values
125 Route the keyboard input stream through the
127 compatible event module.
128 The argument is of type
130 a non-zero value will put the driver into
132 mode, while a value of zero will make it return to
133 .Qq ASCII translation
136 Set key station translation.
137 The argument is of type
138 .Fa "struct kiockey *"
139 .Pq see Pa /usr/include/machine/kbio.h No for more details .
141 Get key station translation.
142 The argument is of type
143 .Fa "struct kiockey *" .
146 .Pq Do type 4 Dc only .
147 The argument is of type
149 in which the uninterpreted result of the
151 keyboard command is returned
153 type keyboards this will be the setting of a DIP switch bank
157 .Pq Do type 4 Dc only .
158 The argument is of type
160 and is the inclusive OR of the following flags:
162 .Bl -tag -width LED_SCROLL_LOCK -compact
169 Each of these flags turn on the LED in the obvious key.
172 .Pq Do type 4 Dc only .
173 The argument is of type
175 in which the current LED state is returned.
181 is hardwired to the built-in
183 serial port at 1200 bps.