1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #include "ctxgf100.h"
25
26
27
28
29
30 const struct gf100_gr_init
31 gf104_grctx_init_tex_0[] = {
32 { 0x419a00, 1, 0x04, 0x000001f0 },
33 { 0x419a04, 1, 0x04, 0x00000001 },
34 { 0x419a08, 1, 0x04, 0x00000023 },
35 { 0x419a0c, 1, 0x04, 0x00020000 },
36 { 0x419a10, 1, 0x04, 0x00000000 },
37 { 0x419a14, 1, 0x04, 0x00000200 },
38 { 0x419a1c, 1, 0x04, 0x00000000 },
39 { 0x419a20, 1, 0x04, 0x00000800 },
40 { 0x419ac4, 1, 0x04, 0x0007f440 },
41 {}
42 };
43
44 const struct gf100_gr_init
45 gf104_grctx_init_l1c_0[] = {
46 { 0x419cb0, 1, 0x04, 0x00020048 },
47 { 0x419ce8, 1, 0x04, 0x00000000 },
48 { 0x419cf4, 1, 0x04, 0x00000183 },
49 {}
50 };
51
52 const struct gf100_gr_init
53 gf104_grctx_init_sm_0[] = {
54 { 0x419e04, 3, 0x04, 0x00000000 },
55 { 0x419e10, 1, 0x04, 0x00000002 },
56 { 0x419e44, 1, 0x04, 0x001beff2 },
57 { 0x419e48, 1, 0x04, 0x00000000 },
58 { 0x419e4c, 1, 0x04, 0x0000000f },
59 { 0x419e50, 17, 0x04, 0x00000000 },
60 { 0x419e98, 1, 0x04, 0x00000000 },
61 { 0x419ee0, 1, 0x04, 0x00011110 },
62 { 0x419f30, 11, 0x04, 0x00000000 },
63 {}
64 };
65
66 static const struct gf100_gr_pack
67 gf104_grctx_pack_tpc[] = {
68 { gf100_grctx_init_pe_0 },
69 { gf104_grctx_init_tex_0 },
70 { gf100_grctx_init_wwdx_0 },
71 { gf100_grctx_init_mpc_0 },
72 { gf104_grctx_init_l1c_0 },
73 { gf100_grctx_init_tpccs_0 },
74 { gf104_grctx_init_sm_0 },
75 {}
76 };
77
78
79
80
81
82 const struct gf100_grctx_func
83 gf104_grctx = {
84 .main = gf100_grctx_generate_main,
85 .unkn = gf100_grctx_generate_unkn,
86 .hub = gf100_grctx_pack_hub,
87 .gpc_0 = gf100_grctx_pack_gpc_0,
88 .gpc_1 = gf100_grctx_pack_gpc_1,
89 .zcull = gf100_grctx_pack_zcull,
90 .tpc = gf104_grctx_pack_tpc,
91 .icmd = gf100_grctx_pack_icmd,
92 .mthd = gf100_grctx_pack_mthd,
93 .bundle = gf100_grctx_generate_bundle,
94 .bundle_size = 0x1800,
95 .pagepool = gf100_grctx_generate_pagepool,
96 .pagepool_size = 0x8000,
97 .attrib = gf100_grctx_generate_attrib,
98 .attrib_nr_max = 0x324,
99 .attrib_nr = 0x218,
100 .sm_id = gf100_grctx_generate_sm_id,
101 .tpc_nr = gf100_grctx_generate_tpc_nr,
102 .r4060a8 = gf100_grctx_generate_r4060a8,
103 .rop_mapping = gf100_grctx_generate_rop_mapping,
104 .alpha_beta_tables = gf100_grctx_generate_alpha_beta_tables,
105 .max_ways_evict = gf100_grctx_generate_max_ways_evict,
106 .r419cb8 = gf100_grctx_generate_r419cb8,
107 };