diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-09 15:05:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-19 23:19:25 -0400 |
commit | 1d397043bcc2c8cdccb584a8ef73131f28f18e4c (patch) | |
tree | 564c09e78bffef21ff65988ea76380db132cc02a /include | |
parent | 153549b8b63d71a9c5d8cbde887097b995c32bd6 (diff) |
drm: extract drm_gem_object_init
This function can be used by drivers who allocate the drm gem object
on their own. No functional change in here, just preparation.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 2f3b3a00b7a3..b3b57b561b92 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1432,6 +1432,8 @@ void drm_gem_object_free(struct kref *kref); | |||
1432 | void drm_gem_object_free_unlocked(struct kref *kref); | 1432 | void drm_gem_object_free_unlocked(struct kref *kref); |
1433 | struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev, | 1433 | struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev, |
1434 | size_t size); | 1434 | size_t size); |
1435 | int drm_gem_object_init(struct drm_device *dev, | ||
1436 | struct drm_gem_object *obj, size_t size); | ||
1435 | void drm_gem_object_handle_free(struct kref *kref); | 1437 | void drm_gem_object_handle_free(struct kref *kref); |
1436 | void drm_gem_vm_open(struct vm_area_struct *vma); | 1438 | void drm_gem_vm_open(struct vm_area_struct *vma); |
1437 | void drm_gem_vm_close(struct vm_area_struct *vma); | 1439 | void drm_gem_vm_close(struct vm_area_struct *vma); |