diff options
Diffstat (limited to 'arch/arm/include/asm/dma-iommu.h')
-rw-r--r-- | arch/arm/include/asm/dma-iommu.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/include/asm/dma-iommu.h b/arch/arm/include/asm/dma-iommu.h index a8c56acc8c98..eec0a12c5c1d 100644 --- a/arch/arm/include/asm/dma-iommu.h +++ b/arch/arm/include/asm/dma-iommu.h | |||
@@ -13,9 +13,12 @@ struct dma_iommu_mapping { | |||
13 | /* iommu specific data */ | 13 | /* iommu specific data */ |
14 | struct iommu_domain *domain; | 14 | struct iommu_domain *domain; |
15 | 15 | ||
16 | void *bitmap; | 16 | unsigned long **bitmaps; /* array of bitmaps */ |
17 | size_t bits; | 17 | unsigned int nr_bitmaps; /* nr of elements in array */ |
18 | unsigned int order; | 18 | unsigned int extensions; |
19 | size_t bitmap_size; /* size of a single bitmap */ | ||
20 | size_t bits; /* per bitmap */ | ||
21 | unsigned int size; /* per bitmap */ | ||
19 | dma_addr_t base; | 22 | dma_addr_t base; |
20 | 23 | ||
21 | spinlock_t lock; | 24 | spinlock_t lock; |
@@ -23,8 +26,7 @@ struct dma_iommu_mapping { | |||
23 | }; | 26 | }; |
24 | 27 | ||
25 | struct dma_iommu_mapping * | 28 | struct dma_iommu_mapping * |
26 | arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t size, | 29 | arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t size); |
27 | int order); | ||
28 | 30 | ||
29 | void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping); | 31 | void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping); |
30 | 32 | ||