XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_pl.c
u32 XAieTile_PlIntcL1Mask(XAieGbl_Tile *TileInstPtr, u8 SwitchAB)
{
	u32 RegVal;
	u64 RegAddr;

	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType != XAIEGBL_TILE_TYPE_AIETILE);
	XAie_AssertNonvoid(SwitchAB == XAIETILE_PL_BLOCK_SWITCHA ||
			   SwitchAB == XAIETILE_PL_BLOCK_SWITCHB);

	RegAddr = TileInstPtr->TileAddr + Shim_1stIrqCntr.MaskOff;
	RegAddr += SwitchAB * Shim_1stIrqCntr.SwitchOff;
	RegVal = XAieGbl_Read32(RegAddr);

	return XAie_GetField(RegVal, Shim_1stIrqCntr.IrqsMask.Lsb,
			     Shim_1stIrqCntr.IrqsMask.Mask);
}
/************************** Function Definitions *****************************/
/*****************************************************************************/
/**
*
* This API is used to read the current value of the 1st level interrupt
* controller mask.
*
* @param	TileInstPtr - Pointer to the Tile instance.
* @param	SwitchAB - Flag to indicate if it's the A or B block. Should
* 		be one of XAIETILE_EVENT_BLOCK_SWITCHA
*		or XAIETILE_EVENT_BLOCK_SWITCHB.
*
* @return	Current value of the mask
*
* @note		None.
*
*******************************************************************************/
Function Definitions
This API is used to read the current value of the 1st level interrupt
controller mask.
Function Definitions This API is used to read the current value of the 1st level interrupt controller mask .
u32 XAieTile_PlIntcL1Mask(XAieGbl_Tile *TileInstPtr, u8 SwitchAB)
{
	u32 RegVal;
	u64 RegAddr;
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType != XAIEGBL_TILE_TYPE_AIETILE);
	XAie_AssertNonvoid(SwitchAB == XAIETILE_PL_BLOCK_SWITCHA ||
			   SwitchAB == XAIETILE_PL_BLOCK_SWITCHB);
	RegAddr = TileInstPtr->TileAddr + Shim_1stIrqCntr.MaskOff;
	RegAddr += SwitchAB * Shim_1stIrqCntr.SwitchOff;
	RegVal = XAieGbl_Read32(RegAddr);
	return XAie_GetField(RegVal, Shim_1stIrqCntr.IrqsMask.Lsb,
			     Shim_1stIrqCntr.IrqsMask.Mask);
}
u32 XAieTile_PlIntcL1Mask ( XAieGbl_Tile * TileInstPtr , u8 SwitchAB ) { u32 RegVal ; u64 RegAddr ; XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; XAie_AssertNonvoid ( TileInstPtr -> TileType != XAIEGBL_TILE_TYPE_AIETILE ) ; XAie_AssertNonvoid ( SwitchAB == XAIETILE_PL_BLOCK_SWITCHA || SwitchAB == XAIETILE_PL_BLOCK_SWITCHB ) ; RegAddr = TileInstPtr -> TileAddr + Shim_1stIrqCntr . MaskOff ; RegAddr += SwitchAB * Shim_1stIrqCntr . SwitchOff ; RegVal = XAieGbl_Read32 ( RegAddr ) ; return XAie_GetField ( RegVal , Shim_1stIrqCntr . IrqsMask . Lsb , Shim_1stIrqCntr . IrqsMask . Mask ) ; }
Function Definitions
This API is used to read the current value of the 1st level interrupt
controller mask.
Function Definitions This API is used to read the current value of the 1st level interrupt controller mask .