#ifndef __ASM_PLAT_IOVMM_H
#define __ASM_PLAT_IOVMM_H
-#ifdef CONFIG_ROCKCHIP_IOVMM
struct scatterlist;
struct device;
+#ifdef CONFIG_ROCKCHIP_IOVMM
int iovmm_activate(struct device *dev);
void iovmm_deactivate(struct device *dev);
#include <linux/list.h>
#include <linux/atomic.h>
#include <linux/spinlock.h>
+#include <linux/device.h>
#define IEP_SYSMMU_COMPATIBLE_NAME "iommu,iep_mmu"
#define VIP_SYSMMU_COMPATIBLE_NAME "iommu,vip_mmu"
#endif
#ifdef CONFIG_IOMMU_API
-#include <linux/device.h>
static inline void platform_set_sysmmu(struct device *sysmmu, struct device *dev)
{
dev->archdata.iommu = sysmmu;