From e3e12f52b214121840b44c91de5b3e5af5d3eb84 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 06 Nov 2023 03:04:41 +0000 Subject: [PATCH] rk3568 rt init --- kernel/include/soc/rockchip/rockchip_iommu.h | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/kernel/include/soc/rockchip/rockchip_iommu.h b/kernel/include/soc/rockchip/rockchip_iommu.h index 5a2d58e..cfae9b3 100644 --- a/kernel/include/soc/rockchip/rockchip_iommu.h +++ b/kernel/include/soc/rockchip/rockchip_iommu.h @@ -11,6 +11,9 @@ int rockchip_iommu_enable(struct device *dev); int rockchip_iommu_disable(struct device *dev); bool rockchip_iommu_is_enabled(struct device *dev); +int rockchip_pagefault_done(struct device *master_dev); +void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx); +int rockchip_iommu_force_reset(struct device *dev); #else static inline int rockchip_iommu_enable(struct device *dev) { @@ -24,6 +27,18 @@ { return false; } +static inline int rockchip_pagefault_done(struct device *master_dev) +{ + return 0; +} +static inline void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx) +{ + return NULL; +} +static inline int rockchip_iommu_force_reset(struct device *dev) +{ + return -ENODEV; +} #endif #endif -- Gitblit v1.6.2