看板 FB_bugs 關於我們 聯絡資訊
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 _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"