/* Set the channel to run in parking mode */
int XAxiVdma_ChannelStartParking(XAxiVdma_Channel *Channel)
/* Set the channel to run in parking mode */
int XAxiVdma_ChannelStartParking(XAxiVdma_Channel *Channel)
{
	u32 CrBits;
	if (!XAxiVdma_ChannelIsRunning(Channel)) {
		PRINTF(
		    "Channel is not running, cannot start park mode\r\n");
		return XST_FAILURE;
	}
	CrBits = XAxiVdma_ReadReg(Channel->ChanBase, XAXIVDMA_CR_OFFSET) &
	            ~XAXIVDMA_CR_TAIL_EN_MASK;
	XAxiVdma_WriteReg(Channel->ChanBase, XAXIVDMA_CR_OFFSET,
	    CrBits);
	return XST_SUCCESS;
}