XilinxProcessorIPLib/drivers/axidma/src/xaxidma_bdring.c
void XAxiDma_BdRingGetCoalesce(XAxiDma_BdRing * RingPtr,
			      u32 *CounterPtr, u32 *TimerPtr)
{
	u32 Cr;

	Cr = XAxiDma_ReadReg(RingPtr->ChanBase, XAXIDMA_CR_OFFSET);

	*CounterPtr = ((Cr & XAXIDMA_COALESCE_MASK) >> XAXIDMA_COALESCE_SHIFT);
	*TimerPtr = ((Cr & XAXIDMA_DELAY_MASK) >> XAXIDMA_DELAY_SHIFT);
}
/*****************************************************************************/
/**
 * Retrieve current interrupt coalescing parameters from the given descriptor
 * ring channel.
 *
 * @param	RingPtr is a pointer to the descriptor ring instance to be
 *		worked on.
 * @param	CounterPtr points to a memory location where the current packet
 *		counter will be written.
 * @param	TimerPtr points to a memory location where the current
 *		waitbound timer will be written.
 *
 * @return	The passed in parameters, CounterPtr and TimerPtr, holds the
 *		references to the return values.
 *
 * @note	This function can be used only when DMA is in SG mode
 *
 *****************************************************************************/
Retrieve current interrupt coalescing parameters from the given descriptor
ring channel.

@param       RingPtr is a pointer to the descriptor ring instance to be
worked on.
@param       CounterPtr points to a memory location where the current packet
counter will be written.
@param       TimerPtr points to a memory location where the current
waitbound timer will be written.

@return      The passed in parameters, CounterPtr and TimerPtr, holds the
references to the return values.

@note        This function can be used only when DMA is in SG mode
Retrieve current interrupt coalescing parameters from the given descriptor ring channel . @param RingPtr is a pointer to the descriptor ring instance to be worked on . @param CounterPtr points to a memory location where the current packet counter will be written . @param TimerPtr points to a memory location where the current waitbound timer will be written . @return The passed in parameters CounterPtr and TimerPtr holds the references to the return values . @note This function can be used only when DMA is in SG mode
void XAxiDma_BdRingGetCoalesce(XAxiDma_BdRing * RingPtr,
			      u32 *CounterPtr, u32 *TimerPtr)
{
	u32 Cr;
	Cr = XAxiDma_ReadReg(RingPtr->ChanBase, XAXIDMA_CR_OFFSET);
	*CounterPtr = ((Cr & XAXIDMA_COALESCE_MASK) >> XAXIDMA_COALESCE_SHIFT);
	*TimerPtr = ((Cr & XAXIDMA_DELAY_MASK) >> XAXIDMA_DELAY_SHIFT);
}
void XAxiDma_BdRingGetCoalesce ( XAxiDma_BdRing * RingPtr , u32 * CounterPtr , u32 * TimerPtr ) { u32 Cr ; Cr = XAxiDma_ReadReg ( RingPtr -> ChanBase , XAXIDMA_CR_OFFSET ) ; * CounterPtr = ( ( Cr & XAXIDMA_COALESCE_MASK ) >> XAXIDMA_COALESCE_SHIFT ) ; * TimerPtr = ( ( Cr & XAXIDMA_DELAY_MASK ) >> XAXIDMA_DELAY_SHIFT ) ; }
Retrieve current interrupt coalescing parameters from the given descriptor
 ring channel.
Retrieve current interrupt coalescing parameters from the given descriptor ring channel .