dma_handle is a output parameter. When dma_alloc_coherent returns, the return value is the virtual address of the memory malloced and the dma_handle is the DMA address of it. You may need to pass it to your device register.

jeyram jadenthradevan 写道:
hello every one,


void *dma_alloc_coherent(struct device *dev, size_t size,
                         dma_addr_t *dma_handle, int flag);

here what is the usage of dma_handle ?

thank you.
-jeyram


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

  • DMA Mapping jeyram jadenthradevan
    • Re: DMA Mapping Guo Hongruan

Reply via email to