Page MenuHomeFreeBSD

ofw_pcib: Use bus_generic_rman_*
ClosedPublic

Authored by jhb on Jan 12 2024, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 12:53 AM
Unknown Object (File)
Thu, Oct 17, 10:58 AM
Unknown Object (File)
Wed, Oct 16, 3:22 AM
Unknown Object (File)
Tue, Oct 15, 1:41 AM
Unknown Object (File)
Sat, Oct 12, 12:40 PM
Unknown Object (File)
Fri, Oct 11, 4:50 AM
Unknown Object (File)
Thu, Oct 10, 4:00 PM
Unknown Object (File)
Thu, Oct 10, 7:01 AM
Subscribers
None

Details

Summary
  • Implement bus_map/unmap_resource pulling bits from the previous ofw_pcib_activate/deactivate_resource. One difference here is that the bus_unmap_resource implementation uses bus_space_unmap instead of pmap_unmapdev as a complement to the existing use of bus_space_map.
  • Use bus_generic_rman_* in various routines for memory and I/O port resources.
  • Use pci_domain_* for PCI_RES_BUS in ofw_pcib_activate/deactivate_resource.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Jan 12 2024, 10:32 PM
jhb created this revision.

Booted this series on RISC-V (QEMU), armv7 (RPI), and aarch64 (same RPI).

This revision is now accepted and ready to land.Jan 22 2024, 5:38 PM
This revision was automatically updated to reflect the committed changes.