From 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:46:07 +0000 Subject: [PATCH] add audio --- kernel/include/soc/rockchip/rockchip_iommu.h | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/kernel/include/soc/rockchip/rockchip_iommu.h b/kernel/include/soc/rockchip/rockchip_iommu.h index cfae9b3..28af038 100644 --- a/kernel/include/soc/rockchip/rockchip_iommu.h +++ b/kernel/include/soc/rockchip/rockchip_iommu.h @@ -10,9 +10,11 @@ #if IS_ENABLED(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