On Sat, Jul 16, 2011 at 7:46 PM, Uwe Bonnes
<b...@elektron.ikp.physik.tu-darmstadt.de> wrote:
> B.t.w. a question to those working with WinUSB:
>
> Is it possible to map the calls to winusb.dll to libusb at all? How much
> work will be involved? The reason why I ask: If we can map all calls to
> winusb to libusb, a replacement dll can be written for Wine and winusb
> programs can be run on Linux and other systems that can run Wine/libusb.
>
> I have writte a similar replacement-dll for ftd2xx. I could run FTDI
> mprog.exe on Linux with it. I tried to integrate into official Wine, but
> patch requests got by unnotices/uncommented/unappied.

I see. I tend to think this is pretty difficult.
http://msdn.microsoft.com/en-us/library/ff540046%28v=vs.85%29.aspx#winusb

Some of the calls are not possible to map to libusb right now.
Eg 1: pipe policy
http://msdn.microsoft.com/en-us/library/ff728833%28v=vs.85%29.aspx
Eg 2: power policy
http://msdn.microsoft.com/en-us/library/ff540309%28v=vs.85%29.aspx

This may not be easy as well: async I/O for Windows is pretty different
http://msdn.microsoft.com/en-us/library/ff540263%28v=vs.85%29.aspx


-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to