Date: Thu, 23 Jan 2014 14:38:48 +0100 From: Hans Petter Selasky <hps@bitfrost.no> To: Gleb Smirnoff <glebius@FreeBSD.org>, Brock Williams <brock@cottonwoodcomputer.com> Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/183032: uep driver not working with eGalax touchcontroller Message-ID: <52E11B68.5080309@bitfrost.no> In-Reply-To: <20140123132705.GR66160@FreeBSD.org> References: <201401230000.s0N002SO009456@freefall.freebsd.org> <20140123132705.GR66160@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/23/14 14:27, Gleb Smirnoff wrote: > Hans, can you provide any advice on adding USB quirck. We've got > different touchscreens that are identified and attached by uep(4), > but they behave differently. Is there a way to fetch additional > information from a device (vendor, revision, etc...)? Hi, Quirks can match on some fields in the USB device descriptor. See the usb_quirk.h header file. struct usb_quirk_entry { uint16_t vid; uint16_t pid; uint16_t lo_rev; uint16_t hi_rev; uint16_t quirks[USB_SUB_QUIRKS_MAX]; }; vid: Vendor ID pid: Product ID hi_rev+lo_rev: Device revision. You can match on vendor only too. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52E11B68.5080309>