From 10ebd8556b7990499c896a550e3d416b444211e6 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 02:23:07 +0000
Subject: [PATCH] add led

---
 kernel/include/soc/rockchip/rockchip_iommu.h |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/kernel/include/soc/rockchip/rockchip_iommu.h b/kernel/include/soc/rockchip/rockchip_iommu.h
index cfae9b3..191a2fd 100644
--- a/kernel/include/soc/rockchip/rockchip_iommu.h
+++ b/kernel/include/soc/rockchip/rockchip_iommu.h
@@ -7,12 +7,14 @@
 
 struct device;
 
-#if IS_ENABLED(CONFIG_ROCKCHIP_IOMMU)
+#if IS_REACHABLE(CONFIG_ROCKCHIP_IOMMU)
 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);
+bool rockchip_iommu_is_enabled(struct device *dev);
+void rockchip_iommu_mask_irq(struct device *dev);
+void rockchip_iommu_unmask_irq(struct device *dev);
 int rockchip_iommu_force_reset(struct device *dev);
 #else
 static inline int rockchip_iommu_enable(struct device *dev)
@@ -23,10 +25,6 @@
 {
 	return -ENODEV;
 }
-static inline bool rockchip_iommu_is_enabled(struct device *dev)
-{
-	return false;
-}
 static inline int rockchip_pagefault_done(struct device *master_dev)
 {
 	return 0;
@@ -35,6 +33,16 @@
 {
 	return NULL;
 }
+static inline bool rockchip_iommu_is_enabled(struct device *dev)
+{
+	return false;
+}
+static inline void rockchip_iommu_mask_irq(struct device *dev)
+{
+}
+static inline void rockchip_iommu_unmask_irq(struct device *dev)
+{
+}
 static inline int rockchip_iommu_force_reset(struct device *dev)
 {
 	return -ENODEV;

--
Gitblit v1.6.2