[lkml]   [2003]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWhat does pci_map_single do
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
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

The new MSN 8: advanced junk mail protection and 2 months FREE*

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.022 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site