···483483config SWIOTLB484484 bool "SWIOTLB support"485485 default n486486- select IOMMU_HELPER487486 ---help---488487 Support for IO bounce buffering for systems without an IOMMU.489488 This allows us to DMA to the full physical address space on
···934934935935config IOMMU_HELPER936936 def_bool y937937- depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU937937+ depends on CALGARY_IOMMU || GART_IOMMU938938939939config MAXSMP940940 bool "Enable Maximum number of SMP Processors and NUMA Nodes"
-5
drivers/parisc/Kconfig
···103103 depends on PCI_LBA104104 default PCI_LBA105105106106-config IOMMU_HELPER107107- bool108108- depends on IOMMU_SBA || IOMMU_CCIO109109- default y110110-111106source "drivers/pcmcia/Kconfig"112107113108endmenu
+10-3
include/linux/iommu-helper.h
···22#ifndef _LINUX_IOMMU_HELPER_H33#define _LINUX_IOMMU_HELPER_H4455+#include <linux/bug.h>56#include <linux/kernel.h>6778static inline unsigned long iommu_device_max_index(unsigned long size,···1514 return size;1615}17161818-extern int iommu_is_span_boundary(unsigned int index, unsigned int nr,1919- unsigned long shift,2020- unsigned long boundary_size);1717+static inline int iommu_is_span_boundary(unsigned int index, unsigned int nr,1818+ unsigned long shift, unsigned long boundary_size)1919+{2020+ BUG_ON(!is_power_of_2(boundary_size));2121+2222+ shift = (shift + index) & (boundary_size - 1);2323+ return shift + nr > boundary_size;2424+}2525+2126extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,2227 unsigned long start, unsigned int nr,2328 unsigned long shift,
+1-11
lib/iommu-helper.c
···44 */5566#include <linux/bitmap.h>77-#include <linux/bug.h>88-99-int iommu_is_span_boundary(unsigned int index, unsigned int nr,1010- unsigned long shift,1111- unsigned long boundary_size)1212-{1313- BUG_ON(!is_power_of_2(boundary_size));1414-1515- shift = (shift + index) & (boundary_size - 1);1616- return shift + nr > boundary_size;1717-}77+#include <linux/iommu-helper.h>188199unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,2010 unsigned long start, unsigned int nr,