XilinxProcessorIPLib/drivers/aienginev2/src/io_backend/privilege/xaie_io_privilege.c
AieRC _XAie_PrivilegeRequestTiles(XAie_DevInst *DevInst,
		XAie_BackendTilesArray *Args)
{
	AieRC RC;
	/* TODO: Configure previlege registers only for non-AIE devices. */
	if(DevInst->DevProp.DevGen != XAIE_DEV_GEN_AIE) {
		RC = _XAie_PrivilegeSetPartProtectedRegs(DevInst, XAIE_ENABLE);
		if(RC != XAIE_OK) {
			XAIE_ERROR("Failed to initialize partition, enable"
					" protected registers failed.\n");
			 return RC;
		}
	}

	RC = DevInst->DevOps->RequestTiles(DevInst, Args);
	if(RC != XAIE_OK) {
		XAIE_ERROR("Request tiles failed\n");
	}

	if(DevInst->DevProp.DevGen != XAIE_DEV_GEN_AIE)
		_XAie_PrivilegeSetPartProtectedRegs(DevInst, XAIE_DISABLE);

	return RC;
}
/*****************************************************************************/
/**
* This API enables clock for all the tiles passed as argument to this API.
*
* @param	DevInst: AI engine partition device instance pointer
* @param	Args: Backend tile args
*
* @return       XAIE_OK on success, error code on failure
*
* @note		Internal only.
*
*******************************************************************************/
This API enables clock for all the tiles passed as argument to this API.
This API enables clock for all the tiles passed as argument to this API .
AieRC _XAie_PrivilegeRequestTiles(XAie_DevInst *DevInst,
		XAie_BackendTilesArray *Args)
{
	AieRC RC;
	if(DevInst->DevProp.DevGen != XAIE_DEV_GEN_AIE) {
		RC = _XAie_PrivilegeSetPartProtectedRegs(DevInst, XAIE_ENABLE);
		if(RC != XAIE_OK) {
			XAIE_ERROR("Failed to initialize partition, enable"
					" protected registers failed.\n");
			 return RC;
		}
	}
	RC = DevInst->DevOps->RequestTiles(DevInst, Args);
	if(RC != XAIE_OK) {
		XAIE_ERROR("Request tiles failed\n");
	}
	if(DevInst->DevProp.DevGen != XAIE_DEV_GEN_AIE)
		_XAie_PrivilegeSetPartProtectedRegs(DevInst, XAIE_DISABLE);
	return RC;
}
AieRC _XAie_PrivilegeRequestTiles ( XAie_DevInst * DevInst , XAie_BackendTilesArray * Args ) { AieRC RC ; if ( DevInst -> DevProp . DevGen != XAIE_DEV_GEN_AIE ) { RC = _XAie_PrivilegeSetPartProtectedRegs ( DevInst , XAIE_ENABLE ) ; if ( RC != XAIE_OK ) { XAIE_ERROR ( " " " \n " ) ; return RC ; } } RC = DevInst -> DevOps -> RequestTiles ( DevInst , Args ) ; if ( RC != XAIE_OK ) { XAIE_ERROR ( " \n " ) ; } if ( DevInst -> DevProp . DevGen != XAIE_DEV_GEN_AIE ) _XAie_PrivilegeSetPartProtectedRegs ( DevInst , XAIE_DISABLE ) ; return RC ; }
This API enables clock for all the tiles passed as argument to this API.
This API enables clock for all the tiles passed as argument to this API .
/* TODO: Configure previlege registers only for non-AIE devices. */