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)
Tue, Jan 7, 1:55 AM
Unknown Object (File)
Nov 24 2024, 6:59 AM
Unknown Object (File)
Nov 23 2024, 7:55 AM
Unknown Object (File)
Nov 19 2024, 2:27 PM
Unknown Object (File)
Nov 7 2024, 10:49 AM
Unknown Object (File)
Nov 7 2024, 10:33 AM
Unknown Object (File)
Nov 7 2024, 8:50 AM
Unknown Object (File)
Oct 26 2024, 12:53 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.