aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_gem.h
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-04-03 21:27:58 +0900
committerInki Dae <inki.dae@samsung.com>2012-04-03 21:27:58 +0900
commitdcf9af822803bcc2cd9e8009648547e6060b59a0 (patch)
treef9c9d0d96d6685d04f46ee8190f8e3c24d95d125 /drivers/gpu/drm/exynos/exynos_drm_gem.h
parentdrm: Validate requested virtual size against allocated fb size (diff)
downloadlinux-dev-dcf9af822803bcc2cd9e8009648547e6060b59a0.tar.xz
linux-dev-dcf9af822803bcc2cd9e8009648547e6060b59a0.zip
drm/exynos: fixed page align and code clean.
1M section, 64k page count also should be rounded up so this patch rounds up them and caculates page count of them properly and also checks memory flags from user. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gem.h')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h
index e40fbad8b705..4ed842039505 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.h
@@ -29,6 +29,8 @@
#define to_exynos_gem_obj(x) container_of(x,\
struct exynos_drm_gem_obj, base)
+#define IS_NONCONTIG_BUFFER(f) (f & EXYNOS_BO_NONCONTIG)
+
/*
* exynos drm gem buffer structure.
*