Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/mips_pic.c
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#include <dev/fdt/fdt_common.h> | #include <dev/fdt/fdt_common.h> | ||||
#include <dev/ofw/openfirm.h> | #include <dev/ofw/openfirm.h> | ||||
#include <dev/ofw/ofw_bus.h> | #include <dev/ofw/ofw_bus.h> | ||||
#include <dev/ofw/ofw_bus_subr.h> | #include <dev/ofw/ofw_bus_subr.h> | ||||
#endif | #endif | ||||
#include "pic_if.h" | #include "pic_if.h" | ||||
#define NHARD_IRQS 6 | |||||
#define NSOFT_IRQS 2 | |||||
#define NREAL_IRQS (NHARD_IRQS + NSOFT_IRQS) | |||||
struct mips_pic_softc; | struct mips_pic_softc; | ||||
static int mips_pic_intr(void *); | static int mips_pic_intr(void *); | ||||
static struct mips_pic_intr *mips_pic_find_intr(struct resource *r); | static struct mips_pic_intr *mips_pic_find_intr(struct resource *r); | ||||
static int mips_pic_map_fixed_intr(u_int irq, | static int mips_pic_map_fixed_intr(u_int irq, | ||||
struct mips_pic_intr **mapping); | struct mips_pic_intr **mapping); | ||||
static void cpu_establish_intr(struct mips_pic_softc *sc, | static void cpu_establish_intr(struct mips_pic_softc *sc, | ||||
const char *name, driver_filter_t *filt, | const char *name, driver_filter_t *filt, | ||||
▲ Show 20 Lines • Show All 634 Lines • Show Last 20 Lines |