kern/183032: uep driver not working with eGalax touchcontroller

Hans Petter Selasky hps at bitfrost.no
Thu Jan 23 13:37:49 UTC 2014


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


More information about the freebsd-bugs mailing list