freebsd11_network: Add bus_alloc_resource_anywhere.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user