diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-12-28 15:24:09 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-12-28 15:24:09 +0000 |
commit | 70224308c131509e526e86c51cb3143582e529a4 (patch) | |
tree | a20816b3304dff39bbcb9351541f9f2489d871fe | |
parent | 543a0f51a2e6e4c415f44b33b4bbc6f0d38fa7de (diff) |
Attach USB HID devices from the Generic Destop page, usage pointer to
ums. This is how the USB Tablet from Qemu in libvirt/kvm shows up and
it works with ums(4). ok mpi@
-rw-r--r-- | sys/dev/usb/ums.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 8fe5004f60d..2576f414d3a 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ums.c,v 1.39 2014/08/21 14:52:56 mpi Exp $ */ +/* $OpenBSD: ums.c,v 1.40 2014/12/28 15:24:08 matthieu Exp $ */ /* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -95,6 +95,10 @@ ums_match(struct device *parent, void *match, void *aux) uhidev_get_report_desc(uha->parent, &desc, &size); if (hid_is_collection(desc, size, uha->reportid, + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_POINTER))) + return (UMATCH_IFACECLASS); + + if (hid_is_collection(desc, size, uha->reportid, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) return (UMATCH_IFACECLASS); |