aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-04-29 22:51:48 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-05-24 02:55:44 -0400
commit875ac34aad49bb875833aed2b4f2deb7a28df9f0 (patch)
tree254aedbbc3c838471090154a9d14d29ad86211de /drivers/gpu/drm/nouveau/nouveau_drv.h
parent35bcf5d55540e47091a67e5962f12b88d51d7131 (diff)
drm/nouveau/fence: make ttm interfaces wrap ours, not the other way around
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index dce621555433..b17444ae05c8 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -1458,34 +1458,11 @@ extern void nouveau_fence_work(struct nouveau_fence *fence,
1458 void *priv); 1458 void *priv);
1459struct nouveau_channel *nouveau_fence_channel(struct nouveau_fence *); 1459struct nouveau_channel *nouveau_fence_channel(struct nouveau_fence *);
1460 1460
1461extern bool __nouveau_fence_signalled(void *obj, void *arg); 1461extern bool nouveau_fence_signalled(struct nouveau_fence *);
1462extern int __nouveau_fence_wait(void *obj, void *arg, bool lazy, bool intr); 1462extern int nouveau_fence_wait(struct nouveau_fence *, bool lazy, bool intr);
1463extern int __nouveau_fence_flush(void *obj, void *arg); 1463extern void nouveau_fence_unref(struct nouveau_fence **);
1464extern void __nouveau_fence_unref(void **obj); 1464extern struct nouveau_fence *nouveau_fence_ref(struct nouveau_fence *);
1465extern void *__nouveau_fence_ref(void *obj);
1466
1467static inline bool nouveau_fence_signalled(struct nouveau_fence *obj)
1468{
1469 return __nouveau_fence_signalled(obj, NULL);
1470}
1471static inline int
1472nouveau_fence_wait(struct nouveau_fence *obj, bool lazy, bool intr)
1473{
1474 return __nouveau_fence_wait(obj, NULL, lazy, intr);
1475}
1476extern int nouveau_fence_sync(struct nouveau_fence *, struct nouveau_channel *); 1465extern int nouveau_fence_sync(struct nouveau_fence *, struct nouveau_channel *);
1477static inline int nouveau_fence_flush(struct nouveau_fence *obj)
1478{
1479 return __nouveau_fence_flush(obj, NULL);
1480}
1481static inline void nouveau_fence_unref(struct nouveau_fence **obj)
1482{
1483 __nouveau_fence_unref((void **)obj);
1484}
1485static inline struct nouveau_fence *nouveau_fence_ref(struct nouveau_fence *obj)
1486{
1487 return __nouveau_fence_ref(obj);
1488}
1489 1466
1490/* nouveau_gem.c */ 1467/* nouveau_gem.c */
1491extern int nouveau_gem_new(struct drm_device *, int size, int align, 1468extern int nouveau_gem_new(struct drm_device *, int size, int align,