1 /* SPDX-License-Identifier: GPL-2.0 */
4 #define nv50_gr(p) container_of((p), struct nv50_gr, base)
9 const struct nv50_gr_func
*func
;
14 int nv50_gr_new_(const struct nvkm_gr_func
*, struct nvkm_device
*, int index
,
16 int nv50_gr_init(struct nvkm_gr
*);
17 void nv50_gr_intr(struct nvkm_gr
*);
18 u64
nv50_gr_units(struct nvkm_gr
*);
20 int g84_gr_tlb_flush(struct nvkm_gr
*);
22 #define nv50_gr_chan(p) container_of((p), struct nv50_gr_chan, object)
23 #include <core/object.h>
26 struct nvkm_object object
;
30 int nv50_gr_chan_new(struct nvkm_gr
*, struct nvkm_fifo_chan
*,
31 const struct nvkm_oclass
*, struct nvkm_object
**);
33 extern const struct nvkm_object_func nv50_gr_object
;
35 int nv50_grctx_init(struct nvkm_device
*, u32
*size
);
36 void nv50_grctx_fill(struct nvkm_device
*, struct nvkm_gpuobj
*);