Subject: Re: apcupsd-3.10.X, anyone got it working under NetBSD
To: NetBSD-current Users <firstname.lastname@example.org>
From: Werner Backes <email@example.com>
Date: 10/10/2004 12:19:56
Jaromir Dolecek wrote:
> it depends on being able to open one device and enumerate all report
> IDs of that USB HID device.
NetBSD creates an own UHID device node for every report ID. So the
solution here would be to scan through all UHID devices and search
for the one with the wanted vendor ID,product ID and report ID.
> AFAICS there is no ioctl for this kind
> of thing on NetBSD. So, unfortunately it's non-trivial to port the
> USB stuff to NetBSD.
There are USB_GET_DEVICEINFO and USB_GET_REPORT_ID ioctls (see UHID(4)).
This makes it possible to find the appropriate UHID device.