Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/include/intr.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#ifdef MIPS_INTRNG | #ifdef MIPS_INTRNG | ||||
#ifdef FDT | #ifdef FDT | ||||
#include <dev/ofw/openfirm.h> | #include <dev/ofw/openfirm.h> | ||||
#endif | #endif | ||||
#include <sys/intr.h> | #include <sys/intr.h> | ||||
#ifndef MIPS_NIRQ | |||||
#define MIPS_NIRQ 128 | |||||
#endif | |||||
#ifndef NIRQ | #ifndef NIRQ | ||||
#define NIRQ 128 | #define NIRQ MIPS_NIRQ | ||||
#endif | #endif | ||||
#define INTR_IRQ_NSPC_SWI 4 | #define INTR_IRQ_NSPC_SWI 4 | ||||
/* MIPS compatibility for legacy mips code */ | /* MIPS compatibility for legacy mips code */ | ||||
void cpu_init_interrupts(void); | void cpu_init_interrupts(void); | ||||
void cpu_establish_hardintr(const char *, driver_filter_t *, driver_intr_t *, | void cpu_establish_hardintr(const char *, driver_filter_t *, driver_intr_t *, | ||||
void *, int, int, void **); | void *, int, int, void **); | ||||
void cpu_establish_softintr(const char *, driver_filter_t *, void (*)(void*), | void cpu_establish_softintr(const char *, driver_filter_t *, void (*)(void*), | ||||
void *, int, int, void **); | void *, int, int, void **); | ||||
/* MIPS interrupt C entry point */ | /* MIPS interrupt C entry point */ | ||||
void cpu_intr(struct trapframe *); | void cpu_intr(struct trapframe *); | ||||
#endif /* MIPS_INTRNG */ | #endif /* MIPS_INTRNG */ | ||||
#endif /* _MACHINE_INTR_H */ | #endif /* _MACHINE_INTR_H */ |