diff options
author | David S. Miller <davem@davemloft.net> | 2015-04-18 15:31:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-18 15:31:25 -0400 |
commit | c12f048ffdf3a5802239426dc290290929268dc9 (patch) | |
tree | 89fa401142c58061744653492ca8b720d5b2d7b5 /arch/sparc/include | |
parent | 04b7fe6a4a231871ef681bc95e08fe66992f7b1f (diff) |
sparc: Revert generic IOMMU allocator.
I applied the wrong version of this patch series, V4 instead
of V10, due to a patchwork bundling snafu.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/iommu_64.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/include/asm/iommu_64.h b/arch/sparc/include/asm/iommu_64.h index e3cd4493d81d..2b9321ab064d 100644 --- a/arch/sparc/include/asm/iommu_64.h +++ b/arch/sparc/include/asm/iommu_64.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #define IOPTE_WRITE 0x0000000000000002UL | 16 | #define IOPTE_WRITE 0x0000000000000002UL |
17 | 17 | ||
18 | #define IOMMU_NUM_CTXS 4096 | 18 | #define IOMMU_NUM_CTXS 4096 |
19 | #include <linux/iommu-common.h> | ||
20 | 19 | ||
21 | struct iommu_arena { | 20 | struct iommu_arena { |
22 | unsigned long *map; | 21 | unsigned long *map; |
@@ -25,10 +24,11 @@ struct iommu_arena { | |||
25 | }; | 24 | }; |
26 | 25 | ||
27 | struct iommu { | 26 | struct iommu { |
28 | struct iommu_table tbl; | ||
29 | spinlock_t lock; | 27 | spinlock_t lock; |
30 | u32 dma_addr_mask; | 28 | struct iommu_arena arena; |
29 | void (*flush_all)(struct iommu *); | ||
31 | iopte_t *page_table; | 30 | iopte_t *page_table; |
31 | u32 page_table_map_base; | ||
32 | unsigned long iommu_control; | 32 | unsigned long iommu_control; |
33 | unsigned long iommu_tsbbase; | 33 | unsigned long iommu_tsbbase; |
34 | unsigned long iommu_flush; | 34 | unsigned long iommu_flush; |
@@ -40,6 +40,7 @@ struct iommu { | |||
40 | unsigned long dummy_page_pa; | 40 | unsigned long dummy_page_pa; |
41 | unsigned long ctx_lowest_free; | 41 | unsigned long ctx_lowest_free; |
42 | DECLARE_BITMAP(ctx_bitmap, IOMMU_NUM_CTXS); | 42 | DECLARE_BITMAP(ctx_bitmap, IOMMU_NUM_CTXS); |
43 | u32 dma_addr_mask; | ||
43 | }; | 44 | }; |
44 | 45 | ||
45 | struct strbuf { | 46 | struct strbuf { |