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

	TileType = DevInst->DevOps->GetTTypefromLoc(DevInst, Loc);
	PlIfMod = DevInst->DevProp.DevMod[TileType].PlIfMod;
	ShimNocAxiMM = PlIfMod->ShimNocAxiMM;
	RegAddr = ShimNocAxiMM->RegOff +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col);
	FldVal = XAie_SetField(BlockSlvEnable,
			ShimNocAxiMM->NsuSlvErr.Lsb,
			ShimNocAxiMM->NsuSlvErr.Mask);
	FldVal |= XAie_SetField(BlockDecEnable,
			ShimNocAxiMM->NsuDecErr.Lsb,
			ShimNocAxiMM->NsuDecErr.Mask);

	return XAie_Write32(DevInst, RegAddr, FldVal);
}
/*****************************************************************************/
/**
*
* This API sets to block NSU AXI MM slave error and decode error based on user
* inputs. If NSU errors is blocked, it will only generate error events.
*
* @param	DevInst: Device Instance
* @param	Loc: Location of AIE SHIM tile
* @param	BlockSlvEnable: XAIE_ENABLE to block NSU AXI MM Slave errors,
*				or XAIE_DISABLE to unblock.
* @param	BlockDecEnable: XAIE_ENABLE to block NSU AXI MM Decode errors,
*				or XAIE_DISABLE to unblock.
*
* @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.
*
******************************************************************************/
This API sets to block NSU AXI MM slave error and decode error based on user
inputs. If NSU errors is blocked, it will only generate error events.
This API sets to block NSU AXI MM slave error and decode error based on user inputs . If NSU errors is blocked it will only generate error events .
static AieRC _XAie_PrivilegeSetBlockAxiMmNsuErr(XAie_DevInst *DevInst,
		XAie_LocType Loc, u8 BlockSlvEnable, u8 BlockDecEnable)
{
	u8 TileType;
	u32 FldVal;
	u64 RegAddr;
	const XAie_PlIfMod *PlIfMod;
	const XAie_ShimNocAxiMMConfig *ShimNocAxiMM;
	TileType = DevInst->DevOps->GetTTypefromLoc(DevInst, Loc);
	PlIfMod = DevInst->DevProp.DevMod[TileType].PlIfMod;
	ShimNocAxiMM = PlIfMod->ShimNocAxiMM;
	RegAddr = ShimNocAxiMM->RegOff +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col);
	FldVal = XAie_SetField(BlockSlvEnable,
			ShimNocAxiMM->NsuSlvErr.Lsb,
			ShimNocAxiMM->NsuSlvErr.Mask);
	FldVal |= XAie_SetField(BlockDecEnable,
			ShimNocAxiMM->NsuDecErr.Lsb,
			ShimNocAxiMM->NsuDecErr.Mask);
	return XAie_Write32(DevInst, RegAddr, FldVal);
}
static AieRC _XAie_PrivilegeSetBlockAxiMmNsuErr ( XAie_DevInst * DevInst , XAie_LocType Loc , u8 BlockSlvEnable , u8 BlockDecEnable ) { u8 TileType ; u32 FldVal ; u64 RegAddr ; const XAie_PlIfMod * PlIfMod ; const XAie_ShimNocAxiMMConfig * ShimNocAxiMM ; TileType = DevInst -> DevOps -> GetTTypefromLoc ( DevInst , Loc ) ; PlIfMod = DevInst -> DevProp . DevMod [ TileType ] . PlIfMod ; ShimNocAxiMM = PlIfMod -> ShimNocAxiMM ; RegAddr = ShimNocAxiMM -> RegOff + _XAie_GetTileAddr ( DevInst , Loc . Row , Loc . Col ) ; FldVal = XAie_SetField ( BlockSlvEnable , ShimNocAxiMM -> NsuSlvErr . Lsb , ShimNocAxiMM -> NsuSlvErr . Mask ) ; FldVal |= XAie_SetField ( BlockDecEnable , ShimNocAxiMM -> NsuDecErr . Lsb , ShimNocAxiMM -> NsuDecErr . Mask ) ; return XAie_Write32 ( DevInst , RegAddr , FldVal ) ; }
This API sets to block NSU AXI MM slave error and decode error based on user
inputs.
This API sets to block NSU AXI MM slave error and decode error based on user inputs .