X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-i386%2Fmach-xen%2Fasm%2Fswiotlb.h;h=cf4ba38f89d3542a741570963aaa5c882eef40c5;hb=refs%2Fheads%2Fvserver;hp=9a36815acb4a6c44dcc09e39e16e5e5fe13d9ae8;hpb=1db395853d4f30d6120458bd279ede1f882a8525;p=linux-2.6.git diff --git a/include/asm-i386/mach-xen/asm/swiotlb.h b/include/asm-i386/mach-xen/asm/swiotlb.h index 9a36815ac..cf4ba38f8 100644 --- a/include/asm-i386/mach-xen/asm/swiotlb.h +++ b/include/asm-i386/mach-xen/asm/swiotlb.h @@ -1,9 +1,6 @@ #ifndef _ASM_SWIOTLB_H #define _ASM_SWIOTLB_H 1 -#include -#include - /* SWIOTLB interface */ extern dma_addr_t swiotlb_map_single(struct device *hwdev, void *ptr, size_t size, @@ -35,6 +32,9 @@ extern void swiotlb_unmap_page(struct device *hwdev, dma_addr_t dma_address, extern int swiotlb_dma_supported(struct device *hwdev, u64 mask); extern void swiotlb_init(void); +/* Width of DMA addresses in the IO TLB. 30 bits is a b44 limitation. */ +#define IO_TLB_DMA_BITS 30 + #ifdef CONFIG_SWIOTLB extern int swiotlb; #else