XilinxProcessorIPLib/drivers/aienginev2/src/dma/xaie_dma_aieml.c
AieRC _XAieMl_MemTileDmaCheckBdChValidity(u8 BdNum, u8 ChNum)
{
	if((BdNum < 24U) && ((ChNum % 2U) == 0U))
		return XAIE_OK;
	else if((BdNum >= 24U) && ((ChNum % 2U) == 1U))
		return XAIE_OK;

	XAIE_ERROR("Invalid BdNum, ChNum combination\n");
	return XAIE_INVALID_ARGS;
}
/*****************************************************************************/
/**
*
* This API is used to check the validity of Bd number and Channel number
* combination.
*
* @param	BdNum: Buffer descriptor number.
* @param	ChNum: Channel number of the DMA.
* @param        TimeOutUs - Minimum timeout value in micro seconds.
*
* @return	XAIE_OK on success, Error code on failure.
*
* @note		Internal only. For AIEML Mem Tiles only.
*
******************************************************************************/
This API is used to check the validity of Bd number and Channel number
combination.
This API is used to check the validity of Bd number and Channel number combination .
AieRC _XAieMl_MemTileDmaCheckBdChValidity(u8 BdNum, u8 ChNum)
{
	if((BdNum < 24U) && ((ChNum % 2U) == 0U))
		return XAIE_OK;
	else if((BdNum >= 24U) && ((ChNum % 2U) == 1U))
		return XAIE_OK;
	XAIE_ERROR("Invalid BdNum, ChNum combination\n");
	return XAIE_INVALID_ARGS;
}
AieRC _XAieMl_MemTileDmaCheckBdChValidity ( u8 BdNum , u8 ChNum ) { if ( ( BdNum < 24U ) && ( ( ChNum % 2U ) == 0U ) ) return XAIE_OK ; else if ( ( BdNum >= 24U ) && ( ( ChNum % 2U ) == 1U ) ) return XAIE_OK ; XAIE_ERROR ( " \n " ) ; return XAIE_INVALID_ARGS ; }
This API is used to check the validity of Bd number and Channel number
combination.
This API is used to check the validity of Bd number and Channel number combination .