If Enhanced Allocation is not used, we can't allocate any random range. All internal devices have hardcoded place where they can be located within PCI address space. Fortunately, we can read this value from BAR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/arm64/cavium/thunder_pcie_common.c | ||
---|---|---|
168 | IMHO this should be moved to sys/arm64/cavium/thunder_pcie_fdt.c as we return with the call to pci_host_generic_alloc_resource() anyway. | |
sys/arm64/cavium/thunder_pcie_fdt.c | ||
66 | If you move the FDT code (mentioned above) here you can static both and have only thunder_pcie_fdt_alloc_res or smth. here. |
sys/arm64/cavium/thunder_pcie_common.c | ||
---|---|---|
36 | Why are you adding this? I don't see BUS_DEBUG being used. |