From owner-freebsd-usb@FreeBSD.ORG Mon Jul 27 20:10:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB5401065679; Mon, 27 Jul 2009 20:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 947978FC21; Mon, 27 Jul 2009 20:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6RKA38R035239; Mon, 27 Jul 2009 20:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6RKA3Bk035238; Mon, 27 Jul 2009 20:10:03 GMT (envelope-from gnats) Resent-Date: Mon, 27 Jul 2009 20:10:03 GMT Resent-Message-Id: <200907272010.n6RKA3Bk035238@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@freebsd.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Cc: thompsa@freebsd.org, alfred@freebsd.org, hselasky@c2i.net Resent-Reply-To: FreeBSD-gnats-submit@freebsd.org, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26AAD1065674 for ; Mon, 27 Jul 2009 20:04:05 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id D25D68FC0C for ; Mon, 27 Jul 2009 20:04:04 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from phoenix.codelabs.ru (ppp85-141-160-233.pppoe.mtu-net.ru [85.141.160.233]) by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256) id 1MVWQV-0000To-BP for FreeBSD-gnats-submit@freebsd.org; Tue, 28 Jul 2009 00:04:03 +0400 Message-Id: <20090727195109.E4574B8079@phoenix.codelabs.ru> Date: Mon, 27 Jul 2009 23:51:09 +0400 (MSD) From: Eygene Ryabinkin To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: thompsa@freebsd.org, alfred@freebsd.org, hselasky@c2i.net Cc: Subject: usb/137191: [usb][patch] export ums(4) output report parser data to the userspace X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 20:10:04 -0000 >Number: 137191 >Category: usb >Synopsis: [usb][patch] export ums(4) output report parser data to the userspace >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 27 20:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 8.0-BETA2 amd64 >Organization: Code Labs >Environment: System: FreeBSD 8.0-BETA2 amd64 >Description: It is sometimes useful to see how various mouse functions are recognized by the ums(4) driver. One can recompile the kernel with USB_DEBUG, but that's not always viable. Another way to proceed is to create sysctl node that will show parser's data. >How-To-Repeat: Try to understand how bits in the output report descriptors are mapped to the buttons and mouse movements by the ums(4) driver with the stock FreeBSD kernel. >Fix: The following patch adds sysctl named 'dev.ums..parseinfo' that dumps parser internal state in the human-readable form. --- 0006-ums-4-add-sysctl-node-to-give-away-mouse-report-pars.patch begins here --- begin 644 0006-ums-4-add-sysctl-node-to-give-away-mouse-report-pars.patch M1G)O;2`T.#`V9C6=E;F4@4GEA8FEN M:VEN(#QR96$M9F)S9$!C;V1E;&%B7-C=&P@;F]D92!T;R!G:79E(&%W87D@;6]U&%M<&QE+`IW:&5N('5S97(@3H@17EG96YE(%)Y86)I;FMI;B`\ M7,O9&5V+W5S8B]I;G!U="]U;7,N8PII;F1E M>"!F-C,W86,Q+BXR,&)C9#,S(#$P,#8T-`HM+2T@82]S>7,O9&5V+W5S8B]I M;G!U="]U;7,N8PHK*RL@8B]S>7,O9&5V+W5S8B]I;G!U="]U;7,N8PI`0"`M M-C,L-B`K-C,L-R!`0"!?7T9"4T1)1"@B)$9R965"4T0D(BD["B`C:6YC;'5D M92`\7,O8V]N9BYH/@H@(VEN8VQU M9&4@/'-Y7-C=&Q?8W1X*&1E=BDL"BL) M("`@(%-94T-43%]#2$E,1%)%3BAD979I8V5?9V5T7W-Y7-C=&P@:&%N9&QEPHK M"0EI;F9O(#T@)G-C+3YS8U]I;F9O6VE=.PHK"BL)"2\J($1O;B=T(&5M:70@ M96UP='D@:6YF;R`J+PHK"0EI9B`H*&EN9F\M/G-C7V9L86=S("8**PD)("`@ M("A535-?1DQ!1U]87T%825,@?"!535-?1DQ!1U]97T%825,@?"!535-?1DQ! M1U]:7T%825,@?`HK"0D@("`@(%5-4U]&3$%'7U1?05A)4R!\(%5-4U]&3$%' M7U=?05A)4RDI(#T](#`@)B8**PD)("`@(&EN9F\M/G-C7V)U='1O;G,@/3T@ M,"D**PD)"6-O;G1I;G5E.PHK"BL)"7-B=69?<')I;G1F*'-B+"`B:25D.B(L M(&D@*R`Q*3L**PD):68@*"AI;F9O+3YS8U]F;&%GF4I.PHK"0EI9B`H*&EN9F\M/G-C7V9L86=S("8@54U37T9,04=? M6E]!6$E3*2D**PD)"7-B=69?<')I;G1F*'-B+"`B(%HZF4I.PHK"BL)"69ORelease-Note: >Audit-Trail: >Unformatted: