interfacing uhid devs from kernel module

Attilio Rao attilio at freebsd.org
Thu Jun 15 17:02:06 UTC 2006


2006/6/15, Marcin Cylke <szyderca at gmail.com>:
> On 6/15/06, Hans Petter Selasky <hselasky at c2i.net> wrote:
>
> > What functions do you need? Have you looked at uhid.c under /sys/dev/usb ?
>
> I would like to use the whole infrastructure:
> struct hid_item
> hid_usage_page()
> hid_usage_in_page()
> hid_init()
> hid_get_report_desc()

Give a look at USB mouse (ums.c) which give a good overview about HID
kernelspace API.

However I don't know if Hans has plans to change it in the new stack...

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the freebsd-hackers mailing list