Linux-libre 4.14.69-gnu
[librecmc/linux-libre.git] / drivers / media / platform / s5p-mfc / s5p_mfc_iommu.h
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
16 static inline bool exynos_is_iommu_available(struct device *dev)
17 {
18         return dev->archdata.iommu != NULL;
19 }
20
21 #else
22
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_ */