aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index d4f049d42ed..a308c132c19 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -622,6 +622,12 @@ struct drm_nouveau_private {
622 atomic_t validate_sequence; 622 atomic_t validate_sequence;
623 } ttm; 623 } ttm;
624 624
625 struct {
626 spinlock_t lock;
627 struct drm_mm heap;
628 struct nouveau_bo *bo;
629 } fence;
630
625 int fifo_alloc_count; 631 int fifo_alloc_count;
626 struct nouveau_channel *fifos[NOUVEAU_MAX_CHANNEL_NR]; 632 struct nouveau_channel *fifos[NOUVEAU_MAX_CHANNEL_NR];
627 633
@@ -1237,6 +1243,8 @@ extern int nouveau_bo_sync_gpu(struct nouveau_bo *, struct nouveau_channel *);
1237 1243
1238/* nouveau_fence.c */ 1244/* nouveau_fence.c */
1239struct nouveau_fence; 1245struct nouveau_fence;
1246extern int nouveau_fence_init(struct drm_device *);
1247extern void nouveau_fence_fini(struct drm_device *);
1240extern int nouveau_fence_channel_init(struct nouveau_channel *); 1248extern int nouveau_fence_channel_init(struct nouveau_channel *);
1241extern void nouveau_fence_channel_fini(struct nouveau_channel *); 1249extern void nouveau_fence_channel_fini(struct nouveau_channel *);
1242extern void nouveau_fence_update(struct nouveau_channel *); 1250extern void nouveau_fence_update(struct nouveau_channel *);