aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2020-10-08 21:32:12 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2021-01-07 23:18:43 +0000
commit01f2e864f79584c0cd250a8e7cfb501a9985768a (patch)
tree207d20e72679533b0dbaf7042d17efafe7e8a277 /sys/amd64
parentb1f1b07f6d412cb3ec8588a634836e26396eec70 (diff)
downloadsrc-01f2e864f79584c0cd250a8e7cfb501a9985768a.tar.gz
src-01f2e864f79584c0cd250a8e7cfb501a9985768a.zip
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
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/conf/GENERIC3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC
index ee2a972d8302..94f184334648 100644
--- a/sys/amd64/conf/GENERIC
+++ b/sys/amd64/conf/GENERIC
@@ -385,3 +385,6 @@ device uinput # install /dev/uinput cdev
options HID_DEBUG # enable debug msgs
device hid # Generic HID support
options IICHID_SAMPLING # Workaround missing GPIO INTR support
+#device usbhid # USB transport support.
+#device hidbus # HID bus (required by usbhid/iichid)
+#options USBHID_ENABLED # Prefer usbhid to other USB drivers