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

Function hostb_alloc_start

freebsd/x86/pci/pci_bus.c:582–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 0, "Limit the host bridge memory to being above this address.");
581
582rman_res_t
583hostb_alloc_start(int type, rman_res_t start, rman_res_t end, rman_res_t count)
584{
585
586 if (start + count - 1 != end) {
587 if (type == SYS_RES_MEMORY && start < host_mem_start)
588 start = host_mem_start;
589 if (type == SYS_RES_IOPORT && start < 0x1000)
590 start = 0x1000;
591 }
592 return (start);
593}
594
595struct resource *
596legacy_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected