]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ofw_pcib: Use bus_generic_rman_*
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Jan 2024 17:38:09 +0000 (09:38 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 23 Jan 2024 17:38:09 +0000 (09:38 -0800)
commit0b60d7a60099e6ce81e0fb012946a1e77b0626c4
treec42ebc62b4e35f992ea588b56a7b281bae9aac2f
parenta3d6e0de1c89c145b40ed80fe54c6bad1abbf416
ofw_pcib: Use bus_generic_rman_*

- 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.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43441
sys/dev/ofw/ofw_pcib.c