]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hid: Import hidbus(4)
authorVladimir Kondratyev <wulf@FreeBSD.org>
Fri, 9 Oct 2020 01:10:23 +0000 (04:10 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 7 Jan 2021 23:18:42 +0000 (02:18 +0300)
commit2b4464b0b1143024ede8bd3ea69134ea17bc5355
treebc6ed3d613cd000eaf361aba4af51d9a95a63bcd
parent961a3535db3ca1d330e5ddf96419ef3904738ae6
hid: Import hidbus(4)

This driver provides support for multiple HID driver attachments
to single HID transport backend. This ability existed in Net/OpenBSD
(uhidev and ihidev drivers) but has never been ported to FreeBSD.
Unlike Net/OpenBSD we do not use report number alone to distinct report
source but we follow MS way and use a top level collection (TLC) usage
index that report belongs to as a location key.

The driver performs child device autodiscovery based on HID report
descriptor data, proxying of HID requests from child devices to parent
transport backends and broadcasting of interrupts in backward direction.

Differential revision: https://reviews.freebsd.org/D27888
share/man/man4/Makefile
share/man/man4/hidbus.4 [new file with mode: 0644]
sys/conf/files
sys/dev/hid/hidbus.c [new file with mode: 0644]
sys/dev/hid/hidbus.h [new file with mode: 0644]
sys/modules/hid/Makefile
sys/modules/hid/hidbus/Makefile [new file with mode: 0644]