Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/nexus.c
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | nexus_probe(device_t dev) | ||||
return (BUS_PROBE_DEFAULT); | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static int | static int | ||||
nexus_attach(device_t dev) | nexus_attach(device_t dev) | ||||
{ | { | ||||
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 = "I/O memory addresses"; | mem_rman.rm_descr = "I/O memory addresses"; | ||||
if (rman_init(&mem_rman) || rman_manage_region(&mem_rman, 0, ~0)) | if (rman_init(&mem_rman) || | ||||
rman_manage_region(&mem_rman, 0, BUS_SPACE_MAXADDR)) | |||||
panic("nexus_probe mem_rman"); | panic("nexus_probe mem_rman"); | ||||
/* | /* | ||||
* First, deal with the children we know about already | * First, deal with the children we know about already | ||||
*/ | */ | ||||
bus_generic_probe(dev); | bus_generic_probe(dev); | ||||
bus_generic_attach(dev); | bus_generic_attach(dev); | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |