2019-06-04 10:11:33 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-11-02 12:24:03 -07:00
|
|
|
/*
|
|
|
|
|
* omap iommu: simple virtual address space management
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2008-2009 Nokia Corporation
|
|
|
|
|
*
|
|
|
|
|
* Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
|
|
|
|
|
*/
|
|
|
|
|
|
2014-07-18 12:49:55 +02:00
|
|
|
#ifndef _OMAP_IOMMU_H_
|
|
|
|
|
#define _OMAP_IOMMU_H_
|
2012-11-02 12:24:03 -07:00
|
|
|
|
2019-08-07 11:26:50 +03:00
|
|
|
struct iommu_domain;
|
|
|
|
|
|
2018-04-05 10:54:14 -04:00
|
|
|
#ifdef CONFIG_OMAP_IOMMU
|
2012-11-02 12:24:03 -07:00
|
|
|
extern void omap_iommu_save_ctx(struct device *dev);
|
|
|
|
|
extern void omap_iommu_restore_ctx(struct device *dev);
|
2019-08-07 11:26:50 +03:00
|
|
|
|
|
|
|
|
int omap_iommu_domain_deactivate(struct iommu_domain *domain);
|
|
|
|
|
int omap_iommu_domain_activate(struct iommu_domain *domain);
|
2018-04-05 10:54:14 -04:00
|
|
|
#else
|
|
|
|
|
static inline void omap_iommu_save_ctx(struct device *dev) {}
|
|
|
|
|
static inline void omap_iommu_restore_ctx(struct device *dev) {}
|
2019-08-07 11:26:50 +03:00
|
|
|
|
2019-08-09 18:09:13 +02:00
|
|
|
static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
|
|
|
|
|
{
|
|
|
|
|
return -ENODEV;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
|
|
|
|
|
{
|
|
|
|
|
return -ENODEV;
|
|
|
|
|
}
|
2018-04-05 10:54:14 -04:00
|
|
|
#endif
|
2012-11-02 12:24:03 -07:00
|
|
|
|
|
|
|
|
#endif
|