Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ofw/ofwbus.c
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child), | ||||
type, *rid); | type, *rid); | ||||
if (rle == NULL) { | if (rle == NULL) { | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(bus, "no default resources for " | device_printf(bus, "no default resources for " | ||||
"rid = %d, type = %d\n", *rid, type); | "rid = %d, type = %d\n", *rid, type); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
start = rle->start; | start = rle->start; | ||||
count = ulmax(count, rle->count); | count = ummax(count, rle->count); | ||||
end = ulmax(rle->end, start + count - 1); | end = ummax(rle->end, start + count - 1); | ||||
} | } | ||||
switch (type) { | switch (type) { | ||||
case SYS_RES_IRQ: | case SYS_RES_IRQ: | ||||
rm = &sc->sc_intr_rman; | rm = &sc->sc_intr_rman; | ||||
break; | break; | ||||
case SYS_RES_MEMORY: | case SYS_RES_MEMORY: | ||||
rm = &sc->sc_mem_rman; | rm = &sc->sc_mem_rman; | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |