XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_error.c
static u32 XAieTile_ErrorsDefaultTrap(u8 Module, u8 Error)
{
	if (XAieTile_ErrorsDefaultLog(Module, Error) == 0) {
		return 0;
	} else if (Module == XAIEGBL_MODULE_MEM) {
		switch (Error) {
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_2:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_3:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_4:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_5:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_6:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_7:
			return 0;
		default:
			return 1;
		}
	} else {
		return 1;
	}
}
/*****************************************************************************/
/**
 * This API checks if the error needs to trap application by default.
 *
 * @param	Module - Module type
 *			XAIEGBL_MODULE_CORE, XAIEGBL_MODULE_PL,
 *			XAIEGBL_MODULE_MEM
 * @param	Error - Error event id
 *			48 - 69 for Core module
 *			87 - 100 for Memory module
 *			62 - 72 for SHIM PL module
 *
 * @return	1 to trap application by default, 0 not to trap application
 *		by default.
 * @note	As the function is called internally, it will not validate
 *		the module nor the errors assuming the caller will do the
 *		validation.
 *
 *		Used only within this file.
 *****************************************************************************/
This API checks if the error needs to trap application by default.

@return      1 to trap application by default, 0 not to trap application
by default.
@note        As the function is called internally, it will not validate
the module nor the errors assuming the caller will do the
validation.

Used only within this file.
This API checks if the error needs to trap application by default . @return 1 to trap application by default 0 not to trap application by default . @note As the function is called internally it will not validate the module nor the errors assuming the caller will do the validation . Used only within this file .
static u32 XAieTile_ErrorsDefaultTrap(u8 Module, u8 Error)
{
	if (XAieTile_ErrorsDefaultLog(Module, Error) == 0) {
		return 0;
	} else if (Module == XAIEGBL_MODULE_MEM) {
		switch (Error) {
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_2:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_3:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_4:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_5:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_6:
		case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_7:
			return 0;
		default:
			return 1;
		}
	} else {
		return 1;
	}
}
static u32 XAieTile_ErrorsDefaultTrap ( u8 Module , u8 Error ) { if ( XAieTile_ErrorsDefaultLog ( Module , Error ) == 0 ) { return 0 ; } else if ( Module == XAIEGBL_MODULE_MEM ) { switch ( Error ) { case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_2 : case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_3 : case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_4 : case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_5 : case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_6 : case XAIETILE_EVENT_MEM_DM_PARITY_ERROR_BANK_7 : return 0 ; default : return 1 ; } } else { return 1 ; } }
This API checks if the error needs to trap application by default.
This API checks if the error needs to trap application by default .