这是V831 DMA裸机驱动代码,下面是DMA白盒测试结果
xboot: /# wboxtest dma [dma]-[benchmark] Bandwidth: 292.625MB/s [dma]-[dmacpy-16bit] [wboxtest/dma/dmacpy-16bit.c:91] { pdat->complete } [OKAY] [wboxtest/dma/dmacpy-16bit.c:92] { M[pdat->src == pdat->dst] } [OKAY] [dma]-[dmacpy-32bit] [wboxtest/dma/dmacpy-32bit.c:91] { pdat->complete } [OKAY] [wboxtest/dma/dmacpy-32bit.c:92] { M[pdat->src == pdat->dst] } [OKAY] [dma]-[dmacpy-64bit] [wboxtest/dma/dmacpy-64bit.c:91] { pdat->complete } [OKAY] [wboxtest/dma/dmacpy-64bit.c:92] { M[pdat->src == pdat->dst] } [OKAY] [dma]-[dmacpy-8bit] [wboxtest/dma/dmacpy-8bit.c:91] { pdat->complete } [OKAY] [wboxtest/dma/dmacpy-8bit.c:92] { M[pdat->src == pdat->dst] } [OKAY]