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" 5 6 struct nv20_gr { 7 struct nvkm_gr base; 8 struct nvkm_memory *ctxtab; 9 }; 10 11 #define nv20_gr_chan(p) container_of((p), struct nv20_gr_chan, object) 12 13 struct nv20_gr_chan { 14 struct nvkm_object object; 15 struct nv20_gr *gr; 16 int chid; 17 struct nvkm_memory *inst; 18 }; 19 20 void *nv20_gr_chan_dtor(struct nvkm_object *); 21 int nv20_gr_chan_init(struct nvkm_object *); 22 int nv20_gr_chan_fini(struct nvkm_object *, bool); 23 24 void nv20_gr_tile_prog(struct nvkm_engine *, int); 25 void nv20_gr_intr(struct nvkm_subdev *); 26 27 void nv20_gr_dtor(struct nvkm_object *); 28 int nv20_gr_init(struct nvkm_object *); 29 30 int nv30_gr_init(struct nvkm_object *); 31 #endif 32