PDA

View Full Version : FreeBSD USB equivalent to Linux usb_control_msg


Need4Speed
August 28th, 2010, 18:48
Hi,

Can anyone clarify how to go about doing a synchronous usb control transfer, similar to Linux's usb_control_msg? I want to implement the TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses synchronous control messages to read DCE and CTS serial pin status, and I want to do something similar in FreeBSD. The usbdi(9) manpage talks about control transfers using usbd_transfer_submit, but they don't look synchronous to me. What about using usbd_transfer_drain? Is there a better way to do this in FreeBSD?

Thanks

graudeejs
August 28th, 2010, 19:45
You better ask this on mailinglist.
Causal users won't be able help you... what you need is some developer.... (not many read this forum)