Results 1 to 1 of 1
Hi,
I have a question about DMA buffers. I am writing a device driver which should use DMA transfer from device to host PC memory. I allocate a DMA buffer ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-08-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 4
Allocate and use DMA buffer
Hi,
I have a question about DMA buffers. I am writing a device driver which should use DMA transfer from device to host PC memory. I allocate a DMA buffer with pci_alloc_consistent() for a coherent buffer allocation. Now to my question. In my device drivers read function when I initiate a DMA transfer do I have to use pci_map_single() on the DMA buffer before the transfer and then pci_umap_singel() before I copy the buffer to userspace? Or is it okey to just use the virtual and physical addresses returned by pci_alloc_consisten()?


Reply With Quote
