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)
Mon, May 6, 6:38 PM
Unknown Object (File)
Mon, May 6, 8:42 AM
Unknown Object (File)
Wed, May 1, 6:25 PM
Unknown Object (File)
Apr 12 2024, 9:00 AM
Unknown Object (File)
Mar 31 2024, 10:21 PM
Unknown Object (File)
Mar 30 2024, 4:29 PM
Unknown Object (File)
Mar 30 2024, 4:29 PM
Unknown Object (File)
Mar 30 2024, 3:58 PM
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.