From owner-freebsd-current@FreeBSD.ORG Tue Nov 15 19:36:25 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968DD1065676; Tue, 15 Nov 2011 19:36:25 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.31.103]) by mx1.freebsd.org (Postfix) with ESMTP id 599108FC17; Tue, 15 Nov 2011 19:36:25 +0000 (UTC) Received: from [89.182.9.211] (helo=localhost) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RQOd1-0000hD-Nb; Tue, 15 Nov 2011 20:25:08 +0100 Date: Tue, 15 Nov 2011 20:29:22 +0100 From: Marcus von Appen To: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20111115192922.GA1922@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MzAzMjU2 Cc: Subject: uhid(4) and report structures X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2011 19:36:25 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I wonder, if I am correct with my assumption that the usb_ctl_report* structures mentioned in uhid(4) have to be defined and created by the code portion that uses the USB_GET_REPORT(), USB_SET_REPORT(), ... calls. In FreeBSD < 800063 we defined them in the header files of the USB subsystem. After the rewrite those struct definitions vanished. Will the USB_ macros mentioned in uhid(4) "just" return a byte sequence (that's what I understand from the UHID specification) so that code, which uses those calls, can implement its own struct container for the information retrieved? Thanks for shedding some light on this. In case i am correct with what I wrote above, it might make sense to mention it in uhid(4). Best regards Marcus --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk7CvZIACgkQi68/ErJnpkdvkQCgy0tCFAI6HDwbLB5oGAZ6LNvJ zl8An0lm1gzCgZy1U9HIAAVxgy7Le0Ep =K+ol -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--