1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NOUVEAU_CHAN_H__
3 #define __NOUVEAU_CHAN_H__
4 #include <nvif/object.h>
5 #include <nvif/notify.h>
9 struct nouveau_channel {
11 struct nvif_push _push;
12 struct nvif_push *push;
15 struct nvif_device *device;
16 struct nouveau_drm *drm;
17 struct nouveau_vmm *vmm;
23 struct nvif_object vram;
24 struct nvif_object gart;
25 struct nvif_object nvsw;
28 struct nouveau_bo *buffer;
29 struct nouveau_vma *vma;
30 struct nvif_object ctxdma;
34 /* TODO: this will be reworked in the near future */
51 struct nvif_object user;
53 struct nvif_notify kill;
57 int nouveau_channels_init(struct nouveau_drm *);
59 int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
60 u32 arg0, u32 arg1, bool priv,
61 struct nouveau_channel **);
62 void nouveau_channel_del(struct nouveau_channel **);
63 int nouveau_channel_idle(struct nouveau_channel *);
65 extern int nouveau_vram_pushbuf;