| KBD(4) | Device Drivers Manual (sun2) | KBD(4) |
kbd — Sun
workstation keyboard
kbd0 at zstty?
The kbd driver provides an interface to
the workstation console keyboard. "type 2", "type 3",
"type 4", and "type 5" keyboards are supported. The
"type 5" keyboard is treated as if it were a "type 4".
All types generate keycodes encoding the key identity and motion (up or
down) as the keys are pressed and released. The kbd
driver either passes the keycodes to an application as they come in, or
translates them into ASCII characters first according to a set of built-in
tables.
If the keyboard is configured as the device to be used for system console input, it will be internally connected to the /dev/console device special file, which can be used as a tty(4) device.
The device special file /dev/kbd is used
to get direct access to the keyboard input stream. The following ioctl's are
supported (mostly just enough to keep the X server
going):
TR_UNTRANS_EVENT.TR_UNTRANS_EVENT is always returned.KB_SUN2,
KB_SUN3 or KB_SUN4 will be
returned.KBD_CMD_GLAYOUT keyboard command is returned (on
KBDUN4 type keyboards this will be the setting of
a DIP switch bank).Each of these flags turn on the LED in the obvious key.
kbd is hardwired to the built-in
zs1 serial
port at 1200 bps.
| February 17, 2017 | NetBSD 11.0 |