]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
new-bus: Remove the 'type' argument from BUS_ADJUST_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)
commitfef01f0498aa7b256bc37bbf28ee0e8ac9b2536f
tree1d4ce11d8cce6610cf2645dbe73c13cbded53648
parent582b84cd252d56f06556134b1103da3a0425fdbd
new-bus: Remove the 'type' argument from BUS_ADJUST_RESOURCE

The public bus_adjust_resource() API still accepts both forms, but the
internal kobj method no longer passes 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/D44128
28 files changed:
share/man/man9/bus_adjust_resource.9
sys/arm/mv/mv_pci.c
sys/arm64/cavium/thunder_pcie_pem.c
sys/dev/acpica/acpi.c
sys/dev/acpica/acpi_pcib_acpi.c
sys/dev/bhnd/bhndb/bhndb.c
sys/dev/bhnd/cores/chipc/chipc.c
sys/dev/dpaa2/dpaa2_mc.c
sys/dev/dpaa2/dpaa2_mc.h
sys/dev/fdt/simplebus.c
sys/dev/hyperv/pcib/vmbus_pcib.c
sys/dev/ofw/ofw_pcib.c
sys/dev/pccbb/pccbb_pci.c
sys/dev/pci/pci_host_generic.c
sys/dev/pci/pci_pci.c
sys/dev/pci/pci_subr.c
sys/dev/pci/pcib_private.h
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/psim/iobus.c
sys/sys/bus.h
sys/x86/include/legacyvar.h
sys/x86/pci/pci_bus.c
sys/x86/x86/mptable_pci.c