1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NOUVEAU_CHAN_H__
3 #define __NOUVEAU_CHAN_H__
4 #include <nvif/object.h>
5 #include <nvif/event.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;
19 struct nvif_mem mem_userd;
20 struct nvif_object *userd;
27 struct nvif_object vram;
28 struct nvif_object gart;
29 struct nvif_object nvsw;
32 struct nouveau_bo *buffer;
33 struct nouveau_vma *vma;
34 struct nvif_object ctxdma;
38 /* TODO: this will be reworked in the near future */
55 struct nvif_object user;
56 struct nvif_object blit;
58 struct nvif_event kill;
62 int nouveau_channels_init(struct nouveau_drm *);
63 void nouveau_channels_fini(struct nouveau_drm *);
65 int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *, bool priv, u64 runm,
66 u32 vram, u32 gart, struct nouveau_channel **);
67 void nouveau_channel_del(struct nouveau_channel **);
68 int nouveau_channel_idle(struct nouveau_channel *);
69 void nouveau_channel_kill(struct nouveau_channel *);
71 extern int nouveau_vram_pushbuf;