Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/cavium/ciu.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static mips_intrcnt_t ciu_en1_intrcnt[CIU_IRQ_EN1_COUNT]; | static mips_intrcnt_t ciu_en1_intrcnt[CIU_IRQ_EN1_COUNT]; | ||||
static struct intr_event *ciu_en0_intr_events[CIU_IRQ_EN0_COUNT]; | static struct intr_event *ciu_en0_intr_events[CIU_IRQ_EN0_COUNT]; | ||||
static struct intr_event *ciu_en1_intr_events[CIU_IRQ_EN1_COUNT]; | static struct intr_event *ciu_en1_intr_events[CIU_IRQ_EN1_COUNT]; | ||||
static int ciu_probe(device_t); | static int ciu_probe(device_t); | ||||
static int ciu_attach(device_t); | static int ciu_attach(device_t); | ||||
static struct resource *ciu_alloc_resource(device_t, device_t, int, int *, | static struct resource *ciu_alloc_resource(device_t, device_t, int, int *, | ||||
u_long, u_long, u_long, u_int); | rman_res_t, rman_res_t, rman_res_t, | ||||
u_int); | |||||
static int ciu_setup_intr(device_t, device_t, struct resource *, | static int ciu_setup_intr(device_t, device_t, struct resource *, | ||||
int, driver_filter_t *, driver_intr_t *, | int, driver_filter_t *, driver_intr_t *, | ||||
void *, void **); | void *, void **); | ||||
static int ciu_teardown_intr(device_t, device_t, | static int ciu_teardown_intr(device_t, device_t, | ||||
struct resource *, void *); | struct resource *, void *); | ||||
static int ciu_bind_intr(device_t, device_t, struct resource *, | static int ciu_bind_intr(device_t, device_t, struct resource *, | ||||
int); | int); | ||||
static int ciu_describe_intr(device_t, device_t, | static int ciu_describe_intr(device_t, device_t, | ||||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
bus_generic_probe(dev); | bus_generic_probe(dev); | ||||
bus_generic_attach(dev); | bus_generic_attach(dev); | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
ciu_alloc_resource(device_t bus, device_t child, int type, int *rid, | ciu_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct resource *res; | struct resource *res; | ||||
struct ciu_softc *sc; | struct ciu_softc *sc; | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
switch (type) { | switch (type) { | ||||
case SYS_RES_IRQ: | case SYS_RES_IRQ: | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |