Date: Sun, 11 Sep 2005 10:23:59 -0600 From: John-Paul Andrusky <jpandrusky@gmail.com> To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org Subject: Re: Problems with uhid device. Message-ID: <d849f17e0509110923a619cd0@mail.gmail.com> In-Reply-To: <200509041327.45054.hselasky@c2i.net> References: <d849f17e05082307553f67f0ce@mail.gmail.com> <200508261423.46583.hselasky@c2i.net> <1125777448.9511.7.camel@localhost> <200509041327.45054.hselasky@c2i.net>
index | next in thread | previous in thread | raw e-mail
Hi, Finally got some time to play with it. With the second set of drivers and and the modifications you suggested below, it all works. Thanks. BTW for any one else who does this, you'll need to use UGETW(ed->wMaxPacketSize) instead of ed->wMaxPacketSize. A temporary patch might be to add something to the file > "/sys/dev/usb/uhid.c" > > Where you find: > > sc->sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid); > sc->sc_osize = hid_report_size(desc, size, hid_output, &sc->sc_oid); > sc->sc_fsize = hid_report_size(desc, size, hid_feature, &sc->sc_fid); > > Add here: > if(sc->sc_isize > ed->wMaxPacketSize) > sc->sc_isize = ed->wMaxPacketSize; > > Then try again. You should now only see a single interrupt packet with > "maxlen=5". > > --HPS > -- Cheers, John-Paul Andruskyhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d849f17e0509110923a619cd0>
