Fix for Logitech DiNovo cordless mouse [PATCH]

Anish Mistry mistry.7 at osu.edu
Sat Jun 12 18:16:10 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 12 June 2004 08:45 am, Markus Wild wrote:
> Hm, I had a look through the patched files, and one thing that sprung
> to my eyes: the FreeBSD hid_report_size(() function is currently used
> to both return the size of a report, as well as setting the device
> report ID (the ID parameter is of type "out"). This ID is later used
> to match incoming reports to the device. With the suggested
> changes, this parameter changes to being of type "in", i.e. the
> function no longer returns the ID information to the calling function.
> This would certainly generate a compile time warning (if not error)
> for ums.c, and while uhid.c has been syntactically changed, I now see
> no place where sc->sc_iid, sc->sc_oid, sc->sc_fid would be initialized
> after applying the change. I assume the NetBSD code in itself is sound,
> so perhaps we're just missing additional files now that would also need
> to be changed for FreeBSD?
>
You're right, I missed a couple files. This is starting to turn a bit messy, 
but it'll be better to sync it up now rather than later.  I'm going to try to 
get a better patch this weekend.

- -- 
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAy0hmxqA5ziudZT0RAikEAJoDzFMcgyXtiZ3xWiSepVVgJzFiegCgqgsr
JoH9RSdTshG5Z5F18HS3w2Y=
=ZGKF
-----END PGP SIGNATURE-----


More information about the freebsd-hardware mailing list