XilinxProcessorIPLib/drivers/aienginev2/src/core/xaie_core.c
AieRC XAie_CoreWaitForDisable(XAie_DevInst *DevInst, XAie_LocType Loc,
		u32 TimeOut)
{
	const XAie_CoreMod *CoreMod;
	u32 Mask;
	u32 Value;

	if((DevInst == XAIE_NULL) ||
			(DevInst->IsReady != XAIE_COMPONENT_IS_READY)) {
		XAIE_ERROR("Invalid Device Instance\n");
		return XAIE_INVALID_ARGS;
	}

	CoreMod = DevInst->DevProp.DevMod[XAIEGBL_TILE_TYPE_AIETILE].CoreMod;
	Mask = CoreMod->CoreSts->En.Mask;
	Value = 0U << CoreMod->CoreSts->En.Lsb;
	return _XAie_CoreWaitStatus(DevInst, Loc, TimeOut, Mask, Value);
}
/*****************************************************************************/
/*
*
* This API implements a blocking wait function to check the core to be in
* disable state for a AIE tile. API comes out of the loop when core status
* changes to disable or the timeout elapses, whichever happens first.
*
* @param	DevInst: Device Instance
* @param	Loc: Location of the AIE tile.
* @param	TimeOut: TimeOut in usecs. If set to 0, the default timeout will
*		be set to 500us. The TimeOut value passed is per tile.
* @return	XAIE_OK on success, Error code on failure.
*
* @note		None.
*
******************************************************************************/
This API implements a blocking wait function to check the core to be in
disable state for a AIE tile. API comes out of the loop when core status
changes to disable or the timeout elapses, whichever happens first.
This API implements a blocking wait function to check the core to be in disable state for a AIE tile . API comes out of the loop when core status changes to disable or the timeout elapses whichever happens first .
AieRC XAie_CoreWaitForDisable(XAie_DevInst *DevInst, XAie_LocType Loc,
		u32 TimeOut)
{
	const XAie_CoreMod *CoreMod;
	u32 Mask;
	u32 Value;
	if((DevInst == XAIE_NULL) ||
			(DevInst->IsReady != XAIE_COMPONENT_IS_READY)) {
		XAIE_ERROR("Invalid Device Instance\n");
		return XAIE_INVALID_ARGS;
	}
	CoreMod = DevInst->DevProp.DevMod[XAIEGBL_TILE_TYPE_AIETILE].CoreMod;
	Mask = CoreMod->CoreSts->En.Mask;
	Value = 0U << CoreMod->CoreSts->En.Lsb;
	return _XAie_CoreWaitStatus(DevInst, Loc, TimeOut, Mask, Value);
}
AieRC XAie_CoreWaitForDisable ( XAie_DevInst * DevInst , XAie_LocType Loc , u32 TimeOut ) { const XAie_CoreMod * CoreMod ; u32 Mask ; u32 Value ; if ( ( DevInst == XAIE_NULL ) || ( DevInst -> IsReady != XAIE_COMPONENT_IS_READY ) ) { XAIE_ERROR ( " \n " ) ; return XAIE_INVALID_ARGS ; } CoreMod = DevInst -> DevProp . DevMod [ XAIEGBL_TILE_TYPE_AIETILE ] . CoreMod ; Mask = CoreMod -> CoreSts -> En . Mask ; Value = 0U << CoreMod -> CoreSts -> En . Lsb ; return _XAie_CoreWaitStatus ( DevInst , Loc , TimeOut , Mask , Value ) ; }
This API implements a blocking wait function to check the core to be in
disable state for a AIE tile.
This API implements a blocking wait function to check the core to be in disable state for a AIE tile .