summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhidev.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-01-09 12:07:50 +0000
committermpi <mpi@openbsd.org>2015-01-09 12:07:50 +0000
commit3541a1e38c63c01fd011130e727a19efa30fd874 (patch)
treeb31df6b4c1c46353cac9a810b2f554133b029174 /sys/dev/usb/uhidev.h
parentdocument the chips we support. lots of raid controllers use them (diff)
downloadwireguard-openbsd-3541a1e38c63c01fd011130e727a19efa30fd874.tar.xz
wireguard-openbsd-3541a1e38c63c01fd011130e727a19efa30fd874.zip
Add an asynchronous version of uhidev_get_report(), from David Higgs
with some tweaks. Nothing use it for the moment, but upcoming upd(4) improvements need it.
Diffstat (limited to 'sys/dev/usb/uhidev.h')
-rw-r--r--sys/dev/usb/uhidev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/uhidev.h b/sys/dev/usb/uhidev.h
index 434cc76a1fb..ad00e8f8bf7 100644
--- a/sys/dev/usb/uhidev.h
+++ b/sys/dev/usb/uhidev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidev.h,v 1.21 2014/12/11 18:39:27 mpi Exp $ */
+/* $OpenBSD: uhidev.h,v 1.22 2015/01/09 12:07:50 mpi Exp $ */
/* $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $ */
/*
@@ -91,4 +91,6 @@ int uhidev_ioctl(struct uhidev *, u_long, caddr_t, int, struct proc *);
int uhidev_set_report(struct uhidev_softc *, int, int, void *, int);
int uhidev_set_report_async(struct uhidev_softc *, int, int, void *, int);
int uhidev_get_report(struct uhidev_softc *, int, int, void *, int);
+int uhidev_get_report_async(struct uhidev_softc *, int, int, void *, int,
+ void *, void (*)(void *, int, void *, int));
usbd_status uhidev_write(struct uhidev_softc *, void *, int);