drm/nouveau/nvif: split out ctxdma interface definitions
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nouveau_chan.h
CommitLineData
ebb945a9
BS
1#ifndef __NOUVEAU_CHAN_H__
2#define __NOUVEAU_CHAN_H__
3
0ad72863
BS
4#include <nvif/object.h>
5struct nvif_device;
ebb945a9
BS
6
7struct nouveau_channel {
0ad72863 8 struct nvif_device *device;
ebb945a9
BS
9 struct nouveau_drm *drm;
10
bbf8906b
BS
11 int chid;
12
0ad72863
BS
13 struct nvif_object vram;
14 struct nvif_object gart;
15 struct nvif_object nvsw;
ebb945a9
BS
16
17 struct {
18 struct nouveau_bo *buffer;
be83cd4e 19 struct nvkm_vma vma;
0ad72863 20 struct nvif_object ctxdma;
ebb945a9
BS
21 } push;
22
23 /* TODO: this will be reworked in the near future */
24 bool accel_done;
25 void *fence;
26 struct {
27 int max;
28 int free;
29 int cur;
30 int put;
31 int ib_base;
32 int ib_max;
33 int ib_free;
34 int ib_put;
35 } dma;
36 u32 user_get_hi;
37 u32 user_get;
38 u32 user_put;
39
a01ca78c 40 struct nvif_object user;
ebb945a9
BS
41};
42
43
0ad72863 44int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
fcf3f91c 45 u32 arg0, u32 arg1, struct nouveau_channel **);
ebb945a9
BS
46void nouveau_channel_del(struct nouveau_channel **);
47int nouveau_channel_idle(struct nouveau_channel *);
48
703fa264
PM
49extern int nouveau_vram_pushbuf;
50
ebb945a9 51#endif
This page took 0.202683 seconds and 5 git commands to generate.