Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/nexus.c
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | nexus_probe(device_t dev) | ||||
irq_rman.rm_type = RMAN_ARRAY; | irq_rman.rm_type = RMAN_ARRAY; | ||||
irq_rman.rm_descr = "Hardware IRQs"; | irq_rman.rm_descr = "Hardware IRQs"; | ||||
if (rman_init(&irq_rman) != 0 || | if (rman_init(&irq_rman) != 0 || | ||||
rman_manage_region(&irq_rman, 0, NUM_MIPS_IRQS - 1) != 0) { | rman_manage_region(&irq_rman, 0, NUM_MIPS_IRQS - 1) != 0) { | ||||
panic("%s: irq_rman", __func__); | panic("%s: irq_rman", __func__); | ||||
} | } | ||||
mem_rman.rm_start = 0; | mem_rman.rm_start = 0; | ||||
mem_rman.rm_end = ~0ul; | mem_rman.rm_end = BUS_SPACE_MAXADDR; | ||||
mem_rman.rm_type = RMAN_ARRAY; | mem_rman.rm_type = RMAN_ARRAY; | ||||
mem_rman.rm_descr = "Memory addresses"; | mem_rman.rm_descr = "Memory addresses"; | ||||
if (rman_init(&mem_rman) != 0 || | if (rman_init(&mem_rman) != 0 || | ||||
rman_manage_region(&mem_rman, 0, ~0) != 0) { | rman_manage_region(&mem_rman, 0, BUS_SPACE_MAXADDR) != 0) { | ||||
panic("%s: mem_rman", __func__); | panic("%s: mem_rman", __func__); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
nexus_attach(device_t dev) | nexus_attach(device_t dev) | ||||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |