1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd 4 */ 5 #ifndef __SOC_ROCKCHIP_IOMMU_H 6 #define __SOC_ROCKCHIP_IOMMU_H 7 8 struct device; 9 10 #if IS_ENABLED(CONFIG_ROCKCHIP_IOMMU) 11 int rockchip_iommu_enable(struct device *dev); 12 int rockchip_iommu_disable(struct device *dev); 13 #else rockchip_iommu_enable(struct device * dev)14static inline int rockchip_iommu_enable(struct device *dev) 15 { 16 return -ENODEV; 17 } rockchip_iommu_disable(struct device * dev)18static inline int rockchip_iommu_disable(struct device *dev) 19 { 20 return -ENODEV; 21 } 22 #endif 23 24 #endif 25