1 /*
2  * Copyright (C) 2015 Samsung Electronics Co.Ltd
3  * Authors: Marek Szyprowski <m.szyprowski@samsung.com>
4  *
5  * This program is free software; you can redistribute  it and/or modify it
6  * under  the terms of  the GNU General  Public License as published by the
7  * Free Software Foundation;  either version 2 of the  License, or (at your
8  * option) any later version.
9  */
10 
11 #ifndef S5P_MFC_IOMMU_H_
12 #define S5P_MFC_IOMMU_H_
13 
14 #if defined(CONFIG_EXYNOS_IOMMU)
15 
exynos_is_iommu_available(struct device * dev)16 static inline bool exynos_is_iommu_available(struct device *dev)
17 {
18 	return dev->archdata.iommu != NULL;
19 }
20 
21 #else
22 
exynos_is_iommu_available(struct device * dev)23 static inline bool exynos_is_iommu_available(struct device *dev)
24 {
25 	return false;
26 }
27 
28 #endif
29 
30 #endif /* S5P_MFC_IOMMU_H_ */
31