Page MenuHomeFreeBSD

pci_host_generic: Don't rewrite resource start address for translation
ClosedPublic

Authored by jhb on Feb 14 2024, 6:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 8, 6:59 PM
Unknown Object (File)
Wed, Aug 5, 4:22 AM
Unknown Object (File)
Tue, Aug 4, 8:25 AM
Unknown Object (File)
Fri, Jul 31, 4:06 AM
Unknown Object (File)
Sun, Jul 26, 1:10 PM
Unknown Object (File)
Fri, Jul 24, 6:10 PM
Unknown Object (File)
Jul 3 2026, 10:30 AM
Unknown Object (File)
Jun 24 2026, 9:29 PM
Subscribers

Details

Summary

Allocate resources from the parent device for decoded physical address
ranges. When child resources suballocated from rman's are mapped,
translate those mapping requests into a mapping request of the
associated physical address range in a bus_map_resource method.

While here, convert generic_pcie_rman to a bus_get_rman method and use
bus_generic_rman_* for operations on child resources.

Factor out a generic_pcie_containing_range to share logic between
bus_translate_resource and bus_*map_resource.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable