XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
u64 XAieLib_MemGetVaddr(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	return ((u64)XAieLib_MemInstPtr->Vaddr + XAIELIB_SHIM_MEM_ALIGN - 1) &
		~(XAIELIB_SHIM_MEM_ALIGN - 1);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemGetVaddr(MemInstPtr);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to return the virtual address of
* the memory instance
*
* @param	XAieLib_MemInstPtr: Memory instance pointer.
*
* @return	Mapped virtual address of the memory instance.
* 0 if not supported.
*
* @note		None.
*
*******************************************************************************/
This is the memory function to return the virtual address of
the memory instance
This is the memory function to return the virtual address of the memory instance
u64 XAieLib_MemGetVaddr(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	return ((u64)XAieLib_MemInstPtr->Vaddr + XAIELIB_SHIM_MEM_ALIGN - 1) &
		~(XAIELIB_SHIM_MEM_ALIGN - 1);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemGetVaddr(MemInstPtr);
#endif
}
u64 XAieLib_MemGetVaddr ( XAieLib_MemInst * XAieLib_MemInstPtr ) { #ifdef __AIESIM__ return 0 ; #elif defined __AIEBAREMTL__ return ( ( u64 ) XAieLib_MemInstPtr -> Vaddr + XAIELIB_SHIM_MEM_ALIGN - 1 ) & ~ ( XAIELIB_SHIM_MEM_ALIGN - 1 ) ; #else XAieIO_Mem * MemInstPtr = ( XAieIO_Mem * ) XAieLib_MemInstPtr ; return XAieIO_MemGetVaddr ( MemInstPtr ) ; #endif }
This is the memory function to return the virtual address of
the memory instance
This is the memory function to return the virtual address of the memory instance