drivers/arm/gic/arm_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 .
uint32_t arm_gic_get_interrupt_type(uint32_t id)
{
	uint32_t group;
	assert(g_gicd_base);
	group = gicd_get_igroupr(g_gicd_base, id);
	if (group == GRP0)
		return INTR_TYPE_S_EL1;
	else
		return INTR_TYPE_NS;
}
uint32_t arm_gic_get_interrupt_type ( uint32_t id ) { uint32_t group ; assert ( g_gicd_base ) ; group = gicd_get_igroupr ( g_gicd_base , id ) ; if ( group == GRP0 ) return INTR_TYPE_S_EL1 ; else return INTR_TYPE_NS ; }
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 .
/* Assume that all secure interrupts are S-EL1 interrupts */