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!
EHCI number of QH and QTd?
Re: EHCI number of QH and QTd?
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/
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/
Re: EHCI number of QH and QTd?
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?
But if I have a 4 ports PCI controller for USB devices, how many QHs would be nice to create?