usbkbm - keyboard STREAMS module for Sun USB Keyboard
open("/dev/kbd", O_RDWR)
The usbkbm STREAMS module processes byte streams generated by a keyboard attached to a USB port. USB keyboard is a member of Human Interface Device (HID) Class, and usbkbm only supports the keyboard protocol defined in the specification. Definitions for altering keyboard translation and reading events from the keyboard are in <sys/kbio.h> and <sys/kbd.h>.
The usbkbm STREAMS module adheres to the interfaces exported by kb(7M). Refer to the DESCRIPTION section of kb(7M) for a discussion of the keyboard translation modes and the IOCTL section for the supported ioctl(2) requests.
USB Keyboard usbkbm returns different values for the following ioctls than kb(7M):
KIOCTYPE
KB_SUN3 Sun Type 3 keyboard KB_SUN4 Sun Type 4 keyboard KB_ASCII ASCII terminal masquerading as keyboard KB_PC Type 101 PC keyboard KB_USB USB keyboard
The USB keyboard type is KB_USB; usbkbm will return KB_USB in response to the KIOCTYPE ioctl.
KIOCLAYOUT
KIOCCMD
KBD_CMD_CLICK/KBD_CMD_NOCLICK
KBD_CMD_SETLED
KBD_CMD_GETLAYOUT
KBD_CMD_BELL/KBD_CMD_NOBELL
KBD_CMD_RESET
/kernel/strmod/usbkbm
/kernel/strmod/sparcv9/usbkbm
See attributes(5) for a description of the following attributes:
|
dumpkeys(1), kbd(1), loadkeys(1), ioctl(2), keytables(4), attributes(5), hid(7D), usba(7D), virtualkm(7D), kb(7M)
STREAMS Programming Guide
System Administration Guide: Basic Administration
http://www.sun.com/io
None
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |