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

Function bhnd_nexus_activate_resource

freebsd/mips/broadcom/bhnd_nexus.c:79–91  ·  view source on GitHub ↗

* Default bhnd_nexus implementation of BHND_BUS_ACTIVATE_RESOURCE(). */

Source from the content-addressed store, hash-verified

77 * Default bhnd_nexus implementation of BHND_BUS_ACTIVATE_RESOURCE().
78 */
79static int
80bhnd_nexus_activate_resource(device_t dev, device_t child, int type, int rid,
81 struct bhnd_resource *r)
82{
83 int error;
84
85 /* Always direct */
86 if ((error = bus_activate_resource(child, type, rid, r->res)))
87 return (error);
88
89 r->direct = true;
90 return (0);
91}
92
93/**
94 * Default bhnd_nexus implementation of BHND_BUS_DEACTIVATE_RESOURCE().

Callers

nothing calls this directly

Calls 1

bus_activate_resourceFunction · 0.85

Tested by

no test coverage detected