XilinxProcessorIPLib/drivers/axicdma/src/xaxicdma_bdring.c
void XAxiCdma_BdSetCurBdPtr(XAxiCdma *InstancePtr, UINTPTR CurBdPtr)
{
	XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_CDESC_OFFSET,
                          (CurBdPtr & XAXICDMA_DESC_LSB_MASK));
    if (InstancePtr->AddrWidth > 32)
         XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_CDESC_MSB_OFFSET,
			   UPPER_32_BITS(CurBdPtr));
        return;
}
/*****************************************************************************/
/**
 * This function set the Current BD ptr of a BD
 *
 * @param       BdPtr is the pointer to the BD to set the Next BD ptr
 * @param       CurBdPtr is the valud of Current BD ptr
 *
 * @return      None
 *
 * @note        None.
 *
 *****************************************************************************/
This function set the Current BD ptr of a BD
@param       BdPtr is the pointer to the BD to set the Next BD ptr
@param       CurBdPtr is the valud of Current BD ptr

@return      None

@note        None.
This function set the Current BD ptr of a BD @param BdPtr is the pointer to the BD to set the Next BD ptr @param CurBdPtr is the valud of Current BD ptr @return None @note None .
void XAxiCdma_BdSetCurBdPtr(XAxiCdma *InstancePtr, UINTPTR CurBdPtr)
{
	XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_CDESC_OFFSET,
                          (CurBdPtr & XAXICDMA_DESC_LSB_MASK));
    if (InstancePtr->AddrWidth > 32)
         XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_CDESC_MSB_OFFSET,
			   UPPER_32_BITS(CurBdPtr));
        return;
}
void XAxiCdma_BdSetCurBdPtr ( XAxiCdma * InstancePtr , UINTPTR CurBdPtr ) { XAxiCdma_WriteReg ( InstancePtr -> BaseAddr , XAXICDMA_CDESC_OFFSET , ( CurBdPtr & XAXICDMA_DESC_LSB_MASK ) ) ; if ( InstancePtr -> AddrWidth > 32 ) XAxiCdma_WriteReg ( InstancePtr -> BaseAddr , XAXICDMA_CDESC_MSB_OFFSET , UPPER_32_BITS ( CurBdPtr ) ) ; return ; }
This function set the Current BD ptr of a BD
 @param       BdPtr is the pointer to the BD to set the Next BD ptr
 @param       CurBdPtr is the valud of Current BD ptr
This function set the Current BD ptr of a BD @param BdPtr is the pointer to the BD to set the Next BD ptr @param CurBdPtr is the valud of Current BD ptr