summaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-09 00:24:59 +0000
committerDave Airlie <airlied@redhat.com>2011-06-21 12:32:33 +1000
commit304eda32920b5e23f6b9bc12eb40c7dc52a464ba (patch)
treec36e760a7ea45158999fe541134bff7841af94c5 /include/drm/drmP.h
parenta377e187df725fe7e62d2cec59ec290c5a605d93 (diff)
downloadlinux-stable-304eda32920b5e23f6b9bc12eb40c7dc52a464ba.tar.gz
linux-stable-304eda32920b5e23f6b9bc12eb40c7dc52a464ba.tar.bz2
linux-stable-304eda32920b5e23f6b9bc12eb40c7dc52a464ba.zip
drm/gem: add hooks to notify driver when object handle is created/destroyed
Nouveau is going to use these hooks to map/unmap objects from a client's private GPU address space. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 738b3a5faa12..4912cb75ae4c 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -886,6 +886,8 @@ struct drm_driver {
*/
int (*gem_init_object) (struct drm_gem_object *obj);
void (*gem_free_object) (struct drm_gem_object *obj);
+ int (*gem_open_object) (struct drm_gem_object *, struct drm_file *);
+ void (*gem_close_object) (struct drm_gem_object *, struct drm_file *);
/* vga arb irq handler */
void (*vgaarb_irq)(struct drm_device *dev, bool state);