OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 5:23 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Bulk transfers in EHCI
PostPosted: Wed Sep 26, 2018 5:47 pm 
Offline
Member
Member

Joined: Sat Oct 16, 2010 3:38 pm
Posts: 587
I think I understand it but I'm not completly sure. My current EHCI driver supports control transfers, and that works. Now I want to support bulk transfers.

The documentation says that both of these are handled by the asynchronous schedule.

So, is the only difference between the two thatcontrol transfers start with a SETUP packet (e.g. SETUP, IN, OUT) while bulk transfers simply don't have the SETUP packet (e.g. IN, OUT), but are otherwise submitted in exactly the same way to the controller?


Top
 Profile  
 
 Post subject: Re: Bulk transfers in EHCI
PostPosted: Wed Sep 26, 2018 6:59 pm 
Offline
Member
Member
User avatar

Joined: Sat Nov 22, 2014 6:33 pm
Posts: 934
Location: USA
In a general way of an answer, yes, this is correct.

In a more detailed answer, there are things you need to know.
1) Bulk transfers use the Bulk endpoint(s), not the Control endpoint.
2) Bulk transfers use a toggle bit, one each per endpoint direction[1], and toggle independently of the transfer type. The control transfer starts with a toggle = 0 and ends with a toggle = 1. Not so for bulk endpoints.
3) Bulk transfers are not allowed on Low speed devices.
4) many other things.

[1]Some devices have a single bulk endpoint number (IN = 2 and OUT = 2), yet there is an out endpoint and an in endpoint (same number). Each having its own toggle bit. Most devices have a separate numbered endpoint, i.e.: IN = 2, OUT = 3, etc. Again, each having its own toggle bit.

As always, if you have any questions, feel free to post here. I do my best to answer them.

-Ben


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], Majestic-12 [Bot] and 896 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group