EHCI number of QH and QTd?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bsdero
Posts: 9
Joined: Mon Jan 09, 2012 12:36 pm

EHCI number of QH and QTd?

Post by bsdero »

Hi guys!!

I'm working in a EHCI driver. Until now all just works!! Tried with sample DMA transferences, PCI interrupts, all is working quite good.

But I would know, how many QHs and QTd and similar structures would be fine to create when na USB device is attached?
And how many should be created at USB controller attach?

Thanks in advance guys!
TomT
Member
Member
Posts: 42
Joined: Sat Mar 15, 2008 7:20 am
Location: Wisconsin, USA
Contact:

Re: EHCI number of QH and QTd?

Post by TomT »

I have one QH that points to itself for usb flash drive data transfers.
You might add additional QH into the circular link list for each usb device attached.
As for the QTd my driver is setup to transfer 512 bytes per TD so I divide the size of the qty bytes to be transferred by 512 to arrive at the number of TD's required in the chain.
I think you can transfer up to 4000 bytes per TD with ehci.

TomT
http://code.google.com/p/tatos/
bsdero
Posts: 9
Joined: Mon Jan 09, 2012 12:36 pm

Re: EHCI number of QH and QTd?

Post by bsdero »

That's sound good!! Thanks!
But if I have a 4 ports PCI controller for USB devices, how many QHs would be nice to create?
Post Reply