aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/exynos_drm.h
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-05-04 02:51:17 -0400
committerInki Dae <inki.dae@samsung.com>2012-05-08 05:46:32 -0400
commit40cd7e0c02f37af4b44fc00531873832e45587e9 (patch)
treed941353be010a62e1a2154a54b5b11a73c4ca6a3 /include/drm/exynos_drm.h
parentb2df26c10b16afe2eed904f2b85a4d2047531d30 (diff)
drm/exynos: added a feature to get gem buffer information.
this patch adds a feature to get a gem buffer information and user application can get the gem buffer information simply in runtime through gem handle. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include/drm/exynos_drm.h')
-rw-r--r--include/drm/exynos_drm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/drm/exynos_drm.h b/include/drm/exynos_drm.h
index 2d6eb06637bf..70c0f7e7db82 100644
--- a/include/drm/exynos_drm.h
+++ b/include/drm/exynos_drm.h
@@ -75,6 +75,21 @@ struct drm_exynos_gem_mmap {
75}; 75};
76 76
77/** 77/**
78 * A structure to gem information.
79 *
80 * @handle: a handle to gem object created.
81 * @flags: flag value including memory type and cache attribute and
82 * this value would be set by driver.
83 * @size: size to memory region allocated by gem and this size would
84 * be set by driver.
85 */
86struct drm_exynos_gem_info {
87 unsigned int handle;
88 unsigned int flags;
89 uint64_t size;
90};
91
92/**
78 * A structure for user connection request of virtual display. 93 * A structure for user connection request of virtual display.
79 * 94 *
80 * @connection: indicate whether doing connetion or not by user. 95 * @connection: indicate whether doing connetion or not by user.
@@ -113,6 +128,7 @@ enum e_drm_exynos_gem_mem_type {
113#define DRM_EXYNOS_GEM_MAP_OFFSET 0x01 128#define DRM_EXYNOS_GEM_MAP_OFFSET 0x01
114#define DRM_EXYNOS_GEM_MMAP 0x02 129#define DRM_EXYNOS_GEM_MMAP 0x02
115/* Reserved 0x03 ~ 0x05 for exynos specific gem ioctl */ 130/* Reserved 0x03 ~ 0x05 for exynos specific gem ioctl */
131#define DRM_EXYNOS_GEM_GET 0x04
116#define DRM_EXYNOS_PLANE_SET_ZPOS 0x06 132#define DRM_EXYNOS_PLANE_SET_ZPOS 0x06
117#define DRM_EXYNOS_VIDI_CONNECTION 0x07 133#define DRM_EXYNOS_VIDI_CONNECTION 0x07
118 134
@@ -125,6 +141,9 @@ enum e_drm_exynos_gem_mem_type {
125#define DRM_IOCTL_EXYNOS_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + \ 141#define DRM_IOCTL_EXYNOS_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + \
126 DRM_EXYNOS_GEM_MMAP, struct drm_exynos_gem_mmap) 142 DRM_EXYNOS_GEM_MMAP, struct drm_exynos_gem_mmap)
127 143
144#define DRM_IOCTL_EXYNOS_GEM_GET DRM_IOWR(DRM_COMMAND_BASE + \
145 DRM_EXYNOS_GEM_GET, struct drm_exynos_gem_info)
146
128#define DRM_IOCTL_EXYNOS_PLANE_SET_ZPOS DRM_IOWR(DRM_COMMAND_BASE + \ 147#define DRM_IOCTL_EXYNOS_PLANE_SET_ZPOS DRM_IOWR(DRM_COMMAND_BASE + \
129 DRM_EXYNOS_PLANE_SET_ZPOS, struct drm_exynos_plane_set_zpos) 148 DRM_EXYNOS_PLANE_SET_ZPOS, struct drm_exynos_plane_set_zpos)
130 149