#ifndef _ASM_SWIOTLB_H
#define _ASM_SWIOTLB_H 1
-#include <linux/config.h>
-#include <asm/scatterlist.h>
-
/* SWIOTLB interface */
extern dma_addr_t swiotlb_map_single(struct device *hwdev, void *ptr, size_t size,
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