1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NOUVEAU_CHAN_H__
3 #define __NOUVEAU_CHAN_H__
4 #include <nvif/object.h>
5 #include <nvif/notify.h>
8 struct nouveau_channel
{
9 struct nvif_device
*device
;
10 struct nouveau_drm
*drm
;
14 struct nvif_object vram
;
15 struct nvif_object gart
;
16 struct nvif_object nvsw
;
19 struct nouveau_bo
*buffer
;
20 struct nouveau_vma
*vma
;
21 struct nvif_object ctxdma
;
25 /* TODO: this will be reworked in the near future */
42 struct nvif_object user
;
44 struct nvif_notify kill
;
49 int nouveau_channel_new(struct nouveau_drm
*, struct nvif_device
*,
50 u32 arg0
, u32 arg1
, struct nouveau_channel
**);
51 void nouveau_channel_del(struct nouveau_channel
**);
52 int nouveau_channel_idle(struct nouveau_channel
*);
54 extern int nouveau_vram_pushbuf
;