diff options
| author | Vojtech Pavlik <vojtech@suse.cz> | 2002-07-15 03:18:42 -0700 |
|---|---|---|
| committer | Vojtech Pavlik <vojtech@suse.cz> | 2002-07-15 03:18:42 -0700 |
| commit | b24be862cc6543ef76e17c55cc11c69e2dd8bc62 (patch) | |
| tree | c8bff63819bb2fe833304d075aea553827c1cc96 /Documentation | |
| parent | 182147c1e9cae403852ec2e1107fe62b390012be (diff) | |
[PATCH] Updates for hiddev by Paul Stewart
I've merged a patch Paul Stewart sent me some time ago, which should make life
easier for the guys writing UPS daemons.
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/usb/hiddev.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/usb/hiddev.txt b/Documentation/usb/hiddev.txt index 31250f38b45f..470840b5be5f 100644 --- a/Documentation/usb/hiddev.txt +++ b/Documentation/usb/hiddev.txt @@ -18,7 +18,7 @@ normalised event interface - see Documentation/input/input.txt The data flow for a HID event produced by a device is something like the following : - usb.c ---> hid-core.c ----> input.c ----> [keyboard/mouse/joystick/event] + usb.c ---> hid-core.c ----> hid-input.c ----> [keyboard/mouse/joystick/event] | | --> hiddev.c ----> POWER / MONITOR CONTROL @@ -106,6 +106,15 @@ returns -1. You can find out beforehand how many application collections the device has from the num_applications field from the hiddev_devinfo structure. +HIDIOCGCOLLECTIONINFO - struct hiddev_collection_info (read/write) +This returns a superset of the information above, providing not only +application collections, but all the collections the device has. It +also returns the level the collection lives in the hierarchy. +The user passes in a hiddev_collection_info struct with the index +field set to the index that should be returned. The ioctl fills in +the other fields. If the index is larger than the last collection +index, the ioctl returns -1 and sets errno to -EINVAL. + HIDIOCGDEVINFO - struct hiddev_devinfo (read) Gets a hiddev_devinfo structure which describes the device. @@ -172,6 +181,10 @@ Sets the value of a usage in an output report. The user fills in the hiddev_usage_ref structure as above, but additionally fills in the value field. +HIDIOGCOLLECTIONINDEX - struct hiddev_usage_ref (write) +Returns the collection index associated with this usage. This +indicates where in the collection hierarchy this usage sits. + HIDIOCGFLAG - int (read) HIDIOCSFLAG - int (write) These operations respectively inspect and replace the mode flags |
