mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* What does pci_map_single do
@ 2003-02-19  3:10 shesha bhushan
  0 siblings, 0 replies; only message in thread
From: shesha bhushan @ 2003-02-19  3:10 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I wanted to use DMA in my device driver.

1. pci_map_single will transfer the data from RAM (kernel area) to the 
hardware accessible area and will provide with a pointer which can then be 
passed to the hardware.
2. In the above function the "size" parameter indicates the amount of DMA 
transfer.
Am I correct in the above two points? If I am wrong please correct me.

In the Linux Device driver book (page 408), he says, data must be explicitly 
flushed from the processor cache. And data flushed this way is not avaliable 
to the device.

This means that we must flush the processor cache before calling 
pci_map_single. How can we achieve this.

Thanking You
Shesha



_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-19  3:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19  3:10 What does pci_map_single do shesha bhushan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®