kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: arrao@cdac.in (Raghavendra)
To: kernelnewbies@lists.kernelnewbies.org
Subject: DMA over USB
Date: Wed, 02 Jul 2014 10:40:21 +0530	[thread overview]
Message-ID: <53B3943D.5050408@cdac.in> (raw)

Hello,

I have a query regarding DMA(Direct Memory Access) for the usb devices.

The understanding of DMA actions over PCI is straight forward. PCI 
devices support bus mastering capability, such that the PCI devices 
could take the ownership of the bus and perform access to the memory 
directly, and a software support exists for the same in Linux.

As far as USB devices are concerned, they don?t have the bus mastering 
capability like the PCI devices.
But the USB URB structure have a field named 'dma_addr_t transfer_dma', 
used for DMA access. The USB driver allocate the DMA buffers coherently 
and pass the DMA address to the URBs during its initialization.
As far as Linux is concerned, how the DMA action being taking place for 
USB devices. As per my understanding, the USB host controller is taking 
care of the DMA operations. But I require a little more insight into it.

Further more, if it is possible for the USB devices, then can this 
support be also extended towards low-end protocols such as I2C or SPI?

Thanks,
Raghavendra

-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------

             reply	other threads:[~2014-07-02  5:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02  5:10 Raghavendra [this message]
2014-07-02  5:25 ` DMA over USB Mandeep Sandhu
2014-07-02  5:29 ` Greg KH
2014-07-02  5:32   ` Greg KH
2014-07-02  6:02     ` Raghavendra
2014-07-02  6:12       ` Greg KH
2014-07-02  6:09         ` Raghavendra
2014-07-02  6:25           ` Greg KH
2014-07-02  6:29             ` Raghavendra
2014-07-02  5:35 ` Chan Kim
2014-07-02  6:12   ` Raghavendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B3943D.5050408@cdac.in \
    --to=arrao@cdac.in \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).