2012-07-20 05:17:34 +07:00
|
|
|
#ifndef __NOUVEAU_CHAN_H__
|
|
|
|
#define __NOUVEAU_CHAN_H__
|
|
|
|
|
2014-08-10 01:10:22 +07:00
|
|
|
#include <nvif/object.h>
|
|
|
|
struct nvif_device;
|
2012-07-20 05:17:34 +07:00
|
|
|
|
|
|
|
struct nouveau_channel {
|
2014-08-10 01:10:22 +07:00
|
|
|
struct nvif_device *device;
|
2012-07-20 05:17:34 +07:00
|
|
|
struct nouveau_drm *drm;
|
|
|
|
|
2014-08-10 01:10:25 +07:00
|
|
|
int chid;
|
|
|
|
|
2014-08-10 01:10:22 +07:00
|
|
|
struct nvif_object vram;
|
|
|
|
struct nvif_object gart;
|
|
|
|
struct nvif_object nvsw;
|
2012-07-20 05:17:34 +07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
struct nouveau_bo *buffer;
|
2015-01-14 12:36:34 +07:00
|
|
|
struct nvkm_vma vma;
|
2014-08-10 01:10:22 +07:00
|
|
|
struct nvif_object ctxdma;
|
2012-07-20 05:17:34 +07:00
|
|
|
} push;
|
|
|
|
|
|
|
|
/* TODO: this will be reworked in the near future */
|
|
|
|
bool accel_done;
|
|
|
|
void *fence;
|
|
|
|
struct {
|
|
|
|
int max;
|
|
|
|
int free;
|
|
|
|
int cur;
|
|
|
|
int put;
|
|
|
|
int ib_base;
|
|
|
|
int ib_max;
|
|
|
|
int ib_free;
|
|
|
|
int ib_put;
|
|
|
|
} dma;
|
|
|
|
u32 user_get_hi;
|
|
|
|
u32 user_get;
|
|
|
|
u32 user_put;
|
|
|
|
|
2015-08-20 11:54:15 +07:00
|
|
|
struct nvif_object user;
|
2012-07-20 05:17:34 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-08-10 01:10:22 +07:00
|
|
|
int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
|
2015-09-04 11:40:32 +07:00
|
|
|
u32 arg0, u32 arg1, struct nouveau_channel **);
|
2012-07-20 05:17:34 +07:00
|
|
|
void nouveau_channel_del(struct nouveau_channel **);
|
|
|
|
int nouveau_channel_idle(struct nouveau_channel *);
|
|
|
|
|
2014-08-19 03:43:24 +07:00
|
|
|
extern int nouveau_vram_pushbuf;
|
|
|
|
|
2012-07-20 05:17:34 +07:00
|
|
|
#endif
|