XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
u64 XAieLib_MemGetSize(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	return XAieLib_MemInstPtr->Size -
		((u64)XAieLib_MemInstPtr->Vaddr % XAIELIB_SHIM_MEM_ALIGN);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemGetSize(MemInstPtr);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to return the size of the memory instance
*
* @param	XAieLib_MemInstPtr: Memory instance pointer.
*
* @return	size of the memory instance. 0 if not supported.
*
* @note		None.
*
*******************************************************************************/
This is the memory function to return the size of the memory instance
This is the memory function to return the size of the memory instance
u64 XAieLib_MemGetSize(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	return XAieLib_MemInstPtr->Size -
		((u64)XAieLib_MemInstPtr->Vaddr % XAIELIB_SHIM_MEM_ALIGN);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemGetSize(MemInstPtr);
#endif
}
u64 XAieLib_MemGetSize ( XAieLib_MemInst * XAieLib_MemInstPtr ) { #ifdef __AIESIM__ return 0 ; #elif defined __AIEBAREMTL__ return XAieLib_MemInstPtr -> Size - ( ( u64 ) XAieLib_MemInstPtr -> Vaddr % XAIELIB_SHIM_MEM_ALIGN ) ; #else XAieIO_Mem * MemInstPtr = ( XAieIO_Mem * ) XAieLib_MemInstPtr ; return XAieIO_MemGetSize ( MemInstPtr ) ; #endif }
This is the memory function to return the size of the memory instance
This is the memory function to return the size of the memory instance