1usbkbm(7M) STREAMS Modules usbkbm(7M)
2
3
4
6 usbkbm - keyboard STREAMS module for Sun USB Keyboard
7
9 open("/dev/kbd", O_RDWR)
10
11
13 The usbkbm STREAMS module processes byte streams generated by a key‐
14 board attached to a USB port. USB keyboard is a member of Human
15 Interface Device (HID) Class, and usbkbm only supports the keyboard
16 protocol defined in the specification. Definitions for altering key‐
17 board translation and reading events from the keyboard are in
18 <sys/kbio.h> and <sys/kbd.h>.
19
20
21 The usbkbm STREAMS module adheres to the interfaces exported by
22 kb(7M). Refer to the DESCRIPTION section of kb(7M) for a discussion
23 of the keyboard translation modes and the IOCTL section for the sup‐
24 ported ioctl(2) requests.
25
26 IOCTLS
27 USB Keyboard usbkbm returns different values for the following ioctls
28 than kb(7M):
29
30 KIOCTYPE This ioctl() returns a new keyboard type defined for the
31 USB keyboard. All types are listed below:
32
33
34 KB_SUN3 Sun Type 3 keyboard
35 KB_SUN4 Sun Type 4 keyboard
36 KB_ASCII ASCII terminal masquerading as keyboard
37 KB_PC Type 101 PC keyboard
38 KB_USB USB keyboard
39
40
41
42 The USB keyboard type is KB_USB; usbkbm will return KB_USB in
43 response to the KIOCTYPE ioctl.
44
45 KIOCLAYOUT The argument is a pointer to an int. The layout code
46 specified by the bCountryCode value returned in the HID
47 descriptor is returned in the int pointed to by the
48 argument. The countrycodes are defined in 6.2.1 of the
49 HID 1.0 specifications.
50
51
52 KIOCCMD
53 KBD_CMD_CLICK/KBD_CMD_NOCLICK
54
55 The kb(7M) indicates that inappropriate commands for
56 particular keyboards are ignored. Because clicking
57 is not supported on the USB keyboard, usbkbm ignores
58 this command
59
60
61 KBD_CMD_SETLED
62
63 Set keyboard LEDs. Same as kb(7M).
64
65
66 KBD_CMD_GETLAYOUT
67
68 The country codes defined in 6.2.1 of the HID 1.0
69 specification are returned.
70
71
72 KBD_CMD_BELL/KBD_CMD_NOBELL
73
74 This command is supported although the USB keyboard
75 does not have a buzzer. The request for the bell is
76 rerouted.
77
78
79 KBD_CMD_RESET
80
81 There is no notion of resetting the keyboard as
82 there is for the type4 keyboard. usbkbm ignores this
83 command and does not return an error.
84
85
86
88 /kernel/strmod/usbkbm
89
90 32-bit ELF kernel STREAMS module (x86 platform only)
91
92
93 /kernel/strmod/sparcv9/usbkbm
94
95 SPARC 64-bit ELF kernel STREAMS module
96
97
99 See attributes(5) for a description of the following attributes:
100
101
102
103
104 ┌─────────────────────────────┬─────────────────────────────┐
105 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
106 ├─────────────────────────────┼─────────────────────────────┤
107 │Architecture │PCI-based systems │
108 ├─────────────────────────────┼─────────────────────────────┤
109 │Availability │SUNWusb │
110 └─────────────────────────────┴─────────────────────────────┘
111
113 dumpkeys(1), kbd(1), loadkeys(1), ioctl(2), keytables(4),
114 attributes(5), hid(7D), usba(7D), virtualkm(7D), kb(7M)
115
116
117 STREAMS Programming Guide
118
119
120 System Administration Guide: Basic Administration
121
122
123 http://www.sun.com/io
124
126 None
127
128
129
130SunOS 5.11 27 June 2005 usbkbm(7M)