* @brief Wrapper function for BUS_ALLOC_RESOURCE(). * * This function simply calls the BUS_ALLOC_RESOURCE() method of the * parent of @p dev. */
| 4607 | * parent of @p dev. |
| 4608 | */ |
| 4609 | struct resource * |
| 4610 | bus_alloc_resource(device_t dev, int type, int *rid, rman_res_t start, |
| 4611 | rman_res_t end, rman_res_t count, u_int flags) |
| 4612 | { |
| 4613 | struct resource *res; |
| 4614 | |
| 4615 | if (dev->parent == NULL) |
| 4616 | return (NULL); |
| 4617 | res = BUS_ALLOC_RESOURCE(dev->parent, dev, type, rid, start, end, |
| 4618 | count, flags); |
| 4619 | return (res); |
| 4620 | } |
| 4621 | |
| 4622 | /** |
| 4623 | * @brief Wrapper function for BUS_ADJUST_RESOURCE(). |
no outgoing calls
no test coverage detected