1 #ifndef __NVKM_GR_PRIV_H__
2 #define __NVKM_GR_PRIV_H__
3 #define nvkm_gr(p) container_of((p), struct nvkm_gr, engine)
9 int nvkm_gr_ctor(const struct nvkm_gr_func *, struct nvkm_device *,
10 int index, bool enable, struct nvkm_gr *);
12 bool nv04_gr_idle(struct nvkm_gr *);
15 void *(*dtor)(struct nvkm_gr *);
16 int (*oneinit)(struct nvkm_gr *);
17 int (*init)(struct nvkm_gr *);
18 void (*intr)(struct nvkm_gr *);
19 void (*tile)(struct nvkm_gr *, int region, struct nvkm_fb_tile *);
20 int (*tlb_flush)(struct nvkm_gr *);
21 int (*chan_new)(struct nvkm_gr *, struct nvkm_fifo_chan *,
22 const struct nvkm_oclass *, struct nvkm_object **);
23 int (*object_get)(struct nvkm_gr *, int, struct nvkm_sclass *);
24 /* Returns chipset-specific counts of units packed into an u64.
26 u64 (*units)(struct nvkm_gr *);
27 struct nvkm_sclass sclass[];
30 extern const struct nvkm_bitfield nv04_gr_nsource[];
31 extern const struct nvkm_object_func nv04_gr_object;
33 extern const struct nvkm_bitfield nv10_gr_intr_name[];
34 extern const struct nvkm_bitfield nv10_gr_nstatus[];
36 extern const struct nvkm_enum nv50_data_error_names[];