XilinxProcessorIPLib/drivers/axidma/src/xaxidma_bdring.c
int XAxiDma_BdRingStart(XAxiDma_BdRing * RingPtr)
{
	int Status;

	Status = XAxiDma_UpdateBdRingCDesc(RingPtr);
	if (Status != XST_SUCCESS) {
		 xdbg_printf(XDBG_DEBUG_ERROR, "BdRingStart: "
			"Updating Current Descriptor Failed\n\r");
		return Status;
	}

	Status = XAxiDma_StartBdRingHw(RingPtr);
	if (Status != XST_SUCCESS) {
		 xdbg_printf(XDBG_DEBUG_ERROR, "BdRingStart: "
			"Starting Hardware Failed\n\r");
		return Status;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
 * Start a DMA channel, updates current descriptors and
 * Allow DMA transactions to commence on a given channel if descriptors are
 * ready to be processed.
 *
 * After a DMA channel is started, it is not halted, and it is idle (no active
 * DMA transfers).
 *
 * @param	RingPtr is the Channel instance to be worked on
 *
 * @return
 *		- XST_SUCCESS upon success
 *		- XST_DMA_ERROR if no valid BD available to put into current
 *		BD register
 *
 * @note	This function can be used only when DMA is in SG mode
 *
 *****************************************************************************/
Start a DMA channel, updates current descriptors and
Allow DMA transactions to commence on a given channel if descriptors are
ready to be processed.

After a DMA channel is started, it is not halted, and it is idle (no active
DMA transfers).

@param       RingPtr is the Channel instance to be worked on

@return
- XST_SUCCESS upon success
- XST_DMA_ERROR if no valid BD available to put into current
BD register

@note        This function can be used only when DMA is in SG mode
Start a DMA channel updates current descriptors and Allow DMA transactions to commence on a given channel if descriptors are ready to be processed . After a DMA channel is started it is not halted and it is idle ( no active DMA transfers ) . @param RingPtr is the Channel instance to be worked on @return - XST_SUCCESS upon success - XST_DMA_ERROR if no valid BD available to put into current BD register @note This function can be used only when DMA is in SG mode
int XAxiDma_BdRingStart(XAxiDma_BdRing * RingPtr)
{
	int Status;
	Status = XAxiDma_UpdateBdRingCDesc(RingPtr);
	if (Status != XST_SUCCESS) {
		 xdbg_printf(XDBG_DEBUG_ERROR, "BdRingStart: "
			"Updating Current Descriptor Failed\n\r");
		return Status;
	}
	Status = XAxiDma_StartBdRingHw(RingPtr);
	if (Status != XST_SUCCESS) {
		 xdbg_printf(XDBG_DEBUG_ERROR, "BdRingStart: "
			"Starting Hardware Failed\n\r");
		return Status;
	}
	return XST_SUCCESS;
}
int XAxiDma_BdRingStart ( XAxiDma_BdRing * RingPtr ) { int Status ; Status = XAxiDma_UpdateBdRingCDesc ( RingPtr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_ERROR , " " " \n \r " ) ; return Status ; } Status = XAxiDma_StartBdRingHw ( RingPtr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_ERROR , " " " \n \r " ) ; return Status ; } return XST_SUCCESS ; }
Start a DMA channel, updates current descriptors and
 Allow DMA transactions to commence on a given channel if descriptors are
 ready to be processed.
Start a DMA channel updates current descriptors and Allow DMA transactions to commence on a given channel if descriptors are ready to be processed .