2015-01-14 12:02:28 +10:00
|
|
|
#ifndef __NV20_GR_H__
|
|
|
|
|
#define __NV20_GR_H__
|
|
|
|
|
#include <engine/gr.h>
|
|
|
|
|
|
|
|
|
|
struct nv20_gr_priv {
|
2015-01-14 15:29:43 +10:00
|
|
|
struct nvkm_gr base;
|
|
|
|
|
struct nvkm_gpuobj *ctxtab;
|
2015-01-14 12:02:28 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct nv20_gr_chan {
|
2015-01-14 15:29:43 +10:00
|
|
|
struct nvkm_gr_chan base;
|
2015-01-14 12:02:28 +10:00
|
|
|
int chid;
|
|
|
|
|
};
|
|
|
|
|
|
2015-01-14 15:29:43 +10:00
|
|
|
extern struct nvkm_oclass nv25_gr_sclass[];
|
|
|
|
|
int nv20_gr_context_init(struct nvkm_object *);
|
|
|
|
|
int nv20_gr_context_fini(struct nvkm_object *, bool);
|
2015-01-14 12:02:28 +10:00
|
|
|
|
2015-01-14 15:29:43 +10:00
|
|
|
void nv20_gr_tile_prog(struct nvkm_engine *, int);
|
|
|
|
|
void nv20_gr_intr(struct nvkm_subdev *);
|
2015-01-14 12:02:28 +10:00
|
|
|
|
2015-01-14 15:29:43 +10:00
|
|
|
void nv20_gr_dtor(struct nvkm_object *);
|
|
|
|
|
int nv20_gr_init(struct nvkm_object *);
|
2015-01-14 12:02:28 +10:00
|
|
|
|
2015-01-14 15:29:43 +10:00
|
|
|
int nv30_gr_init(struct nvkm_object *);
|
2015-01-14 12:02:28 +10:00
|
|
|
#endif
|