freebsd11_network: Add bus_alloc_resource_anywhere.

This commit is contained in:
Augustin Cavalier
2018-07-07 14:24:04 -04:00
parent 208c323649
commit 76218ef1ca
@@ -102,6 +102,13 @@ bus_alloc_resource_any(device_t dev, int type, int *rid, uint32 flags)
return bus_alloc_resource(dev, type, rid, 0, ~0, 1, flags);
}
static inline struct resource *
bus_alloc_resource_anywhere(device_t dev, int type, int *rid,
unsigned long count, uint32 flags)
{
return (bus_alloc_resource(dev, type, rid, 0, ~0, count, flags));
}
bus_dma_tag_t bus_get_dma_tag(device_t dev);
int bus_setup_intr(device_t dev, struct resource *r, int flags,