1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_GR_H__
3 #define __NVKM_GR_H__
4 #include <core/engine.h>
5 
6 struct nvkm_gr {
7 	const struct nvkm_gr_func *func;
8 	struct nvkm_engine engine;
9 };
10 
11 u64 nvkm_gr_units(struct nvkm_gr *);
12 int nvkm_gr_tlb_flush(struct nvkm_gr *);
13 int nvkm_gr_ctxsw_pause(struct nvkm_device *);
14 int nvkm_gr_ctxsw_resume(struct nvkm_device *);
15 u32 nvkm_gr_ctxsw_inst(struct nvkm_device *);
16 
17 int nv04_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
18 int nv10_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
19 int nv15_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
20 int nv17_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
21 int nv20_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
22 int nv25_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
23 int nv2a_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
24 int nv30_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
25 int nv34_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
26 int nv35_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
27 int nv40_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
28 int nv44_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
29 int nv50_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
30 int g84_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
31 int gt200_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
32 int mcp79_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
33 int gt215_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
34 int mcp89_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
35 int gf100_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
36 int gf104_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
37 int gf108_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
38 int gf110_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
39 int gf117_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
40 int gf119_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
41 int gk104_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
42 int gk110_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
43 int gk110b_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
44 int gk208_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
45 int gk20a_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
46 int gm107_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
47 int gm200_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
48 int gm20b_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
49 int gp100_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
50 int gp102_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
51 int gp104_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
52 int gp107_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
53 int gp10b_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
54 int gv100_gr_new(struct nvkm_device *, int, struct nvkm_gr **);
55 #endif
56