微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > s3c2440的dma操作的一般步骤

s3c2440的dma操作的一般步骤

时间:11-19 来源:互联网 点击:

七:
int s3c2410_dma_enqueue(unsigned int channel, void *id,
dma_addr_t data, int size)

发起一次dma传输
参数意义:
* id the device drivers id information for this buffer
* data the physical address of the buffer data
* size the size of the buffer in bytes
将dma_alloc_coherent中得到的dmaphys传递给s3c2410_dma_enqueue. s3c2410_dma_enqueue提交一次dma请求,当dma通道可用的时候通过s3c2410_dma_loadbuffer开始一次传输,传输完成后会产生irq中断。其dma的中断服务函数中会继续启动dma请求队列中的请求,传输剩下的数据。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top