MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nexus_set_resource

Function nexus_set_resource

freebsd/mips/mips/nexus.c:355–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355static int
356nexus_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
374static int
375nexus_get_resource(device_t dev, device_t child, int type, int rid,

Callers

nothing calls this directly

Calls 1

resource_list_addFunction · 0.85

Tested by

no test coverage detected