Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
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. 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. 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]
keyboard@unit-address mouse@unit-address input@unit-address:consumer_control #include <sys/usb/clients/hid/hid.h> int ioctl(int fildes, int command, ... /*arg*/);
The hid driver is general and primarily handles the USB functionality of the device and generic HID functionality. For example, HID interfaces are required to have an interrupt pipe for the device to send data packets, and the hid driver opens the pipe to the interrupt endpoint and starts polling. The hid driver is also responsible for managing the device through the default control pipe. In addition to being a USB client driver, the hid driver is also a STREAMS driver so that modules may be pushed on top of it.
The HID specification is flexible, and HID devices dynamically describe their packets and other parameters through a HID report descriptor. The HID parser is a misc module that parses the HID report descriptor and creates a database of information about the device. The hid driver queries the HID parser to find out the type and characteristics of the HID device. The HID specification predefines packet formats for the boot protocol keyboard and mouse.
This ioctl should only be addressed to a USB keyboard or mouse device. The hid driver maintains two streams for each USB keyboard/mouse instance: an internal one for the use of the kernel and an external one for the use of user applications. This ioctl returns the information of which stream gets the input for the moment. arg must point to a variable of int type. Upon return, 0 means the internal stream gets the input, 1 means the external stream gets the input.
This ioctl should only be addressed to a USB keyboard or mouse device. The hid driver maintains two streams for each USB keyboard/mouse instance: an internal one for the use of the kernel and an external one for the use of user applications. This ioctl sets which stream should get the input for the moment. arg must point to a variable of int type. The argument 0 means the internal stream gets the input, 1 means the external stream gets the input.
64-bit x86 ELF kernel hid module
64-bit SPARC ELF kernel hid module
64-bit x86 ELF kernel hidparser module
64-bit SPARC ELF kernel hidparser module
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Architecture SPARC, x86, PCI-based systems |
Writing Device Drivers
STREAMS Programming Guide
Universal Serial Bus Specification 1.0 and 1.1
Device Class Definition for Human Interface Devices (HID) 1.1
System Administration Guide: Basic Administration
The device requires a protocol not supported by the hid driver.
The HID report descriptor cannot be parsed correctly. The device cannot be supported by the hid driver.
The HID report descriptor is invalid. The device cannot be supported by the hid driver.
The following messages may be logged into the system log. They are formatted in the following manner:
<device path><hid<instance number>): message...hid_attach: Unsupported HID device.
The device cannot be supported by this version of the HID driver.
The device cannot be supported by this version of the HID driver.
The device cannot be supported by this version of the HID driver.
Normally a mouse is not power managed and consequently, screen darkening can be undone with a mouse movement. If power management of the mouse is required, add the following line to hid.conf then reboot the system:
hid-mouse-pm-enable;
Modern mice that are power managed require a 'click' to wake up. Occasionally, this may cause unexpected results.