blob: 153bf25b4df366d01f0ce16bd6e9b75f9ae9eaae [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Tony Lindgrenc8d35c82012-11-02 12:24:03 -07002/*
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 Lindgrenc8d35c82012-11-02 12:24:03 -07008 */
9
Laurent Pinchartbaaa7b52014-07-18 12:49:55 +020010#ifndef _OMAP_IOMMU_H_
11#define _OMAP_IOMMU_H_
Tony Lindgrenc8d35c82012-11-02 12:24:03 -070012
Mauro Carvalho Chehabc7f17702018-04-05 10:54:14 -040013#ifdef CONFIG_OMAP_IOMMU
Tony Lindgrenc8d35c82012-11-02 12:24:03 -070014extern void omap_iommu_save_ctx(struct device *dev);
15extern void omap_iommu_restore_ctx(struct device *dev);
Mauro Carvalho Chehabc7f17702018-04-05 10:54:14 -040016#else
17static inline void omap_iommu_save_ctx(struct device *dev) {}
18static inline void omap_iommu_restore_ctx(struct device *dev) {}
19#endif
Tony Lindgrenc8d35c82012-11-02 12:24:03 -070020
21#endif