cyclic sdma - determine either number of bytes written or current ARM destination Adress

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cyclic sdma - determine either number of bytes written or current ARM destination Adress

447 Views
ericgrunt
Contributor I

I'm on the Linux platform and using sdma via dmaegine and the sdma-imx driver

to copy data from uart to Memory (DEV_TO_MEM).

I need to access data written by cyclic dma before an interrupt is issued,

so I do not know the transfer length.

Accessing mode.count of struct sdma_buffer_descriptor does not give an answer,

since it just holds the buffers full size.

How is the information, which adress the dma write next to accessible outside the sdma driver?

Or is there an alternate way to find out how many bytes have been written during a single transfer?

Labels (2)
0 Kudos
1 Reply

351 Views
igorpadykov
NXP Employee
NXP Employee

Hi Eric

I am afraid sdma driver does not provide info about current

memory address which it is accessing, so seems there is no way

to know how many bytes were written.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos