X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=exynos%2Fexynos_drm.h;h=f403a6726fbb22f2624c3078b6f478ce165c6ea7;hb=6e97f25af63a9511ddd3b195a0b844671b8d1a5d;hp=77c87d5dc255572c6af3c22a4eea1e7a514ec478;hpb=90a031be9db6f2bb9836d2ef81e71fdea459c6b6;p=platform%2Fupstream%2Flibdrm.git diff --git a/exynos/exynos_drm.h b/exynos/exynos_drm.h index 77c87d5..f403a67 100644 --- a/exynos/exynos_drm.h +++ b/exynos/exynos_drm.h @@ -47,6 +47,19 @@ struct drm_exynos_gem_create { }; /** + * A structure for getting a fake-offset that can be used with mmap. + * + * @handle: handle of gem object. + * @reserved: just padding to be 64-bit aligned. + * @offset: a fake-offset of gem object. + */ +struct drm_exynos_gem_map { + __u32 handle; + __u32 reserved; + __u64 offset; +}; + +/** * A structure to gem information. * * @handle: a handle to gem object created. @@ -377,6 +390,7 @@ struct drm_exynos_ipp_cmd_ctrl { }; #define DRM_EXYNOS_GEM_CREATE 0x00 +#define DRM_EXYNOS_GEM_MAP 0x01 /* Reserved 0x03 ~ 0x05 for exynos specific gem ioctl */ #define DRM_EXYNOS_GEM_GET 0x04 #define DRM_EXYNOS_VIDI_CONNECTION 0x07 @@ -394,7 +408,8 @@ struct drm_exynos_ipp_cmd_ctrl { #define DRM_IOCTL_EXYNOS_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + \ DRM_EXYNOS_GEM_CREATE, struct drm_exynos_gem_create) - +#define DRM_IOCTL_EXYNOS_GEM_MAP DRM_IOWR(DRM_COMMAND_BASE + \ + DRM_EXYNOS_GEM_MAP, struct drm_exynos_gem_map) #define DRM_IOCTL_EXYNOS_GEM_GET DRM_IOWR(DRM_COMMAND_BASE + \ DRM_EXYNOS_GEM_GET, struct drm_exynos_gem_info)