| 372 | } |
| 373 | |
| 374 | static int |
| 375 | nexus_get_resource(device_t dev, device_t child, int type, int rid, |
| 376 | rman_res_t *startp, rman_res_t *countp) |
| 377 | { |
| 378 | struct nexus_device *ndev = DEVTONX(child); |
| 379 | struct resource_list *rl = &ndev->nx_resources; |
| 380 | struct resource_list_entry *rle; |
| 381 | |
| 382 | rle = resource_list_find(rl, type, rid); |
| 383 | if (!rle) |
| 384 | return(ENOENT); |
| 385 | if (startp) |
| 386 | *startp = rle->start; |
| 387 | if (countp) |
| 388 | *countp = rle->count; |
| 389 | return (0); |
| 390 | } |
| 391 | |
| 392 | static void |
| 393 | nexus_delete_resource(device_t dev, device_t child, int type, int rid) |
nothing calls this directly
no test coverage detected