Re: Question on Linking of Endpoint to Device context (xHCI)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 29, 2010 at 11:34:01PM +0530, aditya uttam wrote:
> Dear all,
> 
> I am a newbie and trying to understand Sarah xHCI driver code.

It might help if you add my email in the To or Cc, otherwise it gets
lost in my USB mailing list Maildir. :)

> in xhci_alloc_virt_device(), EP(Default control) ring has been
> allocated using the following call.
> dev->eps[0].ring = xhci_ring_alloc(xhci, 1, true, flags);
> 
> But still I was unable to understand, how this EP will be accessed by
> the xHC, means where the EP ring was linked to dev context.

The endpoint ring is linked into the device context by writing the
dequeue pointer into the endpoint context.  That code is
xhci_setup_addressable_virt_dev():

        ep0_ctx->deq =
                dev->eps[0].ring->first_seg->dma;
        ep0_ctx->deq |= dev->eps[0].ring->cycle_state;

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux