I did not use the ezusb driver all that much. If I remember
correctly, the ezusb driver provide ioctl pretty straight forward.
It is similar enough to map to the usbdevfs.

You should read the documents or header file for the ezusb to
see what does the those ioctl do. e.g. If it is reading from a
bulk endpoint, make the libusb do the same thing.

Chris

On Wed, Mar 09, 2005 at 10:00:41PM +0100, C?dric FINANCE wrote:
> I think it's using the ezusb driver. It opens "\\\\.\\Ezw-0" with 
> CreateFile.
> 
> Christopher Li wrote:
> 
> >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

Reply via email to