在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
EETOP诚邀模拟IC相关培训讲师 创芯人才网--重磅上线啦!
12
返回列表 发新帖
楼主: shadow

PCI总线所采用的DMA传输方式

[复制链接]
发表于 2005-7-22 17:52:44 | 显示全部楼层

PCI总线所采用的DMA传输方式

1. First of all, bus mastering is NOT a something huge, it is simply saying this PCI device becomes the master and transfer data to the target.
2. DMA is a procedure that the master transfer a certain amount of data automatically without any assistance.
3. DMA engine will do applying for bus ownership, attempt to write / read data if get retried, write / read using single or burst, if disconnected, reapply for bus ownership, restart the data transfer from where it is stopped, stop transfer when it reaches the amount of data, sometimes, it also has a watermark to use the bus efficiently.
4. Do you have to understand all these in order to use it? NO!
5. All you need is how to set a group of registers in this PCI device. Normally, these registers include destination address, size of data, watermark if applicable, and the GO bit (to start the DMA transfer).
6. How to set these registers? Using single write several times. It should the base address + offset of these registers.
7. After DMA finishes the transfer, it will NORMALLY interrupt CPU, i.e., your SW has to service the interrupt. Normally, SW has to check DMA status registers, if it shown DONE bit == 1, then it is successfully done.
8. If it is some other error bits, then you have to clear the errors and restart the DMA engine for next round of DMA transfer.
9. The system works smoothly.
发表于 2008-11-3 11:26:01 | 显示全部楼层
xiexieha
发表于 2008-11-3 22:40:58 | 显示全部楼层
谢谢 我正在学习这方面知识
发表于 2008-11-5 21:03:33 | 显示全部楼层
可以看看 windows 2000/xp wdm设备驱动程序开发,里面有一个9054的驱动程序。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条


小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-1-9 10:44 , Processed in 0.015110 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表