2012-07-20 08:17:34 +10:00
|
|
|
#ifndef __NV50_FIFO_H__
|
|
|
|
|
#define __NV50_FIFO_H__
|
2015-01-14 15:28:47 +10:00
|
|
|
#include <engine/fifo.h>
|
2012-07-20 08:17:34 +10:00
|
|
|
|
|
|
|
|
struct nv50_fifo_priv {
|
2015-01-14 15:28:47 +10:00
|
|
|
struct nvkm_fifo base;
|
|
|
|
|
struct nvkm_gpuobj *playlist[2];
|
2012-07-20 08:17:34 +10:00
|
|
|
int cur_playlist;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct nv50_fifo_base {
|
2015-01-14 15:28:47 +10:00
|
|
|
struct nvkm_fifo_base base;
|
|
|
|
|
struct nvkm_gpuobj *ramfc;
|
|
|
|
|
struct nvkm_gpuobj *cache;
|
|
|
|
|
struct nvkm_gpuobj *eng;
|
|
|
|
|
struct nvkm_gpuobj *pgd;
|
|
|
|
|
struct nvkm_vm *vm;
|
2012-07-20 08:17:34 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct nv50_fifo_chan {
|
2015-01-14 15:28:47 +10:00
|
|
|
struct nvkm_fifo_chan base;
|
2012-07-20 08:17:34 +10:00
|
|
|
u32 subc[8];
|
2015-01-14 15:28:47 +10:00
|
|
|
struct nvkm_ramht *ramht;
|
2012-07-20 08:17:34 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void nv50_fifo_playlist_update(struct nv50_fifo_priv *);
|
|
|
|
|
|
2015-01-14 15:28:47 +10:00
|
|
|
void nv50_fifo_object_detach(struct nvkm_object *, int);
|
|
|
|
|
void nv50_fifo_chan_dtor(struct nvkm_object *);
|
|
|
|
|
int nv50_fifo_chan_fini(struct nvkm_object *, bool);
|
2012-07-20 08:17:34 +10:00
|
|
|
|
2015-01-14 15:28:47 +10:00
|
|
|
void nv50_fifo_context_dtor(struct nvkm_object *);
|
2012-07-20 08:17:34 +10:00
|
|
|
|
2015-01-14 15:28:47 +10:00
|
|
|
void nv50_fifo_dtor(struct nvkm_object *);
|
|
|
|
|
int nv50_fifo_init(struct nvkm_object *);
|
2012-07-20 08:17:34 +10:00
|
|
|
#endif
|