Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/atheros/apb.c
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | apb_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
isdefault = (RMAN_IS_DEFAULT_RANGE(start, end)); | isdefault = (RMAN_IS_DEFAULT_RANGE(start, end)); | ||||
needactivate = flags & RF_ACTIVE; | needactivate = flags & RF_ACTIVE; | ||||
/* | /* | ||||
* Pass memory requests to nexus device | * Pass memory requests to nexus device | ||||
*/ | */ | ||||
passthrough = (device_get_parent(child) != bus); | passthrough = (device_get_parent(child) != bus); | ||||
rle = NULL; | rle = NULL; | ||||
dprintf("%s: entry (%p, %p, %d, %d, %p, %p, %ld, %d)\n", | dprintf("%s: entry (%p, %p, %d, %d, %p, %p, %jd, %d)\n", | ||||
__func__, bus, child, type, *rid, (void *)(intptr_t)start, | __func__, bus, child, type, *rid, (void *)(intptr_t)start, | ||||
(void *)(intptr_t)end, count, flags); | (void *)(intptr_t)end, count, flags); | ||||
if (passthrough) | if (passthrough) | ||||
return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, | return (BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, | ||||
rid, start, end, count, flags)); | rid, start, end, count, flags)); | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |