lkml.org 
[lkml]   [2008]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 04 of 38] swiotlb: move some definitions to header
From
On Thu, 13 Nov 2008 11:10:02 -0800
Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> From: Ian Campbell <ian.campbell@citrix.com>
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> ---
> include/linux/swiotlb.h | 14 ++++++++++++++
> lib/swiotlb.c | 14 +-------------
> 2 files changed, 15 insertions(+), 13 deletions(-)
>
> diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
> --- a/include/linux/swiotlb.h
> +++ b/include/linux/swiotlb.h
> @@ -7,6 +7,20 @@
> 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
> +

Why do we need to export IO_TLB_SEGSIZE and IO_TLB_SHIFT to everyone
in include/linux?


\
 
 \ /
  Last update: 2008-11-17 04:53    [W:0.251 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site