* Default bhnd_nexus implementation of BHND_BUS_ACTIVATE_RESOURCE(). */
| 77 | * Default bhnd_nexus implementation of BHND_BUS_ACTIVATE_RESOURCE(). |
| 78 | */ |
| 79 | static int |
| 80 | bhnd_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(). |
nothing calls this directly
no test coverage detected