1 #ifndef __NOUVEAU_CHAN_H__
2 #define __NOUVEAU_CHAN_H__
4 #include <nvif/object.h>
7 struct nouveau_channel {
8 struct nvif_device *device;
9 struct nouveau_drm *drm;
13 struct nvif_object vram;
14 struct nvif_object gart;
15 struct nvif_object nvsw;
18 struct nouveau_bo *buffer;
20 struct nvif_object ctxdma;
23 /* TODO: this will be reworked in the near future */
40 struct nvif_object *object;
44 int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
45 u32 handle, u32 arg0, u32 arg1,
46 struct nouveau_channel **);
47 void nouveau_channel_del(struct nouveau_channel **);
48 int nouveau_channel_idle(struct nouveau_channel *);
50 extern int nouveau_vram_pushbuf;