| 353 | } |
| 354 | |
| 355 | static int |
| 356 | nexus_set_resource(device_t dev, device_t child, int type, int rid, |
| 357 | rman_res_t start, rman_res_t count) |
| 358 | { |
| 359 | struct nexus_device *ndev = DEVTONX(child); |
| 360 | struct resource_list *rl = &ndev->nx_resources; |
| 361 | struct resource_list_entry *rle; |
| 362 | |
| 363 | dprintf("%s: entry (%p, %p, %d, %d, %p, %jd)\n", |
| 364 | __func__, dev, child, type, rid, (void *)(intptr_t)start, count); |
| 365 | |
| 366 | rle = resource_list_add(rl, type, rid, start, start + count - 1, |
| 367 | count); |
| 368 | if (rle == NULL) |
| 369 | return (ENXIO); |
| 370 | |
| 371 | return (0); |
| 372 | } |
| 373 | |
| 374 | static int |
| 375 | nexus_get_resource(device_t dev, device_t child, int type, int rid, |
nothing calls this directly
no test coverage detected