2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH USBKBM 7M "Jun 27, 2005"
8 usbkbm \- keyboard STREAMS module for Sun USB Keyboard
17 open("/dev/kbd", O_RDWR)
23 The \fBusbkbm\fR \fBSTREAMS\fR module processes byte streams generated by a
24 keyboard attached to a \fBUSB\fR port. \fBUSB\fR keyboard is a member of
25 Human Interface Device (HID) Class, and \fBusbkbm\fR only supports the keyboard
26 protocol defined in the specification. Definitions for altering keyboard
27 translation and reading events from the keyboard are in \fB<sys/kbio.h>\fR and
31 The \fBusbkbm\fR \fBSTREAMS\fR module adheres to the interfaces exported by
32 \fBkb\fR(7M). Refer to the \fBDESCRIPTION\fR section of \fBkb\fR(7M) for a
33 discussion of the keyboard translation modes and the \fBIOCTL\fR section for
34 the supported \fBioctl\fR(2) requests.
38 \fBUSB\fR Keyboard \fBusbkbm\fR returns different values for the following
39 ioctls than \fBkb\fR(7M):
46 This \fBioctl()\fR returns a new keyboard type defined for the \fBUSB\fR
47 keyboard. All types are listed below:
53 KB_SUN3 Sun Type 3 keyboard
54 KB_SUN4 Sun Type 4 keyboard
55 KB_ASCII ASCII terminal masquerading as keyboard
56 KB_PC Type 101 PC keyboard
63 The \fBUSB\fR keyboard type is \fBKB_USB\fR; \fBusbkbm\fR will return
64 \fBKB_USB\fR in response to the \fBKIOCTYPE\fR ioctl.
68 \fB\fBKIOCLAYOUT\fR \fR
71 The argument is a pointer to an \fBint\fR. The layout code specified by the
72 \fBbCountryCode\fR value returned in the \fBHID\fR descriptor is returned in
73 the int pointed to by the argument. The \fBcountrycodes\fR are defined in 6.2.1
74 of the \fBHID\fR 1.0 specifications.
86 \fB\fBKBD_CMD_CLICK/KBD_CMD_NOCLICK\fR \fR
90 The \fBkb\fR(7M) indicates that inappropriate commands for particular keyboards
91 are ignored. Because clicking is not supported on the \fBUSB\fR keyboard,
92 \fBusbkbm\fR ignores this command
98 \fB\fBKBD_CMD_SETLED\fR \fR
102 Set keyboard LEDs. Same as \fBkb\fR(7M).
108 \fB\fBKBD_CMD_GETLAYOUT\fR \fR
112 The country codes defined in 6.2.1 of the \fBHID\fR 1.0 specification are
119 \fB\fBKBD_CMD_BELL/KBD_CMD_NOBELL\fR \fR
123 This command is supported although the \fBUSB\fR keyboard does not have a
124 buzzer. The request for the bell is rerouted.
130 \fB\fBKBD_CMD_RESET\fR \fR
134 There is no notion of resetting the keyboard as there is for the type4
135 keyboard. \fBusbkbm\fR ignores this command and does not return an error.
144 \fB/kernel/strmod/usbkbm\fR
148 32-bit ELF kernel STREAMS module (x86 platform only)
154 \fB/kernel/strmod/sparcv9/usbkbm\fR
158 SPARC 64-bit ELF kernel STREAMS module
164 See \fBattributes\fR(5) for a description of the following attributes:
172 ATTRIBUTE TYPE ATTRIBUTE VALUE
174 Architecture PCI-based systems
180 \fBdumpkeys\fR(1), \fBkbd\fR(1), \fBloadkeys\fR(1), \fBioctl\fR(2),
181 \fBkeytables\fR(4), \fBattributes\fR(5), \fBhid\fR(7D), \fBusba\fR(7D),
182 \fBvirtualkm\fR(7D), \fBkb\fR(7M)
185 \fISTREAMS Programming Guide\fR
188 \fISystem Administration Guide: Basic Administration\fR
191 http://\fIwww.sun.com/io\fR