From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 23 13:37:49 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 651F5CA1; Thu, 23 Jan 2014 13:37:49 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id 1F09D1F4A; Thu, 23 Jan 2014 13:37:48 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 28AF710058F; Thu, 23 Jan 2014 14:37:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 0D0B61608B6; Thu, 23 Jan 2014 14:38:37 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F72oshJVKRD9; Thu, 23 Jan 2014 14:38:36 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 5282E1608B5; Thu, 23 Jan 2014 14:38:36 +0100 (CET) Message-ID: <52E11B68.5080309@bitfrost.no> Date: Thu, 23 Jan 2014 14:38:48 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Gleb Smirnoff , Brock Williams Subject: Re: kern/183032: uep driver not working with eGalax touchcontroller References: <201401230000.s0N002SO009456@freefall.freebsd.org> <20140123132705.GR66160@FreeBSD.org> In-Reply-To: <20140123132705.GR66160@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 13:37:49 -0000 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