summaryrefslogtreecommitdiff
path: root/include/asm-sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 00:12:09 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:55:43 -0700
commit66875088098f314af1a4d9e0cc47e617d643bffd (patch)
tree52db91a75778d9a5b155a88f860c9656a7de1c15 /include/asm-sparc64
parent9b3627f389c07c5be9c86ac4d472a0d4fd47feac (diff)
downloadlinux-3.10-66875088098f314af1a4d9e0cc47e617d643bffd.tar.gz
linux-3.10-66875088098f314af1a4d9e0cc47e617d643bffd.tar.bz2
linux-3.10-66875088098f314af1a4d9e0cc47e617d643bffd.zip
[SPARC64]: Add generic iommu and strbuf structs to iommu.h
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r--include/asm-sparc64/iommu.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/asm-sparc64/iommu.h b/include/asm-sparc64/iommu.h
index d8d98f8f747..e199594a1e9 100644
--- a/include/asm-sparc64/iommu.h
+++ b/include/asm-sparc64/iommu.h
@@ -24,4 +24,33 @@ struct iommu_arena {
unsigned int limit;
};
+struct iommu {
+ spinlock_t lock;
+ struct iommu_arena arena;
+ iopte_t *page_table;
+ u32 page_table_map_base;
+ unsigned long iommu_control;
+ unsigned long iommu_tsbbase;
+ unsigned long iommu_flush;
+ unsigned long iommu_ctxflush;
+ unsigned long write_complete_reg;
+ unsigned long dummy_page;
+ unsigned long dummy_page_pa;
+ unsigned long ctx_lowest_free;
+ DECLARE_BITMAP(ctx_bitmap, IOMMU_NUM_CTXS);
+ u32 dma_addr_mask;
+};
+
+struct strbuf {
+ int strbuf_enabled;
+ unsigned long strbuf_control;
+ unsigned long strbuf_pflush;
+ unsigned long strbuf_fsync;
+ unsigned long strbuf_ctxflush;
+ unsigned long strbuf_ctxmatch_base;
+ unsigned long strbuf_flushflag_pa;
+ volatile unsigned long *strbuf_flushflag;
+ volatile unsigned long __flushflag_buf[(64+(64-1)) / sizeof(long)];
+};
+
#endif /* !(_SPARC_IOMMU_H) */