/* Returns current source and destination addresses for a particular parameter RAM slot. Its channel should not be active when this is called.  */
void edma_get_position(unsigned slot, dma_addr_t *src, dma_addr_t *dst)
/* Returns current source and destination addresses for a particular parameter RAM slot. Its channel should not be active when this is called.  */
void edma_get_position(unsigned slot, dma_addr_t *src, dma_addr_t *dst)
{
	struct edmacc_param temp;
	unsigned ctlr;
	ctlr = EDMA_CTLR(slot);
	slot = EDMA_CHAN_SLOT(slot);
	edma_read_slot(EDMA_CTLR_CHAN(ctlr, slot), &temp);
	if (src != NULL)
		*src = temp.src;
	if (dst != NULL)
		*dst = temp.dst;
}