hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/soc/rockchip/rockchip_iommu.h
....@@ -11,6 +11,9 @@
1111 int rockchip_iommu_enable(struct device *dev);
1212 int rockchip_iommu_disable(struct device *dev);
1313 bool rockchip_iommu_is_enabled(struct device *dev);
14
+int rockchip_pagefault_done(struct device *master_dev);
15
+void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx);
16
+int rockchip_iommu_force_reset(struct device *dev);
1417 #else
1518 static inline int rockchip_iommu_enable(struct device *dev)
1619 {
....@@ -24,6 +27,18 @@
2427 {
2528 return false;
2629 }
30
+static inline int rockchip_pagefault_done(struct device *master_dev)
31
+{
32
+ return 0;
33
+}
34
+static inline void __iomem *rockchip_get_iommu_base(struct device *master_dev, int idx)
35
+{
36
+ return NULL;
37
+}
38
+static inline int rockchip_iommu_force_reset(struct device *dev)
39
+{
40
+ return -ENODEV;
41
+}
2742 #endif
2843
2944 #endif