diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-22 12:38:27 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-28 16:54:46 +0300 |
commit | 5860acc1a905b05c14e9ed9e22c20aad1a72554a (patch) | |
tree | c7de41ef603b7f179b06241ca055966e65dcc995 /arch/x86/include/asm/iommu.h | |
parent | 418a7a7e4f05f36d6e4ab5b8548ea71f0b602140 (diff) | |
download | linux-5860acc1a905b05c14e9ed9e22c20aad1a72554a.tar.xz |
x86: remove arch specific dma_supported implementation
And instead wire it up as method for all the dma_map_ops instances.
Note that this also means the arch specific check will be fully instead
of partially applied in the AMD iommu driver.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/x86/include/asm/iommu.h')
-rw-r--r-- | arch/x86/include/asm/iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/iommu.h b/arch/x86/include/asm/iommu.h index 793869879464..fca144a104e4 100644 --- a/arch/x86/include/asm/iommu.h +++ b/arch/x86/include/asm/iommu.h @@ -6,6 +6,8 @@ extern int force_iommu, no_iommu; extern int iommu_detected; extern int iommu_pass_through; +int x86_dma_supported(struct device *dev, u64 mask); + /* 10 seconds */ #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) |