XilinxProcessorIPLib/drivers/axidma/src/xaxidma_bdring.c
void XAxiDma_BdRingDumpRegs(XAxiDma_BdRing *RingPtr) {
	UINTPTR RegBase = RingPtr->ChanBase;
	int RingIndex = RingPtr->RingIndex;

	xil_printf("Dump registers %p:\r\n", (void *)RegBase);
	xil_printf("Control REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_CR_OFFSET));
	xil_printf("Status REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_SR_OFFSET));

	if (RingIndex) {
	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase,
		XAXIDMA_RX_CDESC0_OFFSET + ((RingIndex - 1) *
		XAXIDMA_RX_NDESC_OFFSET)));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase,
		XAXIDMA_RX_TDESC0_OFFSET + ((RingIndex - 1) *
		XAXIDMA_RX_NDESC_OFFSET)));
	}
	else {
	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_CDESC_OFFSET));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_TDESC_OFFSET));
	}

	xil_printf("\r\n");
}
/*****************************************************************************/
/**
 * Dump the registers for a channel.
 *
 * @param	RingPtr is a pointer to the descriptor ring to be worked on.
 *
 * @return	None
 *
 * @note	This function can be used only when DMA is in SG mode
 *
 *****************************************************************************/
Dump the registers for a channel.
@param       RingPtr is a pointer to the descriptor ring to be worked on.

@return      None

@note        This function can be used only when DMA is in SG mode
Dump the registers for a channel . @param RingPtr is a pointer to the descriptor ring to be worked on . @return None @note This function can be used only when DMA is in SG mode
void XAxiDma_BdRingDumpRegs(XAxiDma_BdRing *RingPtr) {
	UINTPTR RegBase = RingPtr->ChanBase;
	int RingIndex = RingPtr->RingIndex;
	xil_printf("Dump registers %p:\r\n", (void *)RegBase);
	xil_printf("Control REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_CR_OFFSET));
	xil_printf("Status REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_SR_OFFSET));
	if (RingIndex) {
	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase,
		XAXIDMA_RX_CDESC0_OFFSET + ((RingIndex - 1) *
		XAXIDMA_RX_NDESC_OFFSET)));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase,
		XAXIDMA_RX_TDESC0_OFFSET + ((RingIndex - 1) *
		XAXIDMA_RX_NDESC_OFFSET)));
	}
	else {
	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_CDESC_OFFSET));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XAxiDma_ReadReg(RegBase, XAXIDMA_TDESC_OFFSET));
	}
	xil_printf("\r\n");
}
void XAxiDma_BdRingDumpRegs ( XAxiDma_BdRing * RingPtr ) { UINTPTR RegBase = RingPtr -> ChanBase ; int RingIndex = RingPtr -> RingIndex ; xil_printf ( " \r \n " , ( void * ) RegBase ) ; xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_CR_OFFSET ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_SR_OFFSET ) ) ; if ( RingIndex ) { xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_RX_CDESC0_OFFSET + ( ( RingIndex - 1 ) * XAXIDMA_RX_NDESC_OFFSET ) ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_RX_TDESC0_OFFSET + ( ( RingIndex - 1 ) * XAXIDMA_RX_NDESC_OFFSET ) ) ) ; } else { xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_CDESC_OFFSET ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XAxiDma_ReadReg ( RegBase , XAXIDMA_TDESC_OFFSET ) ) ; } xil_printf ( " \r \n " ) ; }
Dump the registers for a channel.
Dump the registers for a channel .