XilinxProcessorIPLib/drivers/axicdma/src/xaxicdma_bdring.c
void XAxiCdma_BdSetTailBdPtr(XAxiCdma *InstancePtr, UINTPTR TailBdPtr)
{
    XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_TDESC_OFFSET,
                      TailBdPtr & XAXICDMA_DESC_LSB_MASK);
    if (InstancePtr->AddrWidth > 32)
            XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_TDESC_MSB_OFFSET,
                              UPPER_32_BITS(TailBdPtr));
        return;
}
/*****************************************************************************/
/**
 * This function set the Tail BD ptr of a BD
 *
 * @param       BdPtr is the pointer to the BD to set the Next BD ptr
 * @param       Tail Bd is the value of Tail BD ptr
 *
 * @return      None
 *
 * @note        None.
 *
 *****************************************************************************/
This function set the Tail BD ptr of a BD
@param       BdPtr is the pointer to the BD to set the Next BD ptr
@param       Tail Bd is the value of Tail BD ptr

@return      None

@note        None.
This function set the Tail BD ptr of a BD @param BdPtr is the pointer to the BD to set the Next BD ptr @param Tail Bd is the value of Tail BD ptr @return None @note None .
void XAxiCdma_BdSetTailBdPtr(XAxiCdma *InstancePtr, UINTPTR TailBdPtr)
{
    XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_TDESC_OFFSET,
                      TailBdPtr & XAXICDMA_DESC_LSB_MASK);
    if (InstancePtr->AddrWidth > 32)
            XAxiCdma_WriteReg(InstancePtr->BaseAddr, XAXICDMA_TDESC_MSB_OFFSET,
                              UPPER_32_BITS(TailBdPtr));
        return;
}
void XAxiCdma_BdSetTailBdPtr ( XAxiCdma * InstancePtr , UINTPTR TailBdPtr ) { XAxiCdma_WriteReg ( InstancePtr -> BaseAddr , XAXICDMA_TDESC_OFFSET , TailBdPtr & XAXICDMA_DESC_LSB_MASK ) ; if ( InstancePtr -> AddrWidth > 32 ) XAxiCdma_WriteReg ( InstancePtr -> BaseAddr , XAXICDMA_TDESC_MSB_OFFSET , UPPER_32_BITS ( TailBdPtr ) ) ; return ; }
This function set the Tail BD ptr of a BD
 @param       BdPtr is the pointer to the BD to set the Next BD ptr
 @param       Tail Bd is the value of Tail BD ptr
This function set the Tail BD ptr of a BD @param BdPtr is the pointer to the BD to set the Next BD ptr @param Tail Bd is the value of Tail BD ptr