FreeBSD hidraw backend to replace libusb backend #543

Open
opened 2023-05-11 03:39:18 -05:00 by mcuee · 3 comments
mcuee commented 2023-05-11 03:39:18 -05:00 (Migrated from github.com)

It would be good we have a FreeBSD specific backend using hidraw for HIDAPI so that FreeBSD HIDAPI users no longer need to use the libusb backend.

Reference:
https://reviews.freebsd.org/D27992

This driver provides raw access to HID devices through uhid(4)-compatible interface and is based on pre-8.x uhid(4) code.

Unlike uhid(4) it does not take devices in to monopoly ownership and allows parallel access from other drivers.
hidraw supports Linux's hidraw-compatible interface as well.

* https://github.com/libusb/hidapi/issues/274#issuecomment-1543512022 It would be good we have a FreeBSD specific backend using hidraw for HIDAPI so that FreeBSD HIDAPI users no longer need to use the libusb backend. Reference: https://reviews.freebsd.org/D27992 > This driver provides raw access to HID devices through uhid(4)-compatible interface and is based on pre-8.x uhid(4) code. > > Unlike uhid(4) it does not take devices in to monopoly ownership and allows parallel access from other drivers. hidraw supports Linux's hidraw-compatible interface as well.
mcuee commented 2023-05-11 04:29:28 -05:00 (Migrated from github.com)

From @wulf7

I already added hidraw enumeration support to https://github.com/wulf7/libudev-devd/
So, most probably, addition of linux hidapi backend to build is only thing left.

From @wulf7 * https://github.com/libusb/hidapi/issues/274#issuecomment-1543639126 > I already added hidraw enumeration support to https://github.com/wulf7/libudev-devd/ > So, most probably, addition of linux hidapi backend to build is only thing left.
mcuee commented 2023-05-11 04:31:20 -05:00 (Migrated from github.com)

@wulf7

Please help to review the current hidraw backend for Linux and see what would be needed to change to make it working under FreeBSD hidraw. PR will be more than welcome.

@wulf7 Please help to review the current hidraw backend for Linux and see what would be needed to change to make it working under FreeBSD hidraw. PR will be more than welcome. * https://github.com/libusb/hidapi/blob/master/linux/hid.c
mcuee commented 2025-03-27 20:54:46 -05:00 (Migrated from github.com)

Hopefully #730 will be able to address this issue.

Hopefully #730 will be able to address this issue. * #730
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#543
No description provided.