drm/nouveau/fb: add gm20b device
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / engine / gr / nv20.h
blobcdf4501e3798dc2734c3c6114eb80949a31441ef
1 #ifndef __NV20_GR_H__
2 #define __NV20_GR_H__
3 #define nv20_gr(p) container_of((p), struct nv20_gr, base)
4 #include "priv.h"
6 struct nv20_gr {
7 struct nvkm_gr base;
8 struct nvkm_memory *ctxtab;
9 };
11 int nv20_gr_new_(const struct nvkm_gr_func *, struct nvkm_device *,
12 int, struct nvkm_gr **);
13 void *nv20_gr_dtor(struct nvkm_gr *);
14 int nv20_gr_oneinit(struct nvkm_gr *);
15 int nv20_gr_init(struct nvkm_gr *);
16 void nv20_gr_intr(struct nvkm_gr *);
17 void nv20_gr_tile(struct nvkm_gr *, int, struct nvkm_fb_tile *);
19 int nv30_gr_init(struct nvkm_gr *);
21 #define nv20_gr_chan(p) container_of((p), struct nv20_gr_chan, object)
23 struct nv20_gr_chan {
24 struct nvkm_object object;
25 struct nv20_gr *gr;
26 int chid;
27 struct nvkm_memory *inst;
30 void *nv20_gr_chan_dtor(struct nvkm_object *);
31 int nv20_gr_chan_init(struct nvkm_object *);
32 int nv20_gr_chan_fini(struct nvkm_object *, bool);
33 #endif