summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c/ihidev.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move HID->bus constant conversion for HID report types out of ihidevjcs2018-08-251-1/+2
| | | | | | | | | | | | | | | | | | | | | into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
* add an adaptive polling mode when no interrupt handler is available,jcs2017-11-291-1/+7
| | | | | | | | | such as on PCI dwiic(4) devices. this is a temporary workaround until the underlying interrupt problem is fixed. tested by various
* remove old link to documentation, it's in ihidev.cjcs2016-01-311-4/+2
|
* add the ability to set and get reportsjcs2016-01-201-7/+14
| | | | | | establish interrupt before probing for devices to handle each report id sign an int, found by jsg
* Don't confuse the HID descriptor address (which really is an office into thekettenis2016-01-131-1/+2
| | | | | | | | | register space of the i2c device) with the i2c address. For i2c busses enumerated by ACPI we get the address from the I2C Serial Bus Connection Resource Descriptor returned by the _CRS methide of the i2c device. Pass the HID descriptor address in the ia_size member. ok jcs@
* Add dwiic, a driver for the Synopsys DesignWare i2c controller foundjcs2016-01-121-0/+120
on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt