plat/nvidia/tegra/common/tegra_gic.c
/*******************************************************************************
 * This function returns the type of the interrupt id depending upon the group
 * this interrupt has been configured under by the interrupt controller i.e.
 * group0 or group1.
 ******************************************************************************/
This function returns the type of the interrupt id depending upon the group
this interrupt has been configured under by the interrupt controller i.e.
group0 or group1.
This function returns the type of the interrupt id depending upon the group this interrupt has been configured under by the interrupt controller i . e . group0 or group1 .
static uint32_t tegra_gic_get_interrupt_type(uint32_t id)
{
	uint32_t group;
	uint32_t index;
	uint32_t ret = INTR_TYPE_NS;
	group = gicd_get_igroupr(TEGRA_GICD_BASE, id);
	if (group == GRP0) {
		for (index = 0U; index < g_num_irqs; index++) {
			if (id == g_irq_sec_ptr[index].irq) {
				ret = g_irq_sec_ptr[index].type;
				break;
			}
		}
	}
	return ret;
}
static uint32_t tegra_gic_get_interrupt_type ( uint32_t id ) { uint32_t group ; uint32_t index ; uint32_t ret = INTR_TYPE_NS ; group = gicd_get_igroupr ( TEGRA_GICD_BASE , id ) ; if ( group == GRP0 ) { for ( index = 0U ; index < g_num_irqs ; index ++ ) { if ( id == g_irq_sec_ptr [ index ] . irq ) { ret = g_irq_sec_ptr [ index ] . type ; break ; } } } return ret ; }
This function returns the type of the interrupt id depending upon the group
 this interrupt has been configured under by the interrupt controller i.e.
This function returns the type of the interrupt id depending upon the group this interrupt has been configured under by the interrupt controller i . e .
/* get the interrupt type */