diff options
author | Rob Clark <robdclark@gmail.com> | 2013-08-07 21:41:24 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-19 04:36:04 +0400 |
commit | bcc5c9d50e93bb7d949f6f38063b62dd35ca84d1 (patch) | |
tree | b1390993cb1b234f2a67a6e6dcb603472936dbbf /include/drm/drmP.h | |
parent | 367bbd49202dd256dce1217c2f7cd0d5d1916f7b (diff) | |
download | linux-bcc5c9d50e93bb7d949f6f38063b62dd35ca84d1.tar.xz |
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/drm/drmP.h')
-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 d6d9a28fc6b4..91f343c8b160 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1616,6 +1616,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); |