eic_irq.h

API for supporting External Interrupt Controllers (EIC mode)

EIC_IRQ_TIMER

@ brief Internal Interrupt numbers

1
(-1)

MIPS cores have a few internally generated interrupts from the Timer, Performance Counters and Fast Debug Channel hardware, in EIC mode these become outputs from the core and are connected to the external controller, the external control then loops these back at whichever IPL it decides

We use negative numbers to represent these, leaving positive numbers free for the SoC specific interrupts

EIC_IRQ_FDC
1
(-2)
EIC_IRQ_PC
1
(-3)
void eic_irq_configure(int irq_num)

Configure and route the interrupt.

void eic_irq_enable(int irq_num)

Enable an interrupt.

void eic_irq_disable(int irq_num)

Disable an interrupt.

void eic_irq_ack(int irq_num)

Acknowledge an interrupt.