2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/Documentation/hid
Dean Camera f43d3870ca HID: hidraw: Add additional hidraw input/output report ioctls.
Currently the hidraw module can only read and write feature HID reports on
demand, via dedicated ioctls. Input reports are read from the device through
the read() interface, while output reports are written through the write
interface().

This is insufficient; it is desirable in many situations to be able to read and
write input and output reports through the control interface to cover
additional scenarios:

  - Reading an input report by its report ID, to get initial state
  - Writing an input report, to set initial input state in the device
  - Reading an output report by its report ID, to obtain current state
  - Writing an output report by its report ID, out of band

This patch adds these missing ioctl requests to read and write the remaining
HID report types. Note that not all HID backends will neccesarily support this
(e.g. while the USB link layer supports setting Input reports, others may not).

Also included are documentation and example updates. The current hidraw
documentation states that feature reports read from the device does *not*
include the report ID, however this is not the case and the returned report
will have its report ID prepended by conforming HID devices, as the report data
sent from the device over the control endpoint must be indentical in format to
those sent over the regular transport.

Signed-off-by: Dean Camera <dean@fourwalledcubicle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2020-11-27 15:48:31 +01:00
..
hid-alps.rst docs: hid: convert to ReST 2019-07-02 10:19:34 +02:00
hid-sensor.rst docs: hid: convert to ReST 2019-07-02 10:19:34 +02:00
hid-transport.rst Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid 2019-07-11 15:32:11 -07:00
hiddev.rst docs: hid: Convert link to https 2020-07-13 11:26:37 -06:00
hidraw.rst HID: hidraw: Add additional hidraw input/output report ioctls. 2020-11-27 15:48:31 +01:00
index.rst docs: add some documentation dirs to the driver-api book 2019-07-15 11:03:02 -03:00
intel-ish-hid.rst Documentation: hid/intel-ish-hid: eliminate duplicated word 2020-07-13 09:44:06 -06:00
uhid.rst docs: hid: convert to ReST 2019-07-02 10:19:34 +02:00