uhid(4) and report structures

Marcus von Appen mva at FreeBSD.org
Tue Nov 15 19:36:25 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20111115/3ce47274/attachment.pgp

More information about the freebsd-current mailing list