/* The originating slot should not be part of any active DMA transfer. Its link is set to 0xffff.  */
void edma_unlink(unsigned from)
/* The originating slot should not be part of any active DMA transfer. Its link is set to 0xffff.  */
void edma_unlink(unsigned from)
{
	unsigned ctlr;
	ctlr = EDMA_CTLR(from);
	from = EDMA_CHAN_SLOT(from);
	if (from >= edma_info[ctlr]->num_slots)
		return;
	edma_parm_or(ctlr, PARM_LINK_BCNTRLD, from, 0xffff);
}