Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2010 10:51:19 +0200
From:      Piet Skiet <tuksgig@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   USB synchronous control transfers (for usb-to-serial)
Message-ID:  <AANLkTinr3KbWOqgQoKVvF84H2c02fHh9SQRDeUkSRn4B@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Can anyone clarify how to go about doing a synchronous usb control
transfer, similar to Linux's=A0usb_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=A0usbd_transfer_submit, but they're
not synchronous. What about using=A0usbd_transfer_drain? Is there an
example driver showing setting up and doing control transfers?

The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls
at the moment.

Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinr3KbWOqgQoKVvF84H2c02fHh9SQRDeUkSRn4B>