minix/kernel/arch/earm/omap_intr.c

20 lines
348 B
C
Raw Normal View History

2012-10-08 03:38:03 +02:00
#include <sys/types.h>
#include <machine/cpu.h>
#include <io.h>
#include "omap_intr.h"
int intr_init(const int auto_eoi)
{
return 0;
}
void omap3_irq_unmask(int irq)
{
mmio_write(OMAP3_INTR_MIR_CLEAR(irq >> 5), 1 << (irq & 0x1f));
}
void omap3_irq_mask(const int irq)
{
mmio_write(OMAP3_INTR_MIR_SET(irq >> 5), 1 << (irq & 0x1f));
}