summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-03-16 18:47:05 +0900
committerDave Airlie <airlied@redhat.com>2012-03-20 09:40:21 +0000
commit2b35892e9da672df40ce890bffc4f9f6119c57e0 (patch)
tree89c7faa07c4ffd583d08f83c0ddf7f8b7da01f76 /include/drm
parent1de425b0bdbc457dbd4a012760da4a3f204d0ab3 (diff)
drm/exynos: update gem and buffer framework.
with this patch, we can allocate physically continuous or non-continuous memory and also it creates scatterlist for iommu support so allocated memory region can be mapped to iommu page table using scatterlist. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/exynos_drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/exynos_drm.h b/include/drm/exynos_drm.h
index aff2313c127..81c9cb77476 100644
--- a/include/drm/exynos_drm.h
+++ b/include/drm/exynos_drm.h
@@ -79,6 +79,12 @@ struct drm_exynos_plane_set_zpos {
__s32 zpos;
};
+/* memory type definitions. */
+enum e_drm_exynos_gem_mem_type {
+ /* Physically Non-Continuous memory. */
+ EXYNOS_BO_NONCONTIG = 1 << 0
+};
+
#define DRM_EXYNOS_GEM_CREATE 0x00
#define DRM_EXYNOS_GEM_MAP_OFFSET 0x01
#define DRM_EXYNOS_GEM_MMAP 0x02