Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD hidraw backend to replace libusb backend #543

Open
mcuee opened this issue May 11, 2023 · 2 comments
Open

FreeBSD hidraw backend to replace libusb backend #543

mcuee opened this issue May 11, 2023 · 2 comments
Labels
bsd FreeBSD, NetBSD, OpenBSD, etc enhancement New feature or request

Comments

@mcuee
Copy link
Member

mcuee commented May 11, 2023

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 mcuee added enhancement New feature or request bsd FreeBSD, NetBSD, OpenBSD, etc labels May 11, 2023
@mcuee
Copy link
Member Author

mcuee commented May 11, 2023

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.

@mcuee
Copy link
Member Author

mcuee commented May 11, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bsd FreeBSD, NetBSD, OpenBSD, etc enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant