]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
new-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)
commitd77f2092ceebaba115e6be53410428f6f5f6ae83
tree7ef42f41d2c2ca7060e9261236ce5ab27adf3d1e
parentfef01f0498aa7b256bc37bbf28ee0e8ac9b2536f
new-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE

The public bus_map/unmap_resource() API still accepts both forms, but
the internal kobj methods no longer pass the argument.
Implementations which need the type now use rman_get_type() to fetch
the value from the allocated resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44129
22 files changed:
share/man/man9/bus_map_resource.9
sys/arm/arm/nexus.c
sys/arm/mv/mv_pci.c
sys/arm64/arm64/nexus.c
sys/arm64/cavium/thunder_pcie_pem.c
sys/dev/acpica/acpi.c
sys/dev/fdt/simplebus.c
sys/dev/ofw/ofw_pcib.c
sys/dev/pci/pci_host_generic.c
sys/dev/pci/pci_pci.c
sys/dev/vmd/vmd.c
sys/kern/bus_if.m
sys/kern/subr_bus.c
sys/powerpc/mpc85xx/lbc.c
sys/powerpc/powermac/macio.c
sys/powerpc/powermac/uninorth.c
sys/powerpc/powerpc/nexus.c
sys/powerpc/ps3/ps3bus.c
sys/powerpc/psim/iobus.c
sys/riscv/riscv/nexus.c
sys/sys/bus.h
sys/x86/x86/nexus.c