diff options
author | Rob Clark <robdclark@gmail.com> | 2013-08-07 13:41:24 -0400 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-21 19:13:42 +0900 |
commit | b76be4ede92521b826622ff4fed8a59962fca647 (patch) | |
tree | 08967b5943eec66911939bc3eb75ab476cbcda11 /include | |
parent | 7bde9c1f036e959cb656f1a8d98bd7be8e5d6614 (diff) | |
download | linux-3.10-b76be4ede92521b826622ff4fed8a59962fca647.tar.gz linux-3.10-b76be4ede92521b826622ff4fed8a59962fca647.tar.bz2 linux-3.10-b76be4ede92521b826622ff4fed8a59962fca647.zip |
drm/gem: add shmem get/put page helpers
Basically just extracting some code duplicated in gma500, omapdrm, udl,
and upcoming msm driver.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 12800e48dc1..3a732996cc7 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1761,6 +1761,10 @@ void drm_gem_free_mmap_offset(struct drm_gem_object *obj); int drm_gem_create_mmap_offset(struct drm_gem_object *obj); int drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size); +struct page **drm_gem_get_pages(struct drm_gem_object *obj, gfp_t gfpmask); +void drm_gem_put_pages(struct drm_gem_object *obj, struct page **pages, + bool dirty, bool accessed); + struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev, struct drm_file *filp, u32 handle); |