Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * omap iommu: simple virtual address space management |
| 3 | * |
| 4 | * Copyright (C) 2008-2009 Nokia Corporation |
| 5 | * |
| 6 | * 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. |
| 11 | */ |
| 12 | |
Laurent Pinchart | baaa7b5 | 2014-07-18 12:49:55 +0200 | [diff] [blame] | 13 | #ifndef _OMAP_IOMMU_H_ |
| 14 | #define _OMAP_IOMMU_H_ |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 15 | |
Mauro Carvalho Chehab | c7f1770 | 2018-04-05 10:54:14 -0400 | [diff] [blame] | 16 | #ifdef CONFIG_OMAP_IOMMU |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 17 | extern void omap_iommu_save_ctx(struct device *dev); |
| 18 | extern void omap_iommu_restore_ctx(struct device *dev); |
Mauro Carvalho Chehab | c7f1770 | 2018-04-05 10:54:14 -0400 | [diff] [blame] | 19 | #else |
| 20 | static inline void omap_iommu_save_ctx(struct device *dev) {} |
| 21 | static inline void omap_iommu_restore_ctx(struct device *dev) {} |
| 22 | #endif |
Tony Lindgren | c8d35c8 | 2012-11-02 12:24:03 -0700 | [diff] [blame] | 23 | |
| 24 | #endif |