minix/kernel/arch/earm/omap_intr.c
Lionel Sambuc b1c4ba4ab6 ARM updates
Due to the ABI we are using we have to use the earm architecture
moniker for the build system to behave correctly. This involves
then some headers to move around.

There is also a few related Makefile updates as well as minor
source code corrections.
2013-01-17 10:03:58 +01:00

20 lines
348 B
C

#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));
}