diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2008-12-16 12:17:27 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-16 21:31:40 +0100 |
commit | 0016fdee927f7aa0f428494bcf11ae60c7470a02 (patch) | |
tree | ca1080f691efe9c6f76965d38fface872fb856ac /lib/swiotlb.c | |
parent | 8c5df16bec8a60bb8589fc232b9e26cac0ed4b2c (diff) | |
download | kernel_goldelico_gta04-0016fdee927f7aa0f428494bcf11ae60c7470a02.zip kernel_goldelico_gta04-0016fdee927f7aa0f428494bcf11ae60c7470a02.tar.gz kernel_goldelico_gta04-0016fdee927f7aa0f428494bcf11ae60c7470a02.tar.bz2 |
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 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index abecb28..db724ba 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -23,6 +23,7 @@ #include <linux/spinlock.h> #include <linux/swiotlb.h> #include <linux/string.h> +#include <linux/swiotlb.h> #include <linux/types.h> #include <linux/ctype.h> @@ -40,19 +41,6 @@ #define SG_ENT_VIRT_ADDRESS(sg) (sg_virt((sg))) #define SG_ENT_PHYS_ADDRESS(sg) virt_to_bus(SG_ENT_VIRT_ADDRESS(sg)) -/* - * 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 - #define SLABS_PER_PAGE (1 << (PAGE_SHIFT - IO_TLB_SHIFT)) /* |