Add acpi_iommu_device_map(), which replaces the DMA tag with one that
authorpatrick <patrick@openbsd.org>
Mon, 15 Mar 2021 22:44:57 +0000 (22:44 +0000)
committerpatrick <patrick@openbsd.org>
Mon, 15 Mar 2021 22:44:57 +0000 (22:44 +0000)
commitc375c363d9025b334c6cea967bb0cee9d9a41169
treeb4206e3f8705b207fcd5e20d51dc87b4cfb85637
parentfe67bbf90cb98ea15216be816df26ef245f0590c
Add acpi_iommu_device_map(), which replaces the DMA tag with one that
is blessed with IOMMU magic, if available.  This is mainly for arm64,
since on amd64 and i386 the IOMMU only captures PCIe devices, as far
as I know, which uses the pci_probe_device_hook().  This though is for
non-PCI devices attached through ACPI.

ok kettenis@
sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/arm64/arm64/acpi_machdep.c
sys/arch/i386/i386/acpi_machdep.c
sys/dev/acpi/acpi.c
sys/dev/acpi/acpivar.h