hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/omap-iommu.h
....@@ -1,24 +1,36 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * omap iommu: simple virtual address space management
34 *
45 * Copyright (C) 2008-2009 Nokia Corporation
56 *
67 * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #ifndef _OMAP_IOMMU_H_
1411 #define _OMAP_IOMMU_H_
1512
13
+struct iommu_domain;
14
+
1615 #ifdef CONFIG_OMAP_IOMMU
1716 extern void omap_iommu_save_ctx(struct device *dev);
1817 extern void omap_iommu_restore_ctx(struct device *dev);
18
+
19
+int omap_iommu_domain_deactivate(struct iommu_domain *domain);
20
+int omap_iommu_domain_activate(struct iommu_domain *domain);
1921 #else
2022 static inline void omap_iommu_save_ctx(struct device *dev) {}
2123 static inline void omap_iommu_restore_ctx(struct device *dev) {}
24
+
25
+static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
26
+{
27
+ return -ENODEV;
28
+}
29
+
30
+static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
31
+{
32
+ return -ENODEV;
33
+}
2234 #endif
2335
2436 #endif