MCPcopy Create free account
hub / github.com/F-Stack/f-stack / qpi_pcib_alloc_resource

Function qpi_pcib_alloc_resource

freebsd/x86/pci/qpi.c:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253
254#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
255static struct resource *
256qpi_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
257 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
258{
259
260 if (type == PCI_RES_BUS)
261 return (pci_domain_alloc_bus(0, child, rid, start, end, count,
262 flags));
263 return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
264 count, flags));
265}
266#endif
267
268static int

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected