]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hid: Import usbhid - USB transport backend for HID subsystem.
authorVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 8 Oct 2020 21:32:12 +0000 (00:32 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 7 Jan 2021 23:18:43 +0000 (02:18 +0300)
commit01f2e864f79584c0cd250a8e7cfb501a9985768a
tree207d20e72679533b0dbaf7042d17efafe7e8a277
parentb1f1b07f6d412cb3ec8588a634836e26396eec70
hid: Import usbhid - USB transport backend for HID subsystem.

This change implements hid_if.m methods for HID-over-USB protocol [1].

Also, this change adds USBHID_ENABLED kernel option which changes
device_probe() priority and adds/removes PnP records to prefer usbhid
over ums, ukbd, wmt and other USB HID device drivers and vice-versa.

The module is based on uhid(4) driver.  It is disabled by default for
now due to conflicts with existing USB HID drivers.

[1] https://www.usb.org/sites/default/files/hid1_11.pdf

Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D27893
14 files changed:
share/man/man4/Makefile
share/man/man4/usbhid.4 [new file with mode: 0644]
sys/amd64/conf/GENERIC
sys/conf/files
sys/conf/options
sys/dev/hid/hidbus.c
sys/dev/usb/input/uhid.c
sys/dev/usb/input/ukbd.c
sys/dev/usb/input/ums.c
sys/dev/usb/input/usbhid.c [new file with mode: 0644]
sys/dev/usb/input/wmt.c
sys/i386/conf/GENERIC
sys/modules/usb/Makefile
sys/modules/usb/usbhid/Makefile [new file with mode: 0644]