Change API of acpiiort(4). It was written as a hook before, taking the
authorpatrick <patrick@openbsd.org>
Mon, 15 Mar 2021 22:48:57 +0000 (22:48 +0000)
committerpatrick <patrick@openbsd.org>
Mon, 15 Mar 2021 22:48:57 +0000 (22:48 +0000)
commit88933a1fbb282bf7c34e5e40982905026b06c781
tree96a51dfc878230cc325c6c821689d1d4cc31e11d
parentc375c363d9025b334c6cea967bb0cee9d9a41169
Change API of acpiiort(4).  It was written as a hook before, taking the
PCI attach args and replacing the DMA tag inside.  Our other IOMMU API
though takes a DMA tag and returns the old one or a new one.  To have
acpiiort(4) integrate better with non-PCI ACPI devices, change the API
so that it is more similar to the other API.  This also makes the code
easier to understand.

ok kettenis@
sys/arch/arm64/dev/acpiiort.c
sys/arch/arm64/dev/acpiiort.h
sys/arch/arm64/dev/acpipci.c
sys/arch/arm64/dev/smmu.c
sys/arch/arm64/dev/smmu_acpi.c
sys/arch/arm64/dev/smmu_fdt.c
sys/arch/arm64/dev/smmuvar.h