diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-06-03 06:18:26 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-23 05:59:02 (GMT) |
commit | 639212d01157266d9ee0b904fbc9f4a556e1c711 (patch) | |
tree | 85dfb1e0bb5aa09b5512470764f8da8da08feb53 /drivers/gpu/drm/nouveau/nouveau_gem.c | |
parent | f6d4e62145b597c6249c1dc9c1c3ecd66ba165f0 (diff) | |
download | linux-fsl-qoriq-639212d01157266d9ee0b904fbc9f4a556e1c711.tar.xz |
drm/nouveau/gem: implement stub hooks for GEM object open/close
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_gem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_gem.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index b4218d7..da3c8bb 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -60,6 +60,26 @@ nouveau_gem_object_del(struct drm_gem_object *gem) } int +nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv) +{ + struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv); + + if (!fpriv->vm) + return 0; + + return 0; +} + +void +nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv) +{ + struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv); + + if (!fpriv->vm) + return; +} + +int nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain, uint32_t tile_mode, uint32_t tile_flags, struct nouveau_bo **pnvbo) |