XilinxProcessorIPLib/drivers/axidma/src/xaxidma_bd.c
void XAxiDma_DumpBd(XAxiDma_Bd* BdPtr)
{

	xil_printf("Dump BD %x:\r\n", (UINTPTR)BdPtr);
	xil_printf("\tNext Bd Ptr: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_NDESC_OFFSET));
	xil_printf("\tBuff addr: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_BUFA_OFFSET));
	xil_printf("\tMCDMA Fields: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_MCCTL_OFFSET));
	xil_printf("\tVSIZE_STRIDE: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr,
					XAXIDMA_BD_STRIDE_VSIZE_OFFSET));
	xil_printf("\tContrl len: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_CTRL_LEN_OFFSET));
	xil_printf("\tStatus: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_STS_OFFSET));

	xil_printf("\tAPP 0: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR0_OFFSET));
	xil_printf("\tAPP 1: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR1_OFFSET));
	xil_printf("\tAPP 2: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR2_OFFSET));
	xil_printf("\tAPP 3: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR3_OFFSET));
	xil_printf("\tAPP 4: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR4_OFFSET));

	xil_printf("\tSW ID: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_ID_OFFSET));
	xil_printf("\tStsCtrl: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr,
	           XAXIDMA_BD_HAS_STSCNTRL_OFFSET));
	xil_printf("\tDRE: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_HAS_DRE_OFFSET));

	xil_printf("\r\n");
}
/*****************************************************************************/
/**
 * Dump the fields of a BD.
 *
 * @param	BdPtr is the BD to operate on.
 *
 * @return	None
 *
 * @note	This function can be used only when DMA is in SG mode
 *
 *****************************************************************************/
Dump the fields of a BD.
@param       BdPtr is the BD to operate on.

@return      None

@note        This function can be used only when DMA is in SG mode
Dump the fields of a BD . @param BdPtr is the BD to operate on . @return None @note This function can be used only when DMA is in SG mode
void XAxiDma_DumpBd(XAxiDma_Bd* BdPtr)
{
	xil_printf("Dump BD %x:\r\n", (UINTPTR)BdPtr);
	xil_printf("\tNext Bd Ptr: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_NDESC_OFFSET));
	xil_printf("\tBuff addr: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_BUFA_OFFSET));
	xil_printf("\tMCDMA Fields: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_MCCTL_OFFSET));
	xil_printf("\tVSIZE_STRIDE: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr,
					XAXIDMA_BD_STRIDE_VSIZE_OFFSET));
	xil_printf("\tContrl len: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_CTRL_LEN_OFFSET));
	xil_printf("\tStatus: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_STS_OFFSET));
	xil_printf("\tAPP 0: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR0_OFFSET));
	xil_printf("\tAPP 1: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR1_OFFSET));
	xil_printf("\tAPP 2: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR2_OFFSET));
	xil_printf("\tAPP 3: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR3_OFFSET));
	xil_printf("\tAPP 4: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_USR4_OFFSET));
	xil_printf("\tSW ID: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_ID_OFFSET));
	xil_printf("\tStsCtrl: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr,
	           XAXIDMA_BD_HAS_STSCNTRL_OFFSET));
	xil_printf("\tDRE: %x\r\n",
	    (unsigned int)XAxiDma_BdRead(BdPtr, XAXIDMA_BD_HAS_DRE_OFFSET));
	xil_printf("\r\n");
}
void XAxiDma_DumpBd ( XAxiDma_Bd * BdPtr ) { xil_printf ( " \r \n " , ( UINTPTR ) BdPtr ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_NDESC_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_BUFA_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_MCCTL_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_STRIDE_VSIZE_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_CTRL_LEN_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_STS_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_USR0_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_USR1_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_USR2_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_USR3_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_USR4_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_ID_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_HAS_STSCNTRL_OFFSET ) ) ; xil_printf ( " \t \r \n " , ( unsigned int ) XAxiDma_BdRead ( BdPtr , XAXIDMA_BD_HAS_DRE_OFFSET ) ) ; xil_printf ( " \r \n " ) ; }
Dump the fields of a BD.
Dump the fields of a BD .