Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 09:27:37 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        gavin@freebsd.org
Subject:   Re: usb/101761: [usb67] [patch] [request] usb.h: increase maximal size of report descriptor
Message-ID:  <200908250927.39427.hselasky@c2i.net>
In-Reply-To: <20090825011025.GA26981@hades.panopticon>
References:  <200908241557.n7OFvuT1052755@freefall.freebsd.org> <20090825011025.GA26981@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 25 August 2009 03:10:25 Dmitry Marakasov wrote:
> * gavin@FreeBSD.org (gavin@FreeBSD.org) wrote:
> > State-Changed-From-To: open->feedback
> > State-Changed-By: gavin
> > State-Changed-When: Mon Aug 24 15:54:46 UTC 2009
> > State-Changed-Why:
> > To submitter:  I'm not sure what the state is of this PR.  It looks like
> > the problem has not yet been fixed in FreeBSD 6 or 7, but I don't know if
> > it is still an issue with the new USB stack in 8.x.  Do you happen to
> > know if this PR is still valid against the new USB stack?  Thanks!
> >
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=101761
>
> How do I dump UHID report descriptor with the new stack? usbhitctl
> doesn't seem to work:
>
> root@hades:amdmi3# usbhidctl -f /dev/uhid1 -r
> Report descriptor:
> Total   input size 0 bytes
> Total  output size 0 bytes
> Total feature size 0 bytes
> root@hades:amdmi3# usbhidctl -f /dev/uhid1 -a
> usbhidctl: USB_SET_IMMED: Device not configured

How to dump HID descriptor:

Interface 0 of ugen7.5:

usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 0 0x1000

Interface 1 of ugen7.5:

usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 1 0x1000

And so on.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908250927.39427.hselasky>