[AVR32] Implement intc_get_pending()

intc_get_pending() returns a bitmask with pending interrupts in a
interrupt controller group (irq). This is used by the upcoming
oprofile implementation for avr32 and may also be useful for chained
interrupt controller drivers.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
This commit is contained in:
Haavard Skinnemoen 2006-12-08 11:04:19 +01:00
parent acc9252a36
commit 695621183e

View File

@ -136,3 +136,7 @@ fail:
panic("Interrupt controller initialization failed!\n");
}
unsigned long intc_get_pending(int group)
{
return intc_readl(&intc0, INTREQ0 + 4 * group);
}