dma

dma 是soc上的硬件模块之间数据通信的接口,基本所有模块上都用到了它,他们都是固定的api,虽然只要知道api怎么调用就够用了,但是还是有必要看看底层的逻辑是什么。


documentation/dmaengine.txt

documentation/dma-api.txt

documentation/dma-apt-howto.txt


dma_alloc_coherent--->ops->alloc == arm_dma_alloc

dma_request_slave_channel_compat--->  __dma_request_slave_channel_compat --->  dma_request_slave_channel ---> of_dma_request_slave_channel --->

ofdma->of_dma_xlate == (of_dma_controller_register--->at_dma_xlate) --->dma_request_channel--->__dma_request_channel--->private_candidate


dmaengine_slave_config--->dmaengine_device_control---> chan->device->device_control == atc_control--->set_runtime_config--->convert_burst


dma_map_single--->dma_map_single_attrs--->ops->map_page == arm_dma_map_page


sg_init_table


sg_dma_len


device_prep_slave_sg == atc_prep_slave_sg


tx_submit  ==atc_tx_submit--->atc_dostart


device_issue_pending==atc_issue_pending--->atc_advance_work--->atc_complete_all--->atc_chain_complete--->callback--->dma_run_dependencies

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值