s5p_mfc_iommu.h 696 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef S5P_MFC_IOMMU_H_
  11. #define S5P_MFC_IOMMU_H_
  12. #if defined(CONFIG_EXYNOS_IOMMU)
  13. static inline bool exynos_is_iommu_available(struct device *dev)
  14. {
  15. return dev->archdata.iommu != NULL;
  16. }
  17. #else
  18. static inline bool exynos_is_iommu_available(struct device *dev)
  19. {
  20. return false;
  21. }
  22. #endif
  23. #endif /* S5P_MFC_IOMMU_H_ */