9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usb ohci - one more question
@ 2011-02-22 17:02 rod
  2011-02-22 17:17 ` Francisco J Ballesteros
  0 siblings, 1 reply; 5+ messages in thread
From: rod @ 2011-02-22 17:02 UTC (permalink / raw)
  To: 9fans

May I have one more question?

When you create a new bulk or interrupt endpoint "epopen" is called.
The aux field of the Ep is set to point to an array of two Qio
structures. One for input and one for output. Both of those in turn
have a pointer to, and a one-to-one correspondence with, an endpoint
descriptor (Ed). "newed" is called for each Qio to link the Qio's
endpoint descriptor into the controller's chain.

I can't figure out why there are two Qio structs. The usb spec says
that bulk/interrupt endpoints are unidirectional, so why wouldn't just
a single one do?

Thanks,

rod



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-22 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 17:02 [9fans] usb ohci - one more question rod
2011-02-22 17:17 ` Francisco J Ballesteros
2011-02-22 17:29   ` Richard Miller
2011-02-22 17:39     ` rod
2011-02-22 18:56       ` Francisco J Ballesteros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).