What is the windows driver it is using? Unlike linux, windows doesn't provide usbdevfs like API to send raw URB command from user space. So I don't expect the windows DeviceIoControl call to have 1:1 mapping to usbdevfs(libusb). Chances are you need to know what happens in the driver.
Chris On Wed, Mar 09, 2005 at 12:42:47PM +0100, FINANCE C?dric wrote: > I used fxload to upload the firmware. > The piece of code I have is the interface that > communicates with the ezusb loaded with the firmware. > It's the windows source code. It uses the function > "DeviceIoControl" to communicate with the device. > I'd like to know how to replace this call with libusb > ones. > > --- Greg KH <[EMAIL PROTECTED]> wrote: > > On Wed, Mar 09, 2005 at 08:45:58AM +0100, C?dric > > FINANCE wrote: > > > Hello, > > > > > > > > > I'm trying to write a driver for an usb device. > > It's a cartridge > > > flasher based on a ezusb microcontroller. I talked > > with the developer > > > and he gave me the firmware and a piece of code. I > > uploaded the firmware > > > and managed to find the device with the libusb. > > But then I don't know > > > how to translate the windows call > > "DeviceIoControl". I hope you can help > > > me with that. > > > > What's wrong with using the existing fxload program > > to do this from > > userspace? It works just fine with the ezusb > > devices. > > > > thanks, > > > > greg k-h > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT > > Products from real users. > > Discover which products truly live up to the hype. > > Start reading now. > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > linux-usb-devel@lists.sourceforge.net > > To unsubscribe, use the last form field at: > > > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > > > > > > > > > D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails > ! > Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > linux-usb-devel@lists.sourceforge.net > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel