Am Montag, 24. Jänner 2022, 13:13:23 EAT schrieb Daniel Kucera:
I am reversing the driver and I'll create a Linux char device to handle those ioctl calls and talk to the USB device using libusb.
If I understand you right you want to create a $WINEPREFIX/dosdevices/d6CDE-0 link to whatever char device your Linux driver creates, and that doesn't work because Wine will only do that for COM ports and other drives?
From Wine's point of view the proper solution is to load the original Windows device driver, have it talk to the USB hardware via libusb and the Windows software via the device it creates. Wine nowadays should have infrastructure to support that. I haven't used it myself though.
Beyond opening the device name, how would the ioctl forward work? Is it some standard serial port ioctl that pass throuh Wine to your driver fine? Or would you need to teach Wine to forward them as well?