19 nv30_graph_sclass[] = {
55 *pobject = nv_object(chan);
61 nv_wo32(chan, 0x0028, 0x00000001 | (chan->
chid << 24));
62 nv_wo32(chan, 0x0410, 0x00000101);
63 nv_wo32(chan, 0x0424, 0x00000111);
64 nv_wo32(chan, 0x0428, 0x00000060);
65 nv_wo32(chan, 0x0444, 0x00000080);
66 nv_wo32(chan, 0x0448, 0xffff0000);
67 nv_wo32(chan, 0x044c, 0x00000001);
68 nv_wo32(chan, 0x0460, 0x44400000);
69 nv_wo32(chan, 0x048c, 0xffff0000);
70 for (i = 0x04e0; i < 0x04e8; i += 4)
71 nv_wo32(chan, i, 0x0fff0000);
72 nv_wo32(chan, 0x04ec, 0x00011100);
73 for (i = 0x0508; i < 0x0548; i += 4)
74 nv_wo32(chan, i, 0x07ff0000);
75 nv_wo32(chan, 0x0550, 0x4b7fffff);
76 nv_wo32(chan, 0x058c, 0x00000080);
77 nv_wo32(chan, 0x0590, 0x30201000);
78 nv_wo32(chan, 0x0594, 0x70605040);
79 nv_wo32(chan, 0x0598, 0xb8a89888);
80 nv_wo32(chan, 0x059c, 0xf8e8d8c8);
81 nv_wo32(chan, 0x05b0, 0xb0000000);
82 for (i = 0x0600; i < 0x0640; i += 4)
83 nv_wo32(chan, i, 0x00010588);
84 for (i = 0x0640; i < 0x0680; i += 4)
85 nv_wo32(chan, i, 0x00030303);
86 for (i = 0x06c0; i < 0x0700; i += 4)
87 nv_wo32(chan, i, 0x0008aae4);
88 for (i = 0x0700; i < 0x0740; i += 4)
89 nv_wo32(chan, i, 0x01012000);
90 for (i = 0x0740; i < 0x0780; i += 4)
91 nv_wo32(chan, i, 0x00080008);
92 nv_wo32(chan, 0x085c, 0x00040000);
93 nv_wo32(chan, 0x0860, 0x00010000);
94 for (i = 0x0864; i < 0x0874; i += 4)
95 nv_wo32(chan, i, 0x00040004);
96 for (i = 0x1f18; i <= 0x3088 ; i += 16) {
97 nv_wo32(chan, i + 0, 0x10700ff9);
98 nv_wo32(chan, i + 1, 0x0436086c);
99 nv_wo32(chan, i + 2, 0x000c001b);
101 for (i = 0x30b8; i < 0x30c8; i += 4)
102 nv_wo32(chan, i, 0x0000ffff);
103 nv_wo32(chan, 0x344c, 0x3f800000);
104 nv_wo32(chan, 0x3808, 0x3f800000);
105 nv_wo32(chan, 0x381c, 0x3f800000);
106 nv_wo32(chan, 0x3848, 0x40000000);
107 nv_wo32(chan, 0x384c, 0x3f800000);
108 nv_wo32(chan, 0x3850, 0x3f000000);
109 nv_wo32(chan, 0x3858, 0x40000000);
110 nv_wo32(chan, 0x385c, 0x3f800000);
111 nv_wo32(chan, 0x3864, 0xbf800000);
112 nv_wo32(chan, 0x386c, 0xbf800000);
117 nv30_graph_cclass = {
120 .ctor = nv30_graph_context_ctor,
142 *pobject = nv_object(priv);
151 nv_subdev(priv)->unit = 0x00001000;
153 nv_engine(priv)->cclass = &nv30_graph_cclass;
154 nv_engine(priv)->sclass = nv30_graph_sclass;
179 nv_wr32(priv, 0x400890, 0x01b463ff);
183 nv_wr32(priv, 0x400B80, 0x1003d888);
184 nv_wr32(priv, 0x400B84, 0x0c000000);
185 nv_wr32(priv, 0x400098, 0x00000000);
186 nv_wr32(priv, 0x40009C, 0x0005ad00);
187 nv_wr32(priv, 0x400B88, 0x62ff00ff);
188 nv_wr32(priv, 0x4000a0, 0x00000000);
189 nv_wr32(priv, 0x4000a4, 0x00000008);
190 nv_wr32(priv, 0x4008a8, 0xb784a400);
191 nv_wr32(priv, 0x400ba0, 0x002f8685);
192 nv_wr32(priv, 0x400ba4, 0x00231f3f);
193 nv_wr32(priv, 0x4008a4, 0x40000020);
195 if (nv_device(priv)->
chipset == 0x34) {
206 nv_wr32(priv, 0x4000c0, 0x00000016);
209 for (i = 0; i < pfb->
tile.regions; i++)
214 nv_wr32(priv, 0x0040075c , 0x00000001);
218 nv_wr32(priv, 0x4009A4, nv_rd32(priv, 0x100200));
219 nv_wr32(priv, 0x4009A8, nv_rd32(priv, 0x100204));
220 if (nv_device(priv)->
chipset != 0x34) {
221 nv_wr32(priv, 0x400750, 0x00EA0000);
222 nv_wr32(priv, 0x400754, nv_rd32(priv, 0x100200));
223 nv_wr32(priv, 0x400750, 0x00EA0004);
224 nv_wr32(priv, 0x400754, nv_rd32(priv, 0x100204));
233 .ctor = nv30_graph_ctor,