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
;
11 struct nouveau_vmm
*vmm
;
17 struct nvif_object vram
;
18 struct nvif_object gart
;
19 struct nvif_object nvsw
;
22 struct nouveau_bo
*buffer
;
23 struct nouveau_vma
*vma
;
24 struct nvif_object ctxdma
;
28 /* TODO: this will be reworked in the near future */
45 struct nvif_object user
;
47 struct nvif_notify kill
;
51 int nouveau_channels_init(struct nouveau_drm
*);
53 int nouveau_channel_new(struct nouveau_drm
*, struct nvif_device
*,
54 u32 arg0
, u32 arg1
, bool priv
,
55 struct nouveau_channel
**);
56 void nouveau_channel_del(struct nouveau_channel
**);
57 int nouveau_channel_idle(struct nouveau_channel
*);
59 extern int nouveau_vram_pushbuf
;