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;
21 struct nvif_object ctxdma;
24 /* TODO: this will be reworked in the near future */
41 struct nvif_object user;
43 struct nvif_notify kill;
48 int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
49 u32 arg0, u32 arg1, struct nouveau_channel **);
50 void nouveau_channel_del(struct nouveau_channel **);
51 int nouveau_channel_idle(struct nouveau_channel *);
53 extern int nouveau_vram_pushbuf;