Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 2 | /* |
| 3 | * omap iommu: simple virtual address space management |
| 4 | * |
| 5 | * Copyright (C) 2008-2009 Nokia Corporation |
| 6 | * |
| 7 | * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com> |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
Laurent Pinchart | baaa7b5 | 2014-07-18 12:49:55 +0200 | [diff] [blame] | 10 | #ifndef _OMAP_IOMMU_H_ |
| 11 | #define _OMAP_IOMMU_H_ |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 12 | |
Mauro Carvalho Chehab | c7f1770 | 2018-04-05 10:54:14 -0400 | [diff] [blame] | 13 | #ifdef CONFIG_OMAP_IOMMU |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 14 | extern void omap_iommu_save_ctx(struct device *dev); |
| 15 | extern void omap_iommu_restore_ctx(struct device *dev); |
Mauro Carvalho Chehab | c7f1770 | 2018-04-05 10:54:14 -0400 | [diff] [blame] | 16 | #else |
| 17 | static inline void omap_iommu_save_ctx(struct device *dev) {} |
| 18 | static inline void omap_iommu_restore_ctx(struct device *dev) {} |
| 19 | #endif |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 20 | |
| 21 | #endif |