My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Functions
gic.c File Reference
#include <sw_io.h>
#include <cpu_io.h>
#include <sw_board.h>
#include <sw_platform.h>
#include <gic.h>
#include <sw_debug.h>

Classes

struct  gic_chip_data
 

Macros

#define max(a, b)   ((a) < (b) ? (b) : (a))
 

Functions

int gic_active_irq (u32 gic_nr)
 reads the generic interrupt control register More...
 
int gic_ack_irq (u32 gic_nr, u32 irq)
 Acknowledges the interrupt request of Generic interrupt controller. More...
 
int gic_mask (u32 gic_nr, u32 irq)
 Masks a particular interrupt request of the generic interrupt controller. More...
 
int gic_unmask (u32 gic_nr, u32 irq)
 Unmask a particular interrupt request of the Generic interrupt controller. More...
 
int gic_dist_init (void)
 This function is to initialize distributor block of Generic interrupt controller. More...
 
int gic_cpu_init (void)
 This function is used to initialize CPU interfaces of Generic interrupt controller. More...
 
void generate_soft_int_to_core0 (u32 int_id)
 Generate software interrupt specific to core0. More...
 

Macro Definition Documentation

#define max (   a,
 
)    ((a) < (b) ? (b) : (a))

Function Documentation

void generate_soft_int_to_core0 ( u32  int_id)

Generate software interrupt specific to core0.

Parameters
int_id
int gic_ack_irq ( u32  gic_nr,
u32  irq 
)

Acknowledges the interrupt request of Generic interrupt controller.

Parameters
gic_nr
irq
Returns
int gic_active_irq ( u32  gic_nr)

reads the generic interrupt control register

Parameters
gic_nr
Returns
int gic_cpu_init ( void  )

This function is used to initialize CPU interfaces of Generic interrupt controller.

Returns
int gic_dist_init ( void  )

This function is to initialize distributor block of Generic interrupt controller.

Returns
int gic_mask ( u32  gic_nr,
u32  irq 
)

Masks a particular interrupt request of the generic interrupt controller.

Parameters
gic_nr
irq
Returns
int gic_unmask ( u32  gic_nr,
u32  irq 
)

Unmask a particular interrupt request of the Generic interrupt controller.

Parameters
gic_nr
irq
Returns