Re: Understanding how USB transmission works

2020-03-03 Thread Hans Petter Selasky
On 2020-03-03 04:42, Farhan Khan wrote: Thank you so much for your prompt response! I understand that you are the one who wrote the USB stack? If so, I am honored. Can you please clarify a few points you made? In the beginning you call the start method Within rum(4), would that be rum_start()?

Re: Understanding how USB transmission works

2020-03-02 Thread Farhan Khan
On Mon, Mar 2, 2020, at 4:48 PM, Hans Petter Selasky wrote: > On 2020-03-02 22:19, Farhan Khan wrote: > > Hi all, > > > > I am trying to understand how FreeBSD's usb transfers work compared to > > OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD > > side works. > > In

Re: Understanding how USB transmission works

2020-03-02 Thread Hans Petter Selasky
On 2020-03-02 22:19, Farhan Khan wrote: Hi all, I am trying to understand how FreeBSD's usb transfers work compared to OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD side works. In FreeBSD USB transfers are a statemachine. In the beginning you call the start metho

Re: Understanding how USB transmission works

2020-03-02 Thread Ian Lepore
On Mon, 2020-03-02 at 16:19 -0500, Farhan Khan wrote: > Hi all, > > I am trying to understand how FreeBSD's usb transfers work compared > to OpenBSD by using the rum(4) driver. I am a little confused how the > FreeBSD side works. > > On the OpenBSD side, it seems that after allocating the pipes,

Understanding how USB transmission works

2020-03-02 Thread Farhan Khan
Hi all, I am trying to understand how FreeBSD's usb transfers work compared to OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD side works. On the OpenBSD side, it seems that after allocating the pipes, you use usbd_setup_xfer and usbd_transfer(). As an example, look a