drivers/arm/gic/arm_gic.c
/*******************************************************************************
 * Initialize the ARM GIC driver with the provided platform inputs
******************************************************************************/
Initialize the ARM GIC driver with the provided platform inputs
Initialize the ARM GIC driver with the provided platform inputs
void arm_gic_init(uintptr_t gicc_base,
		  uintptr_t gicd_base,
		  uintptr_t gicr_base,
		  const unsigned int *irq_sec_ptr,
		  unsigned int num_irqs)
{
	unsigned int val;
	assert(gicc_base);
	assert(gicd_base);
	assert(irq_sec_ptr);
	g_gicc_base = gicc_base;
	g_gicd_base = gicd_base;
	val = gicc_read_iidr(g_gicc_base);
	if (((val >> GICC_IIDR_ARCH_SHIFT) & GICC_IIDR_ARCH_MASK) >= 3) {
		assert(gicr_base);
		g_gicr_base = gicr_base;
	}
	g_irq_sec_ptr = irq_sec_ptr;
	g_num_irqs = num_irqs;
}
void arm_gic_init ( uintptr_t gicc_base , uintptr_t gicd_base , uintptr_t gicr_base , const unsigned int * irq_sec_ptr , unsigned int num_irqs ) { unsigned int val ; assert ( gicc_base ) ; assert ( gicd_base ) ; assert ( irq_sec_ptr ) ; g_gicc_base = gicc_base ; g_gicd_base = gicd_base ; val = gicc_read_iidr ( g_gicc_base ) ; if ( ( ( val >> GICC_IIDR_ARCH_SHIFT ) & GICC_IIDR_ARCH_MASK ) >= 3 ) { assert ( gicr_base ) ; g_gicr_base = gicr_base ; } g_irq_sec_ptr = irq_sec_ptr ; g_num_irqs = num_irqs ; }
Initialize the ARM GIC driver with the provided platform inputs
Initialize the ARM GIC driver with the provided platform inputs