summaryrefslogtreecommitdiffstats
path: root/include/linux/iommu-helper.h
blob: f8598f583944a5355b4ee33ddef3a785b3adcc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern int iommu_is_span_boundary(unsigned int index, unsigned int nr,
				  unsigned long shift,
				  unsigned long boundary_size);
extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
				      unsigned long start, unsigned int nr,
				      unsigned long shift,
				      unsigned long boundary_size,
				      unsigned long align_mask);
extern void iommu_area_free(unsigned long *map, unsigned long start,
			    unsigned int nr);
extern unsigned long iommu_num_pages(unsigned long addr, unsigned long len);