]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hid: Import iichid - I2C transport backend for HID subsystem
authorVladimir Kondratyev <wulf@FreeBSD.org>
Tue, 6 Oct 2020 21:50:16 +0000 (00:50 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 7 Jan 2021 23:18:43 +0000 (02:18 +0300)
commitb1f1b07f6d412cb3ec8588a634836e26396eec70
tree2fd8f7eaf32b4aa07064833aaf322d1497e0a745
parente49fa9f6f327f3b5464ad638eeb4dfb2d38adf4d
hid: Import iichid - I2C transport backend for HID subsystem

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

Following kernel options are added:

IICHID_SAMPLING - Enable support for a sampling mode as interrupt
                  resource acquisition is not always possible in a case
                  of GPIO interrupts.
IICHID_DEBUG    - Enable debug output.

The module is based on prior Marc Priggemeyer work (D16698).

[1] http://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx

Differential revision: https://reviews.freebsd.org/D27892
share/man/man4/Makefile
share/man/man4/iichid.4 [new file with mode: 0644]
sys/amd64/conf/GENERIC
sys/conf/files
sys/conf/options
sys/dev/hid/hidbus.c
sys/dev/iicbus/iichid.c [new file with mode: 0644]
sys/i386/conf/GENERIC
sys/modules/i2c/Makefile
sys/modules/i2c/iichid/Makefile [new file with mode: 0644]