From owner-freebsd-usb@FreeBSD.ORG Sun Sep 11 16:24:00 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A236516A41F for ; Sun, 11 Sep 2005 16:24:00 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22E9B43D48 for ; Sun, 11 Sep 2005 16:23:59 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so1719203wxd for ; Sun, 11 Sep 2005 09:23:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=iNadBXgP1BYfY5SdVEdIEbHCegAaM+D1kYT2N3mx6GmUGlp+DzL1M7swA8xJLvKRvJyrO7oQZhziVWG+lKin+vR2wBQ1r+qVQ3Zyg0a0Qu/DjttBIeDYFzuMpKJI29JgKr4+/D/MqRcD1uc/cfkq3OsmfXeZF7V2Q1+4r777LLs= Received: by 10.70.20.15 with SMTP id 15mr84505wxt; Sun, 11 Sep 2005 09:23:59 -0700 (PDT) Received: by 10.70.23.1 with HTTP; Sun, 11 Sep 2005 09:23:59 -0700 (PDT) Message-ID: Date: Sun, 11 Sep 2005 10:23:59 -0600 From: John-Paul Andrusky To: hselasky@c2i.net In-Reply-To: <200509041327.45054.hselasky@c2i.net> Mime-Version: 1.0 References: <200508261423.46583.hselasky@c2i.net> <1125777448.9511.7.camel@localhost> <200509041327.45054.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: Problems with uhid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpandrusky@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 16:24:00 -0000 Hi, Finally got some time to play with it. With the second set of drivers and= =20 and the modifications you suggested below, it all works. Thanks. BTW for any one else who does this, you'll need to use=20 UGETW(ed->wMaxPacketSize) instead of ed->wMaxPacketSize. A temporary patch might be to add something to the file=20 > "/sys/dev/usb/uhid.c" >=20 > Where you find: >=20 > sc->sc_isize =3D hid_report_size(desc, size, hid_input, &sc->sc_iid); > sc->sc_osize =3D hid_report_size(desc, size, hid_output, &sc->sc_oid); > sc->sc_fsize =3D hid_report_size(desc, size, hid_feature, &sc->sc_fid); >=20 > Add here: > if(sc->sc_isize > ed->wMaxPacketSize) > sc->sc_isize =3D ed->wMaxPacketSize; >=20 > Then try again. You should now only see a single interrupt packet with > "maxlen=3D5". >=20 > --HPS >=20 --=20 Cheers, John-Paul Andrusky