* @brief Helper function for implementing BUS_ALLOC_RESOURCE(). * * This simple implementation of BUS_ALLOC_RESOURCE() simply calls the * BUS_ALLOC_RESOURCE() method of the parent of @p dev. */
| 4211 | * BUS_ALLOC_RESOURCE() method of the parent of @p dev. |
| 4212 | */ |
| 4213 | struct resource * |
| 4214 | bus_generic_alloc_resource(device_t dev, device_t child, int type, int *rid, |
| 4215 | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) |
| 4216 | { |
| 4217 | /* Propagate up the bus hierarchy until someone handles it. */ |
| 4218 | if (dev->parent) |
| 4219 | return (BUS_ALLOC_RESOURCE(dev->parent, child, type, rid, |
| 4220 | start, end, count, flags)); |
| 4221 | return (NULL); |
| 4222 | } |
| 4223 | |
| 4224 | /** |
| 4225 | * @brief Helper function for implementing BUS_RELEASE_RESOURCE(). |
no outgoing calls
no test coverage detected