Page MenuHomeFreeBSD

D28060.id81946.diff
No OneTemporary

D28060.id81946.diff

diff --git a/sys/amd64/conf/NOTES b/sys/amd64/conf/NOTES
--- a/sys/amd64/conf/NOTES
+++ b/sys/amd64/conf/NOTES
@@ -607,6 +607,13 @@
# EFI Runtime Services support
options EFIRT
+#
+# HID-over-I2C support
+#
+device iichid # HID-over-I2C support
+options IICHID_DEBUG # Enable HID-over-I2C debug messages
+options IICHID_SAMPLING # Workaround missing GPIO INTR support
+
#####################################################################
# ABI Emulation
diff --git a/sys/arm64/conf/NOTES b/sys/arm64/conf/NOTES
--- a/sys/arm64/conf/NOTES
+++ b/sys/arm64/conf/NOTES
@@ -239,3 +239,10 @@
# ZFS support
options ZFS
+
+#
+# HID-over-I2C support
+#
+device iichid # HID-over-I2C support
+options IICHID_DEBUG # Enable HID-over-I2C debug messages
+options IICHID_SAMPLING # Workaround missing GPIO INTR support
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -2457,6 +2457,9 @@
device uep
# Diamond Rio 500 MP3 player
device urio
+# HID-over-USB driver
+device usbhid
+
#
# USB serial support
device ucom
@@ -2573,6 +2576,9 @@
options UVSCOM_INTR_INTERVAL=100 # interrupt pipe interval
# in milliseconds
+# options for usbhid:
+#options USBHID_ENABLED # Prefer usbhid to other USBHID drivers
+
#####################################################################
# FireWire support
@@ -2827,3 +2833,21 @@
# Kernel support for stats(3).
options STATS
+
+# Human interface device (HID) support
+device hid # Generic HID support
+options HID_DEBUG # enable debug msgs
+device hidbus # HID bus
+device hidmap # HID to evdev mapping
+device hidraw # Raw access driver
+options HIDRAW_MAKE_UHID_ALIAS # install /dev/uhid alias
+device hconf # Multitouch configuration TLC
+device hcons # Consumer controls
+device hgame # Generic game controllers
+device hkbd # HID keyboard
+device hms # HID mouse
+device hmt # HID multitouch (MS-compatible)
+device hpen # Generic pen driver
+device hsctrl # System controls
+device ps4dshock # Sony PS4 DualShock 4 gamepad driver
+device xb360gp # XBox 360 gamepad driver
diff --git a/sys/dev/hid/hidmap.c b/sys/dev/hid/hidmap.c
--- a/sys/dev/hid/hidmap.c
+++ b/sys/dev/hid/hidmap.c
@@ -752,7 +752,7 @@
TUNABLE_INT_FETCH(tunable, &hm->debug_level);
SYSCTL_ADD_INT(device_get_sysctl_ctx(hm->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(hm->dev)),
- OID_AUTO, "debug", CTLTYPE_INT | CTLFLAG_RWTUN,
+ OID_AUTO, "debug", CTLFLAG_RWTUN,
&hm->debug_level, 0, "Verbosity level");
}
#endif
diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -1116,12 +1116,12 @@
"idle sampling rate in num/second");
SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)),
- OID_AUTO, "sampling_rate_fast", CTLTYPE_INT | CTLFLAG_RWTUN,
+ OID_AUTO, "sampling_rate_fast", CTLFLAG_RWTUN,
&sc->sampling_rate_fast, 0,
"active sampling rate in num/second");
SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->dev),
SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)),
- OID_AUTO, "sampling_hysteresis", CTLTYPE_INT | CTLFLAG_RWTUN,
+ OID_AUTO, "sampling_hysteresis", CTLFLAG_RWTUN,
&sc->sampling_hysteresis, 0,
"number of missing samples before enabling of slow mode");
hid_add_dynamic_quirk(&sc->hw, HQ_IICHID_SAMPLING);
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -859,6 +859,13 @@
#
options NKPT=31
+#
+# HID-over-I2C support
+#
+device iichid # HID-over-I2C support
+options IICHID_DEBUG # Enable HID-over-I2C debug messages
+options IICHID_SAMPLING # Workaround missing GPIO INTR support
+
#####################################################################
# ABI Emulation

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 19, 8:47 PM (15 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31797277
Default Alt Text
D28060.id81946.diff (3 KB)

Event Timeline