diff options
author | Will Deacon <will.deacon@arm.com> | 2013-06-10 20:34:42 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-06-11 19:15:55 +0200 |
commit | 73150c983ac1f9b7653cfd3823b1ad4a44aad3bf (patch) | |
tree | 0842c9f31afc05c874f4ad493834a51a1b350a32 /arch/arm64/include | |
parent | arm64: pgtable: use pte_index instead of __pte_index (diff) | |
download | linux-73150c983ac1f9b7653cfd3823b1ad4a44aad3bf.tar.xz linux-73150c983ac1f9b7653cfd3823b1ad4a44aad3bf.zip |
arm64: device: add iommu pointer to device archdata
When using an IOMMU for device mappings, it is necessary to keep a
pointer between the device and the IOMMU to which it is attached in
order to obtain the correct IOMMU when attaching the device to a domain.
This patch adds an iommu pointer to the dev_archdata structure, in a
similar manner to other architectures (ARM, PowerPC, x86, ...).
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/device.h b/arch/arm64/include/asm/device.h index 0d8453c755a8..cf98b362094b 100644 --- a/arch/arm64/include/asm/device.h +++ b/arch/arm64/include/asm/device.h @@ -18,6 +18,9 @@ struct dev_archdata { struct dma_map_ops *dma_ops; +#ifdef CONFIG_IOMMU_API + void *iommu; /* private IOMMU data */ +#endif }; struct pdev_archdata { |