Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/bcma/bcma.c
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | if (error) { | ||||
| goto cleanup; | goto cleanup; | ||||
| } | } | ||||
| /* Allocate the resource */ | /* Allocate the resource */ | ||||
| r_start = addr; | r_start = addr; | ||||
| r_count = size; | r_count = size; | ||||
| r_end = r_start + r_count - 1; | r_end = r_start + r_count - 1; | ||||
| dinfo->rid_agent = 0; | dinfo->rid_agent = i + 1; | ||||
| dinfo->res_agent = bhnd_alloc_resource(dev, SYS_RES_MEMORY, | dinfo->res_agent = bhnd_alloc_resource(dev, SYS_RES_MEMORY, | ||||
| &dinfo->rid_agent, r_start, r_end, r_count, RF_ACTIVE); | &dinfo->rid_agent, r_start, r_end, r_count, RF_ACTIVE); | ||||
| if (dinfo->res_agent == NULL) { | if (dinfo->res_agent == NULL) { | ||||
| device_printf(dev, "failed allocating agent register " | device_printf(dev, "failed allocating agent register " | ||||
| "block for core %d\n", i); | "block for core %d\n", i); | ||||
| error = ENXIO; | error = ENXIO; | ||||
| goto cleanup; | goto cleanup; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines | |||||