--- zzzz-none-000/linux-4.4.60/arch/arm/include/asm/dma-iommu.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-1750e-727/linux-4.4.60/arch/arm/include/asm/dma-iommu.h 2021-02-04 17:41:59.000000000 +0000 @@ -8,6 +8,7 @@ #include #include #include +#include struct dma_iommu_mapping { /* iommu specific data */ @@ -19,13 +20,16 @@ size_t bitmap_size; /* size of a single bitmap */ size_t bits; /* per bitmap */ dma_addr_t base; + u64 size; spinlock_t lock; struct kref kref; + + struct dma_fast_smmu_mapping *fast; }; -struct dma_iommu_mapping * -arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size); +struct dma_iommu_mapping *arm_iommu_create_mapping(struct device *dev, + struct bus_type *bus, dma_addr_t base, u64 size); void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping);