summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/etnaviv/etnaviv_iommu.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-02-08 12:13:22 +0100
committerIngo Molnar <mingo@kernel.org>2016-02-08 12:13:22 +0100
commitb349e9a916772e867d0f9246d2978799897b2495 (patch)
treebaebdc1a0c1176198518ba6991fbf42ce4614910 /drivers/gpu/drm/etnaviv/etnaviv_iommu.h
parent7c360572b430a0e9757bafc0c20f26c920f2a07f (diff)
parent59fd1214561921343305a0e9dc218bf3d40068f3 (diff)
downloadlinux-b349e9a916772e867d0f9246d2978799897b2495.tar.gz
linux-b349e9a916772e867d0f9246d2978799897b2495.tar.bz2
linux-b349e9a916772e867d0f9246d2978799897b2495.zip
Merge branch 'x86/urgent' into x86/mm, to pick up dependent fix
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_iommu.h')
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_iommu.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_iommu.h b/drivers/gpu/drm/etnaviv/etnaviv_iommu.h
new file mode 100644
index 000000000000..cf45503f6b6f
--- /dev/null
+++ b/drivers/gpu/drm/etnaviv/etnaviv_iommu.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2014 Christian Gmeiner <christian.gmeiner@gmail.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.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __ETNAVIV_IOMMU_H__
+#define __ETNAVIV_IOMMU_H__
+
+#include <linux/iommu.h>
+struct etnaviv_gpu;
+
+struct iommu_domain *etnaviv_iommu_domain_alloc(struct etnaviv_gpu *gpu);
+void etnaviv_iommu_domain_restore(struct etnaviv_gpu *gpu,
+ struct iommu_domain *domain);
+struct iommu_domain *etnaviv_iommu_v2_domain_alloc(struct etnaviv_gpu *gpu);
+
+#endif /* __ETNAVIV_IOMMU_H__ */