XilinxProcessorIPLib/drivers/aienginev2/src/io_backend/privilege/xaie_io_privilege.c
static AieRC _XAie_PrivilegeSetColReset(XAie_DevInst *DevInst,
		XAie_LocType Loc, u8 RstEnable)
{
	u8 TileType;
	u32 FldVal;
	u64 RegAddr;
	const XAie_PlIfMod *PlIfMod;

	TileType = DevInst->DevOps->GetTTypefromLoc(DevInst, Loc);
	PlIfMod = DevInst->DevProp.DevMod[TileType].PlIfMod;
	RegAddr = PlIfMod->ColRstOff +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col);
	FldVal = XAie_SetField(RstEnable,
			PlIfMod->ColRst.Lsb,
			PlIfMod->ColRst.Mask);

	return XAie_Write32(DevInst, RegAddr, FldVal);
}
/************************** Function Definitions *****************************/
/*****************************************************************************/
/**
*
* This API set the tile column reset
*
* @param	DevInst: Device Instance
* @param	Loc: Location of AIE SHIM tile
* @param	RstEnable: XAIE_ENABLE to assert reset, XAIE_DISABLE to
*			   deassert reset.
*
* @return       XAIE_OK on success, error code on failure
*
* @note		It is not required to check the DevInst and the Loc tile type
*		as the caller function should provide the correct value.
*		This function is internal to this file.
*
******************************************************************************/
Function Definitions
This API set the tile column reset
Function Definitions This API set the tile column reset
static AieRC _XAie_PrivilegeSetColReset(XAie_DevInst *DevInst,
		XAie_LocType Loc, u8 RstEnable)
{
	u8 TileType;
	u32 FldVal;
	u64 RegAddr;
	const XAie_PlIfMod *PlIfMod;
	TileType = DevInst->DevOps->GetTTypefromLoc(DevInst, Loc);
	PlIfMod = DevInst->DevProp.DevMod[TileType].PlIfMod;
	RegAddr = PlIfMod->ColRstOff +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col);
	FldVal = XAie_SetField(RstEnable,
			PlIfMod->ColRst.Lsb,
			PlIfMod->ColRst.Mask);
	return XAie_Write32(DevInst, RegAddr, FldVal);
}
static AieRC _XAie_PrivilegeSetColReset ( XAie_DevInst * DevInst , XAie_LocType Loc , u8 RstEnable ) { u8 TileType ; u32 FldVal ; u64 RegAddr ; const XAie_PlIfMod * PlIfMod ; TileType = DevInst -> DevOps -> GetTTypefromLoc ( DevInst , Loc ) ; PlIfMod = DevInst -> DevProp . DevMod [ TileType ] . PlIfMod ; RegAddr = PlIfMod -> ColRstOff + _XAie_GetTileAddr ( DevInst , Loc . Row , Loc . Col ) ; FldVal = XAie_SetField ( RstEnable , PlIfMod -> ColRst . Lsb , PlIfMod -> ColRst . Mask ) ; return XAie_Write32 ( DevInst , RegAddr , FldVal ) ; }
Function Definitions
This API set the tile column reset
Function Definitions This API set the tile column reset