summaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2008-12-16 12:17:27 -0800
committerIngo Molnar <mingo@elte.hu>2008-12-16 21:31:40 +0100
commit0016fdee927f7aa0f428494bcf11ae60c7470a02 (patch)
treeca1080f691efe9c6f76965d38fface872fb856ac /include/linux/swiotlb.h
parent8c5df16bec8a60bb8589fc232b9e26cac0ed4b2c (diff)
downloadblackbird-op-linux-0016fdee927f7aa0f428494bcf11ae60c7470a02.tar.gz
blackbird-op-linux-0016fdee927f7aa0f428494bcf11ae60c7470a02.zip
swiotlb: move some definitions to header
Impact: cleanup Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index b8c5fc766a56..58b996a642f9 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -7,6 +7,20 @@ struct device;
struct dma_attrs;
struct scatterlist;
+/*
+ * Maximum allowable number of contiguous slabs to map,
+ * must be a power of 2. What is the appropriate value ?
+ * The complexity of {map,unmap}_single is linearly dependent on this value.
+ */
+#define IO_TLB_SEGSIZE 128
+
+
+/*
+ * log of the size of each IO TLB slab. The number of slabs is command line
+ * controllable.
+ */
+#define IO_TLB_SHIFT 11
+
extern void
swiotlb_init(void);
OpenPOWER on IntegriCloud