Skip to content

Commit

Permalink
arm64: device: add iommu pointer to device archdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Jun 11, 2013
1 parent 9ab6d02 commit 73150c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73150c9

Please sign in to comment.