Hi,
I want to implement RX support for UART on DM814xevm platform using our own custom RTOS. The UART buffer maintained is very similar to the linux's one. I am receiving characters via DMA successfully but I want to fill my buffer the very same way the omap-serial.c(which uses SDMA not eDMA on platforms other than DM814x) driver fills for linux in case of DMA. But apparently there is no way to know the status of an ongoing transfer before its completion in eDMA, because of which the approach used in the linux driver cannot be used. Since I can know that the transfer is complete in case of dma only if complete length has been received and then fill the buffer. I cannot do that here since if the data that comes is less than the programmed length in DMA I cannot copy it to my buffer because I dont know how much data has yet been received since the interrupt for dma completion does not occur in this case and the application stuck is stuck here. Can anyone suggest what should I do to overcome this? Thank You.
Regards,
Mughees