XilinxProcessorIPLib/drivers/mcdma/src/xmcdma_bd.c
u32 XMcDma_ChanToHw(XMcdma_ChanCtrl *Chan)
{
	int Status = XST_SUCCESS;

	/* Update Current Descriptor */
	Status = XMcdma_UpdateChanCDesc(Chan);
	if (Status != XST_SUCCESS) {
		xil_printf("Update CUR DESC failed %x", Status);
		return Status;
	}

	/* Update Tail Descriptor */
	Status = XMcdma_UpdateChanTDesc(Chan);
	if (Status != XST_SUCCESS) {
		xil_printf("Update TAIL DESC failed %x", Status);
		return Status;
	}

	/* Enable the Channel */
	 XMcdma_EnableCh(Chan);

	return Status;
}
/*****************************************************************************/
/**
* This function triggers/Starts the h/w by programming the Current and Tail
* Descriptors and enabling the particular channel.
*
* @param	Chan is the MCDMA Channel to be worked on..
*
* @return
*		- XST_SUCCESS if initialization was successful
*		- XST_FAILURE In case of failure
*
*****************************************************************************/
This function triggers/Starts the h/w by programming the Current and Tail
Descriptors and enabling the particular channel.
This function triggers / Starts the h / w by programming the Current and Tail Descriptors and enabling the particular channel .
u32 XMcDma_ChanToHw(XMcdma_ChanCtrl *Chan)
{
	int Status = XST_SUCCESS;
	Status = XMcdma_UpdateChanCDesc(Chan);
	if (Status != XST_SUCCESS) {
		xil_printf("Update CUR DESC failed %x", Status);
		return Status;
	}
	Status = XMcdma_UpdateChanTDesc(Chan);
	if (Status != XST_SUCCESS) {
		xil_printf("Update TAIL DESC failed %x", Status);
		return Status;
	}
	 XMcdma_EnableCh(Chan);
	return Status;
}
u32 XMcDma_ChanToHw ( XMcdma_ChanCtrl * Chan ) { int Status = XST_SUCCESS ; Status = XMcdma_UpdateChanCDesc ( Chan ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " " , Status ) ; return Status ; } Status = XMcdma_UpdateChanTDesc ( Chan ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " " , Status ) ; return Status ; } XMcdma_EnableCh ( Chan ) ; return Status ; }
This function triggers/Starts the h/w by programming the Current and Tail
Descriptors and enabling the particular channel.
This function triggers / Starts the h / w by programming the Current and Tail Descriptors and enabling the particular channel .
/* Update Current Descriptor */ /* Update Tail Descriptor */ /* Enable the Channel */