diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-03-15 22:44:58 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-03-15 22:44:58 +0000 |
commit | 30e7942acbcad35d2bba2765cab17065973ab7de (patch) | |
tree | 33e59555924d6cd1bdb4949a20439065a568da7a /sys/arch/amd64 | |
parent | 67c8e068996c3606034689f984a6684d2b46f6f9 (diff) |
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@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index f97523bb5b1..0502a18a2a8 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.93 2020/12/06 21:42:24 kettenis Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.94 2021/03/15 22:44:57 patrick Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -568,3 +568,9 @@ acpi_resume_mp(void) #endif /* MULTIPROCESSOR */ #endif /* ! SMALL_KERNEL */ + +bus_dma_tag_t +acpi_iommu_device_map(struct aml_node *node, bus_dma_tag_t dmat) +{ + return dmat; +} |