XilinxProcessorIPLib/drivers/mcdma/src/xmcdma.c
void XMcdma_DumpChanRegs(XMcdma_ChanCtrl *Chan) {
	u32 RegBase = Chan->ChanBase;
	u32 Offset;

	Offset = (Chan->Chan_id - 1) * XMCDMA_NXTCHAN_OFFSET;

	xil_printf("Dump registers %x:\r\n", (unsigned int)RegBase);
	xil_printf("Control REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CR_OFFSET + Offset));
	xil_printf("Status REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_SR_OFFSET + Offset));

	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CDESC_OFFSET + Offset));
	xil_printf("Cur BD MSB REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CDESC_MSB_OFFSET + Offset));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_TDESC_OFFSET + Offset));
	xil_printf("Tail BD MSB  REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_TDESC_MSB_OFFSET + Offset));

	xil_printf("Packet Drop REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_PKTDROP_OFFSET + Offset));
	xil_printf("\r\n");
}
/*****************************************************************************/
/**
 * Dump the registers for a channel.
 *
 * @param	Chan is the MCDMA Channel to be worked on.
 *
 * @return	None
 *
 *****************************************************************************/
Dump the registers for a channel.
@param       Chan is the MCDMA Channel to be worked on.

@return      None
Dump the registers for a channel . @param Chan is the MCDMA Channel to be worked on . @return None
void XMcdma_DumpChanRegs(XMcdma_ChanCtrl *Chan) {
	u32 RegBase = Chan->ChanBase;
	u32 Offset;
	Offset = (Chan->Chan_id - 1) * XMCDMA_NXTCHAN_OFFSET;
	xil_printf("Dump registers %x:\r\n", (unsigned int)RegBase);
	xil_printf("Control REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CR_OFFSET + Offset));
	xil_printf("Status REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_SR_OFFSET + Offset));
	xil_printf("Cur BD REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CDESC_OFFSET + Offset));
	xil_printf("Cur BD MSB REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_CDESC_MSB_OFFSET + Offset));
	xil_printf("Tail BD REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_TDESC_OFFSET + Offset));
	xil_printf("Tail BD MSB  REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_TDESC_MSB_OFFSET + Offset));
	xil_printf("Packet Drop REG: %08x\r\n",
		(unsigned int)XMcdma_ReadReg(RegBase, XMCDMA_PKTDROP_OFFSET + Offset));
	xil_printf("\r\n");
}
void XMcdma_DumpChanRegs ( XMcdma_ChanCtrl * Chan ) { u32 RegBase = Chan -> ChanBase ; u32 Offset ; Offset = ( Chan -> Chan_id - 1 ) * XMCDMA_NXTCHAN_OFFSET ; xil_printf ( " \r \n " , ( unsigned int ) RegBase ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_CR_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_SR_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_CDESC_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_CDESC_MSB_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_TDESC_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_TDESC_MSB_OFFSET + Offset ) ) ; xil_printf ( " \r \n " , ( unsigned int ) XMcdma_ReadReg ( RegBase , XMCDMA_PKTDROP_OFFSET + Offset ) ) ; xil_printf ( " \r \n " ) ; }
Dump the registers for a channel.
Dump the registers for a channel .