kernel-fxtec-pro1x/include/linux/of_iommu.h
Prakash Gupta b86d7318eb iommu: arm-smmu: Add atos self test
Add atos self test to perform atos for different sids. To enable,
set CONFIG_ARM_SMMU_SELFTEST and arm_smmu.selftest=1 and set the
sids and masks in arm_smmu.selftestsids in the below format
smmu_name,no_of_sids,sid:mask.

for eg: arm_smmu.selftestsids=kgsl,0x1,0x7:0x400,apps,0x2,
	0x1:0x0,0x51f:0x0

Change-Id: I74134ed712e06a17b1570256e2ee3820df2f4457
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-04-24 09:54:37 +05:30

38 lines
915 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __OF_IOMMU_H
#define __OF_IOMMU_H
#include <linux/device.h>
#include <linux/iommu.h>
#include <linux/of.h>
#ifdef CONFIG_OF_IOMMU
extern int of_get_dma_window(struct device_node *dn, const char *prefix,
int index, unsigned long *busno, dma_addr_t *addr,
size_t *size);
extern const struct iommu_ops *of_iommu_configure(struct device *dev,
struct device_node *master_np);
extern int of_iommu_fill_fwspec(struct device *dev, struct of_phandle_args
*iommu_spec);
#else
static inline int of_get_dma_window(struct device_node *dn, const char *prefix,
int index, unsigned long *busno, dma_addr_t *addr,
size_t *size)
{
return -EINVAL;
}
static inline const struct iommu_ops *of_iommu_configure(struct device *dev,
struct device_node *master_np)
{
return NULL;
}
#endif /* CONFIG_OF_IOMMU */
#endif /* __OF_IOMMU_H */