KBD(4) | Device Drivers Manual (sparc) | KBD(4) |
kbd
—
pseudo-device kbd
kbd
driver provides an interface to the workstation
console keyboard. The Sun “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 (e.g.)
Xorg(1), or translates them
into ASCII characters first according to a set of built-in tables.
If the kbd
is configured as the device to
be used for system console input (see
sparc/openprom(4)),
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 Xorg(1) 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
KB_SUN4
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 9.4 |