summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c/ihidev.h
diff options
context:
space:
mode:
authorjcs <jcs@openbsd.org>2019-07-22 14:37:06 +0000
committerjcs <jcs@openbsd.org>2019-07-22 14:37:06 +0000
commitd03221a8a1ef36fb9a6812f51de016cc43f8918e (patch)
tree423ce9f82c7e6cab116bbc5ebdd35238d34ab962 /sys/dev/i2c/ihidev.h
parentIn secure mode (-S), skip sending mail when executing the :pre[serve] (diff)
downloadwireguard-openbsd-d03221a8a1ef36fb9a6812f51de016cc43f8918e.tar.xz
wireguard-openbsd-d03221a8a1ef36fb9a6812f51de016cc43f8918e.zip
Even when polling is requested, install ihidev's interrupt handler
If an interrupt is received, turn off polling and rely on interrupts. This may happen after S3 resume. Also properly shut down polling during suspend and start it up again on resume only after dwiic is back in action.
Diffstat (limited to 'sys/dev/i2c/ihidev.h')
-rw-r--r--sys/dev/i2c/ihidev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/i2c/ihidev.h b/sys/dev/i2c/ihidev.h
index a9ff60f182d..dde7cef5ab5 100644
--- a/sys/dev/i2c/ihidev.h
+++ b/sys/dev/i2c/ihidev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ihidev.h,v 1.6 2018/08/25 18:32:05 jcs Exp $ */
+/* $OpenBSD: ihidev.h,v 1.7 2019/07/22 14:37:06 jcs Exp $ */
/*
* HID-over-i2c driver
*
@@ -89,8 +89,10 @@ struct ihidev_softc {
int sc_refcnt;
int sc_poll;
+ int sc_frompoll;
int sc_fastpoll;
struct timeout sc_timer;
+ int sc_dying;
};
struct ihidev {