2012-11-03 03:24:03 +08:00
|
|
|
/*
|
|
|
|
* omap iommu: simple virtual address space management
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008-2009 Nokia Corporation
|
|
|
|
*
|
|
|
|
* Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2014-07-18 18:49:55 +08:00
|
|
|
#ifndef _OMAP_IOMMU_H_
|
|
|
|
#define _OMAP_IOMMU_H_
|
2012-11-03 03:24:03 +08:00
|
|
|
|
2018-04-05 22:54:14 +08:00
|
|
|
#ifdef CONFIG_OMAP_IOMMU
|
2012-11-03 03:24:03 +08:00
|
|
|
extern void omap_iommu_save_ctx(struct device *dev);
|
|
|
|
extern void omap_iommu_restore_ctx(struct device *dev);
|
2018-04-05 22:54:14 +08:00
|
|
|
#else
|
|
|
|
static inline void omap_iommu_save_ctx(struct device *dev) {}
|
|
|
|
static inline void omap_iommu_restore_ctx(struct device *dev) {}
|
|
|
|
#endif
|
2012-11-03 03:24:03 +08:00
|
|
|
|
|
|
|
#endif
|