Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.13.7.
   1/*
   2 * Copyright 2010 Red Hat Inc.
   3 *
   4 * Permission is hereby granted, free of charge, to any person obtaining a
   5 * copy of this software and associated documentation files (the "Software"),
   6 * to deal in the Software without restriction, including without limitation
   7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
   8 * and/or sell copies of the Software, and to permit persons to whom the
   9 * Software is furnished to do so, subject to the following conditions:
  10 *
  11 * The above copyright notice and this permission notice shall be included in
  12 * all copies or substantial portions of the Software.
  13 *
  14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20 * OTHER DEALINGS IN THE SOFTWARE.
  21 *
  22 * Authors: Ben Skeggs
  23 */
  24
  25#include "drmP.h"
  26#include "nouveau_drv.h"
  27#include "nouveau_mm.h"
  28#include "nve0_graph.h"
  29
  30static void
  31nv_icmd(struct drm_device *dev, u32 icmd, u32 data)
  32{
  33	nv_wr32(dev, 0x400204, data);
  34	nv_wr32(dev, 0x400200, icmd);
  35	while (nv_rd32(dev, 0x400700) & 0x00000002) {}
  36}
  37
  38static void
  39nve0_grctx_generate_icmd(struct drm_device *dev)
  40{
  41	nv_wr32(dev, 0x400208, 0x80000000);
  42	nv_icmd(dev, 0x001000, 0x00000004);
  43	nv_icmd(dev, 0x000039, 0x00000000);
  44	nv_icmd(dev, 0x00003a, 0x00000000);
  45	nv_icmd(dev, 0x00003b, 0x00000000);
  46	nv_icmd(dev, 0x0000a9, 0x0000ffff);
  47	nv_icmd(dev, 0x000038, 0x0fac6881);
  48	nv_icmd(dev, 0x00003d, 0x00000001);
  49	nv_icmd(dev, 0x0000e8, 0x00000400);
  50	nv_icmd(dev, 0x0000e9, 0x00000400);
  51	nv_icmd(dev, 0x0000ea, 0x00000400);
  52	nv_icmd(dev, 0x0000eb, 0x00000400);
  53	nv_icmd(dev, 0x0000ec, 0x00000400);
  54	nv_icmd(dev, 0x0000ed, 0x00000400);
  55	nv_icmd(dev, 0x0000ee, 0x00000400);
  56	nv_icmd(dev, 0x0000ef, 0x00000400);
  57	nv_icmd(dev, 0x000078, 0x00000300);
  58	nv_icmd(dev, 0x000079, 0x00000300);
  59	nv_icmd(dev, 0x00007a, 0x00000300);
  60	nv_icmd(dev, 0x00007b, 0x00000300);
  61	nv_icmd(dev, 0x00007c, 0x00000300);
  62	nv_icmd(dev, 0x00007d, 0x00000300);
  63	nv_icmd(dev, 0x00007e, 0x00000300);
  64	nv_icmd(dev, 0x00007f, 0x00000300);
  65	nv_icmd(dev, 0x000050, 0x00000011);
  66	nv_icmd(dev, 0x000058, 0x00000008);
  67	nv_icmd(dev, 0x000059, 0x00000008);
  68	nv_icmd(dev, 0x00005a, 0x00000008);
  69	nv_icmd(dev, 0x00005b, 0x00000008);
  70	nv_icmd(dev, 0x00005c, 0x00000008);
  71	nv_icmd(dev, 0x00005d, 0x00000008);
  72	nv_icmd(dev, 0x00005e, 0x00000008);
  73	nv_icmd(dev, 0x00005f, 0x00000008);
  74	nv_icmd(dev, 0x000208, 0x00000001);
  75	nv_icmd(dev, 0x000209, 0x00000001);
  76	nv_icmd(dev, 0x00020a, 0x00000001);
  77	nv_icmd(dev, 0x00020b, 0x00000001);
  78	nv_icmd(dev, 0x00020c, 0x00000001);
  79	nv_icmd(dev, 0x00020d, 0x00000001);
  80	nv_icmd(dev, 0x00020e, 0x00000001);
  81	nv_icmd(dev, 0x00020f, 0x00000001);
  82	nv_icmd(dev, 0x000081, 0x00000001);
  83	nv_icmd(dev, 0x000085, 0x00000004);
  84	nv_icmd(dev, 0x000088, 0x00000400);
  85	nv_icmd(dev, 0x000090, 0x00000300);
  86	nv_icmd(dev, 0x000098, 0x00001001);
  87	nv_icmd(dev, 0x0000e3, 0x00000001);
  88	nv_icmd(dev, 0x0000da, 0x00000001);
  89	nv_icmd(dev, 0x0000f8, 0x00000003);
  90	nv_icmd(dev, 0x0000fa, 0x00000001);
  91	nv_icmd(dev, 0x00009f, 0x0000ffff);
  92	nv_icmd(dev, 0x0000a0, 0x0000ffff);
  93	nv_icmd(dev, 0x0000a1, 0x0000ffff);
  94	nv_icmd(dev, 0x0000a2, 0x0000ffff);
  95	nv_icmd(dev, 0x0000b1, 0x00000001);
  96	nv_icmd(dev, 0x0000ad, 0x0000013e);
  97	nv_icmd(dev, 0x0000e1, 0x00000010);
  98	nv_icmd(dev, 0x000290, 0x00000000);
  99	nv_icmd(dev, 0x000291, 0x00000000);
 100	nv_icmd(dev, 0x000292, 0x00000000);
 101	nv_icmd(dev, 0x000293, 0x00000000);
 102	nv_icmd(dev, 0x000294, 0x00000000);
 103	nv_icmd(dev, 0x000295, 0x00000000);
 104	nv_icmd(dev, 0x000296, 0x00000000);
 105	nv_icmd(dev, 0x000297, 0x00000000);
 106	nv_icmd(dev, 0x000298, 0x00000000);
 107	nv_icmd(dev, 0x000299, 0x00000000);
 108	nv_icmd(dev, 0x00029a, 0x00000000);
 109	nv_icmd(dev, 0x00029b, 0x00000000);
 110	nv_icmd(dev, 0x00029c, 0x00000000);
 111	nv_icmd(dev, 0x00029d, 0x00000000);
 112	nv_icmd(dev, 0x00029e, 0x00000000);
 113	nv_icmd(dev, 0x00029f, 0x00000000);
 114	nv_icmd(dev, 0x0003b0, 0x00000000);
 115	nv_icmd(dev, 0x0003b1, 0x00000000);
 116	nv_icmd(dev, 0x0003b2, 0x00000000);
 117	nv_icmd(dev, 0x0003b3, 0x00000000);
 118	nv_icmd(dev, 0x0003b4, 0x00000000);
 119	nv_icmd(dev, 0x0003b5, 0x00000000);
 120	nv_icmd(dev, 0x0003b6, 0x00000000);
 121	nv_icmd(dev, 0x0003b7, 0x00000000);
 122	nv_icmd(dev, 0x0003b8, 0x00000000);
 123	nv_icmd(dev, 0x0003b9, 0x00000000);
 124	nv_icmd(dev, 0x0003ba, 0x00000000);
 125	nv_icmd(dev, 0x0003bb, 0x00000000);
 126	nv_icmd(dev, 0x0003bc, 0x00000000);
 127	nv_icmd(dev, 0x0003bd, 0x00000000);
 128	nv_icmd(dev, 0x0003be, 0x00000000);
 129	nv_icmd(dev, 0x0003bf, 0x00000000);
 130	nv_icmd(dev, 0x0002a0, 0x00000000);
 131	nv_icmd(dev, 0x0002a1, 0x00000000);
 132	nv_icmd(dev, 0x0002a2, 0x00000000);
 133	nv_icmd(dev, 0x0002a3, 0x00000000);
 134	nv_icmd(dev, 0x0002a4, 0x00000000);
 135	nv_icmd(dev, 0x0002a5, 0x00000000);
 136	nv_icmd(dev, 0x0002a6, 0x00000000);
 137	nv_icmd(dev, 0x0002a7, 0x00000000);
 138	nv_icmd(dev, 0x0002a8, 0x00000000);
 139	nv_icmd(dev, 0x0002a9, 0x00000000);
 140	nv_icmd(dev, 0x0002aa, 0x00000000);
 141	nv_icmd(dev, 0x0002ab, 0x00000000);
 142	nv_icmd(dev, 0x0002ac, 0x00000000);
 143	nv_icmd(dev, 0x0002ad, 0x00000000);
 144	nv_icmd(dev, 0x0002ae, 0x00000000);
 145	nv_icmd(dev, 0x0002af, 0x00000000);
 146	nv_icmd(dev, 0x000420, 0x00000000);
 147	nv_icmd(dev, 0x000421, 0x00000000);
 148	nv_icmd(dev, 0x000422, 0x00000000);
 149	nv_icmd(dev, 0x000423, 0x00000000);
 150	nv_icmd(dev, 0x000424, 0x00000000);
 151	nv_icmd(dev, 0x000425, 0x00000000);
 152	nv_icmd(dev, 0x000426, 0x00000000);
 153	nv_icmd(dev, 0x000427, 0x00000000);
 154	nv_icmd(dev, 0x000428, 0x00000000);
 155	nv_icmd(dev, 0x000429, 0x00000000);
 156	nv_icmd(dev, 0x00042a, 0x00000000);
 157	nv_icmd(dev, 0x00042b, 0x00000000);
 158	nv_icmd(dev, 0x00042c, 0x00000000);
 159	nv_icmd(dev, 0x00042d, 0x00000000);
 160	nv_icmd(dev, 0x00042e, 0x00000000);
 161	nv_icmd(dev, 0x00042f, 0x00000000);
 162	nv_icmd(dev, 0x0002b0, 0x00000000);
 163	nv_icmd(dev, 0x0002b1, 0x00000000);
 164	nv_icmd(dev, 0x0002b2, 0x00000000);
 165	nv_icmd(dev, 0x0002b3, 0x00000000);
 166	nv_icmd(dev, 0x0002b4, 0x00000000);
 167	nv_icmd(dev, 0x0002b5, 0x00000000);
 168	nv_icmd(dev, 0x0002b6, 0x00000000);
 169	nv_icmd(dev, 0x0002b7, 0x00000000);
 170	nv_icmd(dev, 0x0002b8, 0x00000000);
 171	nv_icmd(dev, 0x0002b9, 0x00000000);
 172	nv_icmd(dev, 0x0002ba, 0x00000000);
 173	nv_icmd(dev, 0x0002bb, 0x00000000);
 174	nv_icmd(dev, 0x0002bc, 0x00000000);
 175	nv_icmd(dev, 0x0002bd, 0x00000000);
 176	nv_icmd(dev, 0x0002be, 0x00000000);
 177	nv_icmd(dev, 0x0002bf, 0x00000000);
 178	nv_icmd(dev, 0x000430, 0x00000000);
 179	nv_icmd(dev, 0x000431, 0x00000000);
 180	nv_icmd(dev, 0x000432, 0x00000000);
 181	nv_icmd(dev, 0x000433, 0x00000000);
 182	nv_icmd(dev, 0x000434, 0x00000000);
 183	nv_icmd(dev, 0x000435, 0x00000000);
 184	nv_icmd(dev, 0x000436, 0x00000000);
 185	nv_icmd(dev, 0x000437, 0x00000000);
 186	nv_icmd(dev, 0x000438, 0x00000000);
 187	nv_icmd(dev, 0x000439, 0x00000000);
 188	nv_icmd(dev, 0x00043a, 0x00000000);
 189	nv_icmd(dev, 0x00043b, 0x00000000);
 190	nv_icmd(dev, 0x00043c, 0x00000000);
 191	nv_icmd(dev, 0x00043d, 0x00000000);
 192	nv_icmd(dev, 0x00043e, 0x00000000);
 193	nv_icmd(dev, 0x00043f, 0x00000000);
 194	nv_icmd(dev, 0x0002c0, 0x00000000);
 195	nv_icmd(dev, 0x0002c1, 0x00000000);
 196	nv_icmd(dev, 0x0002c2, 0x00000000);
 197	nv_icmd(dev, 0x0002c3, 0x00000000);
 198	nv_icmd(dev, 0x0002c4, 0x00000000);
 199	nv_icmd(dev, 0x0002c5, 0x00000000);
 200	nv_icmd(dev, 0x0002c6, 0x00000000);
 201	nv_icmd(dev, 0x0002c7, 0x00000000);
 202	nv_icmd(dev, 0x0002c8, 0x00000000);
 203	nv_icmd(dev, 0x0002c9, 0x00000000);
 204	nv_icmd(dev, 0x0002ca, 0x00000000);
 205	nv_icmd(dev, 0x0002cb, 0x00000000);
 206	nv_icmd(dev, 0x0002cc, 0x00000000);
 207	nv_icmd(dev, 0x0002cd, 0x00000000);
 208	nv_icmd(dev, 0x0002ce, 0x00000000);
 209	nv_icmd(dev, 0x0002cf, 0x00000000);
 210	nv_icmd(dev, 0x0004d0, 0x00000000);
 211	nv_icmd(dev, 0x0004d1, 0x00000000);
 212	nv_icmd(dev, 0x0004d2, 0x00000000);
 213	nv_icmd(dev, 0x0004d3, 0x00000000);
 214	nv_icmd(dev, 0x0004d4, 0x00000000);
 215	nv_icmd(dev, 0x0004d5, 0x00000000);
 216	nv_icmd(dev, 0x0004d6, 0x00000000);
 217	nv_icmd(dev, 0x0004d7, 0x00000000);
 218	nv_icmd(dev, 0x0004d8, 0x00000000);
 219	nv_icmd(dev, 0x0004d9, 0x00000000);
 220	nv_icmd(dev, 0x0004da, 0x00000000);
 221	nv_icmd(dev, 0x0004db, 0x00000000);
 222	nv_icmd(dev, 0x0004dc, 0x00000000);
 223	nv_icmd(dev, 0x0004dd, 0x00000000);
 224	nv_icmd(dev, 0x0004de, 0x00000000);
 225	nv_icmd(dev, 0x0004df, 0x00000000);
 226	nv_icmd(dev, 0x000720, 0x00000000);
 227	nv_icmd(dev, 0x000721, 0x00000000);
 228	nv_icmd(dev, 0x000722, 0x00000000);
 229	nv_icmd(dev, 0x000723, 0x00000000);
 230	nv_icmd(dev, 0x000724, 0x00000000);
 231	nv_icmd(dev, 0x000725, 0x00000000);
 232	nv_icmd(dev, 0x000726, 0x00000000);
 233	nv_icmd(dev, 0x000727, 0x00000000);
 234	nv_icmd(dev, 0x000728, 0x00000000);
 235	nv_icmd(dev, 0x000729, 0x00000000);
 236	nv_icmd(dev, 0x00072a, 0x00000000);
 237	nv_icmd(dev, 0x00072b, 0x00000000);
 238	nv_icmd(dev, 0x00072c, 0x00000000);
 239	nv_icmd(dev, 0x00072d, 0x00000000);
 240	nv_icmd(dev, 0x00072e, 0x00000000);
 241	nv_icmd(dev, 0x00072f, 0x00000000);
 242	nv_icmd(dev, 0x0008c0, 0x00000000);
 243	nv_icmd(dev, 0x0008c1, 0x00000000);
 244	nv_icmd(dev, 0x0008c2, 0x00000000);
 245	nv_icmd(dev, 0x0008c3, 0x00000000);
 246	nv_icmd(dev, 0x0008c4, 0x00000000);
 247	nv_icmd(dev, 0x0008c5, 0x00000000);
 248	nv_icmd(dev, 0x0008c6, 0x00000000);
 249	nv_icmd(dev, 0x0008c7, 0x00000000);
 250	nv_icmd(dev, 0x0008c8, 0x00000000);
 251	nv_icmd(dev, 0x0008c9, 0x00000000);
 252	nv_icmd(dev, 0x0008ca, 0x00000000);
 253	nv_icmd(dev, 0x0008cb, 0x00000000);
 254	nv_icmd(dev, 0x0008cc, 0x00000000);
 255	nv_icmd(dev, 0x0008cd, 0x00000000);
 256	nv_icmd(dev, 0x0008ce, 0x00000000);
 257	nv_icmd(dev, 0x0008cf, 0x00000000);
 258	nv_icmd(dev, 0x000890, 0x00000000);
 259	nv_icmd(dev, 0x000891, 0x00000000);
 260	nv_icmd(dev, 0x000892, 0x00000000);
 261	nv_icmd(dev, 0x000893, 0x00000000);
 262	nv_icmd(dev, 0x000894, 0x00000000);
 263	nv_icmd(dev, 0x000895, 0x00000000);
 264	nv_icmd(dev, 0x000896, 0x00000000);
 265	nv_icmd(dev, 0x000897, 0x00000000);
 266	nv_icmd(dev, 0x000898, 0x00000000);
 267	nv_icmd(dev, 0x000899, 0x00000000);
 268	nv_icmd(dev, 0x00089a, 0x00000000);
 269	nv_icmd(dev, 0x00089b, 0x00000000);
 270	nv_icmd(dev, 0x00089c, 0x00000000);
 271	nv_icmd(dev, 0x00089d, 0x00000000);
 272	nv_icmd(dev, 0x00089e, 0x00000000);
 273	nv_icmd(dev, 0x00089f, 0x00000000);
 274	nv_icmd(dev, 0x0008e0, 0x00000000);
 275	nv_icmd(dev, 0x0008e1, 0x00000000);
 276	nv_icmd(dev, 0x0008e2, 0x00000000);
 277	nv_icmd(dev, 0x0008e3, 0x00000000);
 278	nv_icmd(dev, 0x0008e4, 0x00000000);
 279	nv_icmd(dev, 0x0008e5, 0x00000000);
 280	nv_icmd(dev, 0x0008e6, 0x00000000);
 281	nv_icmd(dev, 0x0008e7, 0x00000000);
 282	nv_icmd(dev, 0x0008e8, 0x00000000);
 283	nv_icmd(dev, 0x0008e9, 0x00000000);
 284	nv_icmd(dev, 0x0008ea, 0x00000000);
 285	nv_icmd(dev, 0x0008eb, 0x00000000);
 286	nv_icmd(dev, 0x0008ec, 0x00000000);
 287	nv_icmd(dev, 0x0008ed, 0x00000000);
 288	nv_icmd(dev, 0x0008ee, 0x00000000);
 289	nv_icmd(dev, 0x0008ef, 0x00000000);
 290	nv_icmd(dev, 0x0008a0, 0x00000000);
 291	nv_icmd(dev, 0x0008a1, 0x00000000);
 292	nv_icmd(dev, 0x0008a2, 0x00000000);
 293	nv_icmd(dev, 0x0008a3, 0x00000000);
 294	nv_icmd(dev, 0x0008a4, 0x00000000);
 295	nv_icmd(dev, 0x0008a5, 0x00000000);
 296	nv_icmd(dev, 0x0008a6, 0x00000000);
 297	nv_icmd(dev, 0x0008a7, 0x00000000);
 298	nv_icmd(dev, 0x0008a8, 0x00000000);
 299	nv_icmd(dev, 0x0008a9, 0x00000000);
 300	nv_icmd(dev, 0x0008aa, 0x00000000);
 301	nv_icmd(dev, 0x0008ab, 0x00000000);
 302	nv_icmd(dev, 0x0008ac, 0x00000000);
 303	nv_icmd(dev, 0x0008ad, 0x00000000);
 304	nv_icmd(dev, 0x0008ae, 0x00000000);
 305	nv_icmd(dev, 0x0008af, 0x00000000);
 306	nv_icmd(dev, 0x0008f0, 0x00000000);
 307	nv_icmd(dev, 0x0008f1, 0x00000000);
 308	nv_icmd(dev, 0x0008f2, 0x00000000);
 309	nv_icmd(dev, 0x0008f3, 0x00000000);
 310	nv_icmd(dev, 0x0008f4, 0x00000000);
 311	nv_icmd(dev, 0x0008f5, 0x00000000);
 312	nv_icmd(dev, 0x0008f6, 0x00000000);
 313	nv_icmd(dev, 0x0008f7, 0x00000000);
 314	nv_icmd(dev, 0x0008f8, 0x00000000);
 315	nv_icmd(dev, 0x0008f9, 0x00000000);
 316	nv_icmd(dev, 0x0008fa, 0x00000000);
 317	nv_icmd(dev, 0x0008fb, 0x00000000);
 318	nv_icmd(dev, 0x0008fc, 0x00000000);
 319	nv_icmd(dev, 0x0008fd, 0x00000000);
 320	nv_icmd(dev, 0x0008fe, 0x00000000);
 321	nv_icmd(dev, 0x0008ff, 0x00000000);
 322	nv_icmd(dev, 0x00094c, 0x000000ff);
 323	nv_icmd(dev, 0x00094d, 0xffffffff);
 324	nv_icmd(dev, 0x00094e, 0x00000002);
 325	nv_icmd(dev, 0x0002ec, 0x00000001);
 326	nv_icmd(dev, 0x000303, 0x00000001);
 327	nv_icmd(dev, 0x0002e6, 0x00000001);
 328	nv_icmd(dev, 0x000466, 0x00000052);
 329	nv_icmd(dev, 0x000301, 0x3f800000);
 330	nv_icmd(dev, 0x000304, 0x30201000);
 331	nv_icmd(dev, 0x000305, 0x70605040);
 332	nv_icmd(dev, 0x000306, 0xb8a89888);
 333	nv_icmd(dev, 0x000307, 0xf8e8d8c8);
 334	nv_icmd(dev, 0x00030a, 0x00ffff00);
 335	nv_icmd(dev, 0x00030b, 0x0000001a);
 336	nv_icmd(dev, 0x00030c, 0x00000001);
 337	nv_icmd(dev, 0x000318, 0x00000001);
 338	nv_icmd(dev, 0x000340, 0x00000000);
 339	nv_icmd(dev, 0x000375, 0x00000001);
 340	nv_icmd(dev, 0x00037d, 0x00000006);
 341	nv_icmd(dev, 0x0003a0, 0x00000002);
 342	nv_icmd(dev, 0x0003aa, 0x00000001);
 343	nv_icmd(dev, 0x0003a9, 0x00000001);
 344	nv_icmd(dev, 0x000380, 0x00000001);
 345	nv_icmd(dev, 0x000383, 0x00000011);
 346	nv_icmd(dev, 0x000360, 0x00000040);
 347	nv_icmd(dev, 0x000366, 0x00000000);
 348	nv_icmd(dev, 0x000367, 0x00000000);
 349	nv_icmd(dev, 0x000368, 0x00000fff);
 350	nv_icmd(dev, 0x000370, 0x00000000);
 351	nv_icmd(dev, 0x000371, 0x00000000);
 352	nv_icmd(dev, 0x000372, 0x000fffff);
 353	nv_icmd(dev, 0x00037a, 0x00000012);
 354	nv_icmd(dev, 0x000619, 0x00000003);
 355	nv_icmd(dev, 0x000811, 0x00000003);
 356	nv_icmd(dev, 0x000812, 0x00000004);
 357	nv_icmd(dev, 0x000813, 0x00000006);
 358	nv_icmd(dev, 0x000814, 0x00000008);
 359	nv_icmd(dev, 0x000815, 0x0000000b);
 360	nv_icmd(dev, 0x000800, 0x00000001);
 361	nv_icmd(dev, 0x000801, 0x00000001);
 362	nv_icmd(dev, 0x000802, 0x00000001);
 363	nv_icmd(dev, 0x000803, 0x00000001);
 364	nv_icmd(dev, 0x000804, 0x00000001);
 365	nv_icmd(dev, 0x000805, 0x00000001);
 366	nv_icmd(dev, 0x000632, 0x00000001);
 367	nv_icmd(dev, 0x000633, 0x00000002);
 368	nv_icmd(dev, 0x000634, 0x00000003);
 369	nv_icmd(dev, 0x000635, 0x00000004);
 370	nv_icmd(dev, 0x000654, 0x3f800000);
 371	nv_icmd(dev, 0x000657, 0x3f800000);
 372	nv_icmd(dev, 0x000655, 0x3f800000);
 373	nv_icmd(dev, 0x000656, 0x3f800000);
 374	nv_icmd(dev, 0x0006cd, 0x3f800000);
 375	nv_icmd(dev, 0x0007f5, 0x3f800000);
 376	nv_icmd(dev, 0x0007dc, 0x39291909);
 377	nv_icmd(dev, 0x0007dd, 0x79695949);
 378	nv_icmd(dev, 0x0007de, 0xb9a99989);
 379	nv_icmd(dev, 0x0007df, 0xf9e9d9c9);
 380	nv_icmd(dev, 0x0007e8, 0x00003210);
 381	nv_icmd(dev, 0x0007e9, 0x00007654);
 382	nv_icmd(dev, 0x0007ea, 0x00000098);
 383	nv_icmd(dev, 0x0007ec, 0x39291909);
 384	nv_icmd(dev, 0x0007ed, 0x79695949);
 385	nv_icmd(dev, 0x0007ee, 0xb9a99989);
 386	nv_icmd(dev, 0x0007ef, 0xf9e9d9c9);
 387	nv_icmd(dev, 0x0007f0, 0x00003210);
 388	nv_icmd(dev, 0x0007f1, 0x00007654);
 389	nv_icmd(dev, 0x0007f2, 0x00000098);
 390	nv_icmd(dev, 0x0005a5, 0x00000001);
 391	nv_icmd(dev, 0x000980, 0x00000000);
 392	nv_icmd(dev, 0x000981, 0x00000000);
 393	nv_icmd(dev, 0x000982, 0x00000000);
 394	nv_icmd(dev, 0x000983, 0x00000000);
 395	nv_icmd(dev, 0x000984, 0x00000000);
 396	nv_icmd(dev, 0x000985, 0x00000000);
 397	nv_icmd(dev, 0x000986, 0x00000000);
 398	nv_icmd(dev, 0x000987, 0x00000000);
 399	nv_icmd(dev, 0x000988, 0x00000000);
 400	nv_icmd(dev, 0x000989, 0x00000000);
 401	nv_icmd(dev, 0x00098a, 0x00000000);
 402	nv_icmd(dev, 0x00098b, 0x00000000);
 403	nv_icmd(dev, 0x00098c, 0x00000000);
 404	nv_icmd(dev, 0x00098d, 0x00000000);
 405	nv_icmd(dev, 0x00098e, 0x00000000);
 406	nv_icmd(dev, 0x00098f, 0x00000000);
 407	nv_icmd(dev, 0x000990, 0x00000000);
 408	nv_icmd(dev, 0x000991, 0x00000000);
 409	nv_icmd(dev, 0x000992, 0x00000000);
 410	nv_icmd(dev, 0x000993, 0x00000000);
 411	nv_icmd(dev, 0x000994, 0x00000000);
 412	nv_icmd(dev, 0x000995, 0x00000000);
 413	nv_icmd(dev, 0x000996, 0x00000000);
 414	nv_icmd(dev, 0x000997, 0x00000000);
 415	nv_icmd(dev, 0x000998, 0x00000000);
 416	nv_icmd(dev, 0x000999, 0x00000000);
 417	nv_icmd(dev, 0x00099a, 0x00000000);
 418	nv_icmd(dev, 0x00099b, 0x00000000);
 419	nv_icmd(dev, 0x00099c, 0x00000000);
 420	nv_icmd(dev, 0x00099d, 0x00000000);
 421	nv_icmd(dev, 0x00099e, 0x00000000);
 422	nv_icmd(dev, 0x00099f, 0x00000000);
 423	nv_icmd(dev, 0x0009a0, 0x00000000);
 424	nv_icmd(dev, 0x0009a1, 0x00000000);
 425	nv_icmd(dev, 0x0009a2, 0x00000000);
 426	nv_icmd(dev, 0x0009a3, 0x00000000);
 427	nv_icmd(dev, 0x0009a4, 0x00000000);
 428	nv_icmd(dev, 0x0009a5, 0x00000000);
 429	nv_icmd(dev, 0x0009a6, 0x00000000);
 430	nv_icmd(dev, 0x0009a7, 0x00000000);
 431	nv_icmd(dev, 0x0009a8, 0x00000000);
 432	nv_icmd(dev, 0x0009a9, 0x00000000);
 433	nv_icmd(dev, 0x0009aa, 0x00000000);
 434	nv_icmd(dev, 0x0009ab, 0x00000000);
 435	nv_icmd(dev, 0x0009ac, 0x00000000);
 436	nv_icmd(dev, 0x0009ad, 0x00000000);
 437	nv_icmd(dev, 0x0009ae, 0x00000000);
 438	nv_icmd(dev, 0x0009af, 0x00000000);
 439	nv_icmd(dev, 0x0009b0, 0x00000000);
 440	nv_icmd(dev, 0x0009b1, 0x00000000);
 441	nv_icmd(dev, 0x0009b2, 0x00000000);
 442	nv_icmd(dev, 0x0009b3, 0x00000000);
 443	nv_icmd(dev, 0x0009b4, 0x00000000);
 444	nv_icmd(dev, 0x0009b5, 0x00000000);
 445	nv_icmd(dev, 0x0009b6, 0x00000000);
 446	nv_icmd(dev, 0x0009b7, 0x00000000);
 447	nv_icmd(dev, 0x0009b8, 0x00000000);
 448	nv_icmd(dev, 0x0009b9, 0x00000000);
 449	nv_icmd(dev, 0x0009ba, 0x00000000);
 450	nv_icmd(dev, 0x0009bb, 0x00000000);
 451	nv_icmd(dev, 0x0009bc, 0x00000000);
 452	nv_icmd(dev, 0x0009bd, 0x00000000);
 453	nv_icmd(dev, 0x0009be, 0x00000000);
 454	nv_icmd(dev, 0x0009bf, 0x00000000);
 455	nv_icmd(dev, 0x0009c0, 0x00000000);
 456	nv_icmd(dev, 0x0009c1, 0x00000000);
 457	nv_icmd(dev, 0x0009c2, 0x00000000);
 458	nv_icmd(dev, 0x0009c3, 0x00000000);
 459	nv_icmd(dev, 0x0009c4, 0x00000000);
 460	nv_icmd(dev, 0x0009c5, 0x00000000);
 461	nv_icmd(dev, 0x0009c6, 0x00000000);
 462	nv_icmd(dev, 0x0009c7, 0x00000000);
 463	nv_icmd(dev, 0x0009c8, 0x00000000);
 464	nv_icmd(dev, 0x0009c9, 0x00000000);
 465	nv_icmd(dev, 0x0009ca, 0x00000000);
 466	nv_icmd(dev, 0x0009cb, 0x00000000);
 467	nv_icmd(dev, 0x0009cc, 0x00000000);
 468	nv_icmd(dev, 0x0009cd, 0x00000000);
 469	nv_icmd(dev, 0x0009ce, 0x00000000);
 470	nv_icmd(dev, 0x0009cf, 0x00000000);
 471	nv_icmd(dev, 0x0009d0, 0x00000000);
 472	nv_icmd(dev, 0x0009d1, 0x00000000);
 473	nv_icmd(dev, 0x0009d2, 0x00000000);
 474	nv_icmd(dev, 0x0009d3, 0x00000000);
 475	nv_icmd(dev, 0x0009d4, 0x00000000);
 476	nv_icmd(dev, 0x0009d5, 0x00000000);
 477	nv_icmd(dev, 0x0009d6, 0x00000000);
 478	nv_icmd(dev, 0x0009d7, 0x00000000);
 479	nv_icmd(dev, 0x0009d8, 0x00000000);
 480	nv_icmd(dev, 0x0009d9, 0x00000000);
 481	nv_icmd(dev, 0x0009da, 0x00000000);
 482	nv_icmd(dev, 0x0009db, 0x00000000);
 483	nv_icmd(dev, 0x0009dc, 0x00000000);
 484	nv_icmd(dev, 0x0009dd, 0x00000000);
 485	nv_icmd(dev, 0x0009de, 0x00000000);
 486	nv_icmd(dev, 0x0009df, 0x00000000);
 487	nv_icmd(dev, 0x0009e0, 0x00000000);
 488	nv_icmd(dev, 0x0009e1, 0x00000000);
 489	nv_icmd(dev, 0x0009e2, 0x00000000);
 490	nv_icmd(dev, 0x0009e3, 0x00000000);
 491	nv_icmd(dev, 0x0009e4, 0x00000000);
 492	nv_icmd(dev, 0x0009e5, 0x00000000);
 493	nv_icmd(dev, 0x0009e6, 0x00000000);
 494	nv_icmd(dev, 0x0009e7, 0x00000000);
 495	nv_icmd(dev, 0x0009e8, 0x00000000);
 496	nv_icmd(dev, 0x0009e9, 0x00000000);
 497	nv_icmd(dev, 0x0009ea, 0x00000000);
 498	nv_icmd(dev, 0x0009eb, 0x00000000);
 499	nv_icmd(dev, 0x0009ec, 0x00000000);
 500	nv_icmd(dev, 0x0009ed, 0x00000000);
 501	nv_icmd(dev, 0x0009ee, 0x00000000);
 502	nv_icmd(dev, 0x0009ef, 0x00000000);
 503	nv_icmd(dev, 0x0009f0, 0x00000000);
 504	nv_icmd(dev, 0x0009f1, 0x00000000);
 505	nv_icmd(dev, 0x0009f2, 0x00000000);
 506	nv_icmd(dev, 0x0009f3, 0x00000000);
 507	nv_icmd(dev, 0x0009f4, 0x00000000);
 508	nv_icmd(dev, 0x0009f5, 0x00000000);
 509	nv_icmd(dev, 0x0009f6, 0x00000000);
 510	nv_icmd(dev, 0x0009f7, 0x00000000);
 511	nv_icmd(dev, 0x0009f8, 0x00000000);
 512	nv_icmd(dev, 0x0009f9, 0x00000000);
 513	nv_icmd(dev, 0x0009fa, 0x00000000);
 514	nv_icmd(dev, 0x0009fb, 0x00000000);
 515	nv_icmd(dev, 0x0009fc, 0x00000000);
 516	nv_icmd(dev, 0x0009fd, 0x00000000);
 517	nv_icmd(dev, 0x0009fe, 0x00000000);
 518	nv_icmd(dev, 0x0009ff, 0x00000000);
 519	nv_icmd(dev, 0x000468, 0x00000004);
 520	nv_icmd(dev, 0x00046c, 0x00000001);
 521	nv_icmd(dev, 0x000470, 0x00000000);
 522	nv_icmd(dev, 0x000471, 0x00000000);
 523	nv_icmd(dev, 0x000472, 0x00000000);
 524	nv_icmd(dev, 0x000473, 0x00000000);
 525	nv_icmd(dev, 0x000474, 0x00000000);
 526	nv_icmd(dev, 0x000475, 0x00000000);
 527	nv_icmd(dev, 0x000476, 0x00000000);
 528	nv_icmd(dev, 0x000477, 0x00000000);
 529	nv_icmd(dev, 0x000478, 0x00000000);
 530	nv_icmd(dev, 0x000479, 0x00000000);
 531	nv_icmd(dev, 0x00047a, 0x00000000);
 532	nv_icmd(dev, 0x00047b, 0x00000000);
 533	nv_icmd(dev, 0x00047c, 0x00000000);
 534	nv_icmd(dev, 0x00047d, 0x00000000);
 535	nv_icmd(dev, 0x00047e, 0x00000000);
 536	nv_icmd(dev, 0x00047f, 0x00000000);
 537	nv_icmd(dev, 0x000480, 0x00000000);
 538	nv_icmd(dev, 0x000481, 0x00000000);
 539	nv_icmd(dev, 0x000482, 0x00000000);
 540	nv_icmd(dev, 0x000483, 0x00000000);
 541	nv_icmd(dev, 0x000484, 0x00000000);
 542	nv_icmd(dev, 0x000485, 0x00000000);
 543	nv_icmd(dev, 0x000486, 0x00000000);
 544	nv_icmd(dev, 0x000487, 0x00000000);
 545	nv_icmd(dev, 0x000488, 0x00000000);
 546	nv_icmd(dev, 0x000489, 0x00000000);
 547	nv_icmd(dev, 0x00048a, 0x00000000);
 548	nv_icmd(dev, 0x00048b, 0x00000000);
 549	nv_icmd(dev, 0x00048c, 0x00000000);
 550	nv_icmd(dev, 0x00048d, 0x00000000);
 551	nv_icmd(dev, 0x00048e, 0x00000000);
 552	nv_icmd(dev, 0x00048f, 0x00000000);
 553	nv_icmd(dev, 0x000490, 0x00000000);
 554	nv_icmd(dev, 0x000491, 0x00000000);
 555	nv_icmd(dev, 0x000492, 0x00000000);
 556	nv_icmd(dev, 0x000493, 0x00000000);
 557	nv_icmd(dev, 0x000494, 0x00000000);
 558	nv_icmd(dev, 0x000495, 0x00000000);
 559	nv_icmd(dev, 0x000496, 0x00000000);
 560	nv_icmd(dev, 0x000497, 0x00000000);
 561	nv_icmd(dev, 0x000498, 0x00000000);
 562	nv_icmd(dev, 0x000499, 0x00000000);
 563	nv_icmd(dev, 0x00049a, 0x00000000);
 564	nv_icmd(dev, 0x00049b, 0x00000000);
 565	nv_icmd(dev, 0x00049c, 0x00000000);
 566	nv_icmd(dev, 0x00049d, 0x00000000);
 567	nv_icmd(dev, 0x00049e, 0x00000000);
 568	nv_icmd(dev, 0x00049f, 0x00000000);
 569	nv_icmd(dev, 0x0004a0, 0x00000000);
 570	nv_icmd(dev, 0x0004a1, 0x00000000);
 571	nv_icmd(dev, 0x0004a2, 0x00000000);
 572	nv_icmd(dev, 0x0004a3, 0x00000000);
 573	nv_icmd(dev, 0x0004a4, 0x00000000);
 574	nv_icmd(dev, 0x0004a5, 0x00000000);
 575	nv_icmd(dev, 0x0004a6, 0x00000000);
 576	nv_icmd(dev, 0x0004a7, 0x00000000);
 577	nv_icmd(dev, 0x0004a8, 0x00000000);
 578	nv_icmd(dev, 0x0004a9, 0x00000000);
 579	nv_icmd(dev, 0x0004aa, 0x00000000);
 580	nv_icmd(dev, 0x0004ab, 0x00000000);
 581	nv_icmd(dev, 0x0004ac, 0x00000000);
 582	nv_icmd(dev, 0x0004ad, 0x00000000);
 583	nv_icmd(dev, 0x0004ae, 0x00000000);
 584	nv_icmd(dev, 0x0004af, 0x00000000);
 585	nv_icmd(dev, 0x0004b0, 0x00000000);
 586	nv_icmd(dev, 0x0004b1, 0x00000000);
 587	nv_icmd(dev, 0x0004b2, 0x00000000);
 588	nv_icmd(dev, 0x0004b3, 0x00000000);
 589	nv_icmd(dev, 0x0004b4, 0x00000000);
 590	nv_icmd(dev, 0x0004b5, 0x00000000);
 591	nv_icmd(dev, 0x0004b6, 0x00000000);
 592	nv_icmd(dev, 0x0004b7, 0x00000000);
 593	nv_icmd(dev, 0x0004b8, 0x00000000);
 594	nv_icmd(dev, 0x0004b9, 0x00000000);
 595	nv_icmd(dev, 0x0004ba, 0x00000000);
 596	nv_icmd(dev, 0x0004bb, 0x00000000);
 597	nv_icmd(dev, 0x0004bc, 0x00000000);
 598	nv_icmd(dev, 0x0004bd, 0x00000000);
 599	nv_icmd(dev, 0x0004be, 0x00000000);
 600	nv_icmd(dev, 0x0004bf, 0x00000000);
 601	nv_icmd(dev, 0x0004c0, 0x00000000);
 602	nv_icmd(dev, 0x0004c1, 0x00000000);
 603	nv_icmd(dev, 0x0004c2, 0x00000000);
 604	nv_icmd(dev, 0x0004c3, 0x00000000);
 605	nv_icmd(dev, 0x0004c4, 0x00000000);
 606	nv_icmd(dev, 0x0004c5, 0x00000000);
 607	nv_icmd(dev, 0x0004c6, 0x00000000);
 608	nv_icmd(dev, 0x0004c7, 0x00000000);
 609	nv_icmd(dev, 0x0004c8, 0x00000000);
 610	nv_icmd(dev, 0x0004c9, 0x00000000);
 611	nv_icmd(dev, 0x0004ca, 0x00000000);
 612	nv_icmd(dev, 0x0004cb, 0x00000000);
 613	nv_icmd(dev, 0x0004cc, 0x00000000);
 614	nv_icmd(dev, 0x0004cd, 0x00000000);
 615	nv_icmd(dev, 0x0004ce, 0x00000000);
 616	nv_icmd(dev, 0x0004cf, 0x00000000);
 617	nv_icmd(dev, 0x000510, 0x3f800000);
 618	nv_icmd(dev, 0x000511, 0x3f800000);
 619	nv_icmd(dev, 0x000512, 0x3f800000);
 620	nv_icmd(dev, 0x000513, 0x3f800000);
 621	nv_icmd(dev, 0x000514, 0x3f800000);
 622	nv_icmd(dev, 0x000515, 0x3f800000);
 623	nv_icmd(dev, 0x000516, 0x3f800000);
 624	nv_icmd(dev, 0x000517, 0x3f800000);
 625	nv_icmd(dev, 0x000518, 0x3f800000);
 626	nv_icmd(dev, 0x000519, 0x3f800000);
 627	nv_icmd(dev, 0x00051a, 0x3f800000);
 628	nv_icmd(dev, 0x00051b, 0x3f800000);
 629	nv_icmd(dev, 0x00051c, 0x3f800000);
 630	nv_icmd(dev, 0x00051d, 0x3f800000);
 631	nv_icmd(dev, 0x00051e, 0x3f800000);
 632	nv_icmd(dev, 0x00051f, 0x3f800000);
 633	nv_icmd(dev, 0x000520, 0x000002b6);
 634	nv_icmd(dev, 0x000529, 0x00000001);
 635	nv_icmd(dev, 0x000530, 0xffff0000);
 636	nv_icmd(dev, 0x000531, 0xffff0000);
 637	nv_icmd(dev, 0x000532, 0xffff0000);
 638	nv_icmd(dev, 0x000533, 0xffff0000);
 639	nv_icmd(dev, 0x000534, 0xffff0000);
 640	nv_icmd(dev, 0x000535, 0xffff0000);
 641	nv_icmd(dev, 0x000536, 0xffff0000);
 642	nv_icmd(dev, 0x000537, 0xffff0000);
 643	nv_icmd(dev, 0x000538, 0xffff0000);
 644	nv_icmd(dev, 0x000539, 0xffff0000);
 645	nv_icmd(dev, 0x00053a, 0xffff0000);
 646	nv_icmd(dev, 0x00053b, 0xffff0000);
 647	nv_icmd(dev, 0x00053c, 0xffff0000);
 648	nv_icmd(dev, 0x00053d, 0xffff0000);
 649	nv_icmd(dev, 0x00053e, 0xffff0000);
 650	nv_icmd(dev, 0x00053f, 0xffff0000);
 651	nv_icmd(dev, 0x000585, 0x0000003f);
 652	nv_icmd(dev, 0x000576, 0x00000003);
 653	nv_icmd(dev, 0x00057b, 0x00000059);
 654	nv_icmd(dev, 0x000586, 0x00000040);
 655	nv_icmd(dev, 0x000582, 0x00000080);
 656	nv_icmd(dev, 0x000583, 0x00000080);
 657	nv_icmd(dev, 0x0005c2, 0x00000001);
 658	nv_icmd(dev, 0x000638, 0x00000001);
 659	nv_icmd(dev, 0x000639, 0x00000001);
 660	nv_icmd(dev, 0x00063a, 0x00000002);
 661	nv_icmd(dev, 0x00063b, 0x00000001);
 662	nv_icmd(dev, 0x00063c, 0x00000001);
 663	nv_icmd(dev, 0x00063d, 0x00000002);
 664	nv_icmd(dev, 0x00063e, 0x00000001);
 665	nv_icmd(dev, 0x0008b8, 0x00000001);
 666	nv_icmd(dev, 0x0008b9, 0x00000001);
 667	nv_icmd(dev, 0x0008ba, 0x00000001);
 668	nv_icmd(dev, 0x0008bb, 0x00000001);
 669	nv_icmd(dev, 0x0008bc, 0x00000001);
 670	nv_icmd(dev, 0x0008bd, 0x00000001);
 671	nv_icmd(dev, 0x0008be, 0x00000001);
 672	nv_icmd(dev, 0x0008bf, 0x00000001);
 673	nv_icmd(dev, 0x000900, 0x00000001);
 674	nv_icmd(dev, 0x000901, 0x00000001);
 675	nv_icmd(dev, 0x000902, 0x00000001);
 676	nv_icmd(dev, 0x000903, 0x00000001);
 677	nv_icmd(dev, 0x000904, 0x00000001);
 678	nv_icmd(dev, 0x000905, 0x00000001);
 679	nv_icmd(dev, 0x000906, 0x00000001);
 680	nv_icmd(dev, 0x000907, 0x00000001);
 681	nv_icmd(dev, 0x000908, 0x00000002);
 682	nv_icmd(dev, 0x000909, 0x00000002);
 683	nv_icmd(dev, 0x00090a, 0x00000002);
 684	nv_icmd(dev, 0x00090b, 0x00000002);
 685	nv_icmd(dev, 0x00090c, 0x00000002);
 686	nv_icmd(dev, 0x00090d, 0x00000002);
 687	nv_icmd(dev, 0x00090e, 0x00000002);
 688	nv_icmd(dev, 0x00090f, 0x00000002);
 689	nv_icmd(dev, 0x000910, 0x00000001);
 690	nv_icmd(dev, 0x000911, 0x00000001);
 691	nv_icmd(dev, 0x000912, 0x00000001);
 692	nv_icmd(dev, 0x000913, 0x00000001);
 693	nv_icmd(dev, 0x000914, 0x00000001);
 694	nv_icmd(dev, 0x000915, 0x00000001);
 695	nv_icmd(dev, 0x000916, 0x00000001);
 696	nv_icmd(dev, 0x000917, 0x00000001);
 697	nv_icmd(dev, 0x000918, 0x00000001);
 698	nv_icmd(dev, 0x000919, 0x00000001);
 699	nv_icmd(dev, 0x00091a, 0x00000001);
 700	nv_icmd(dev, 0x00091b, 0x00000001);
 701	nv_icmd(dev, 0x00091c, 0x00000001);
 702	nv_icmd(dev, 0x00091d, 0x00000001);
 703	nv_icmd(dev, 0x00091e, 0x00000001);
 704	nv_icmd(dev, 0x00091f, 0x00000001);
 705	nv_icmd(dev, 0x000920, 0x00000002);
 706	nv_icmd(dev, 0x000921, 0x00000002);
 707	nv_icmd(dev, 0x000922, 0x00000002);
 708	nv_icmd(dev, 0x000923, 0x00000002);
 709	nv_icmd(dev, 0x000924, 0x00000002);
 710	nv_icmd(dev, 0x000925, 0x00000002);
 711	nv_icmd(dev, 0x000926, 0x00000002);
 712	nv_icmd(dev, 0x000927, 0x00000002);
 713	nv_icmd(dev, 0x000928, 0x00000001);
 714	nv_icmd(dev, 0x000929, 0x00000001);
 715	nv_icmd(dev, 0x00092a, 0x00000001);
 716	nv_icmd(dev, 0x00092b, 0x00000001);
 717	nv_icmd(dev, 0x00092c, 0x00000001);
 718	nv_icmd(dev, 0x00092d, 0x00000001);
 719	nv_icmd(dev, 0x00092e, 0x00000001);
 720	nv_icmd(dev, 0x00092f, 0x00000001);
 721	nv_icmd(dev, 0x000648, 0x00000001);
 722	nv_icmd(dev, 0x000649, 0x00000001);
 723	nv_icmd(dev, 0x00064a, 0x00000001);
 724	nv_icmd(dev, 0x00064b, 0x00000001);
 725	nv_icmd(dev, 0x00064c, 0x00000001);
 726	nv_icmd(dev, 0x00064d, 0x00000001);
 727	nv_icmd(dev, 0x00064e, 0x00000001);
 728	nv_icmd(dev, 0x00064f, 0x00000001);
 729	nv_icmd(dev, 0x000650, 0x00000001);
 730	nv_icmd(dev, 0x000658, 0x0000000f);
 731	nv_icmd(dev, 0x0007ff, 0x0000000a);
 732	nv_icmd(dev, 0x00066a, 0x40000000);
 733	nv_icmd(dev, 0x00066b, 0x10000000);
 734	nv_icmd(dev, 0x00066c, 0xffff0000);
 735	nv_icmd(dev, 0x00066d, 0xffff0000);
 736	nv_icmd(dev, 0x0007af, 0x00000008);
 737	nv_icmd(dev, 0x0007b0, 0x00000008);
 738	nv_icmd(dev, 0x0007f6, 0x00000001);
 739	nv_icmd(dev, 0x0006b2, 0x00000055);
 740	nv_icmd(dev, 0x0007ad, 0x00000003);
 741	nv_icmd(dev, 0x000937, 0x00000001);
 742	nv_icmd(dev, 0x000971, 0x00000008);
 743	nv_icmd(dev, 0x000972, 0x00000040);
 744	nv_icmd(dev, 0x000973, 0x0000012c);
 745	nv_icmd(dev, 0x00097c, 0x00000040);
 746	nv_icmd(dev, 0x000979, 0x00000003);
 747	nv_icmd(dev, 0x000975, 0x00000020);
 748	nv_icmd(dev, 0x000976, 0x00000001);
 749	nv_icmd(dev, 0x000977, 0x00000020);
 750	nv_icmd(dev, 0x000978, 0x00000001);
 751	nv_icmd(dev, 0x000957, 0x00000003);
 752	nv_icmd(dev, 0x00095e, 0x20164010);
 753	nv_icmd(dev, 0x00095f, 0x00000020);
 754	nv_icmd(dev, 0x00097d, 0x00000020);
 755	nv_icmd(dev, 0x000683, 0x00000006);
 756	nv_icmd(dev, 0x000685, 0x003fffff);
 757	nv_icmd(dev, 0x000687, 0x003fffff);
 758	nv_icmd(dev, 0x0006a0, 0x00000005);
 759	nv_icmd(dev, 0x000840, 0x00400008);
 760	nv_icmd(dev, 0x000841, 0x08000080);
 761	nv_icmd(dev, 0x000842, 0x00400008);
 762	nv_icmd(dev, 0x000843, 0x08000080);
 763	nv_icmd(dev, 0x000818, 0x00000000);
 764	nv_icmd(dev, 0x000819, 0x00000000);
 765	nv_icmd(dev, 0x00081a, 0x00000000);
 766	nv_icmd(dev, 0x00081b, 0x00000000);
 767	nv_icmd(dev, 0x00081c, 0x00000000);
 768	nv_icmd(dev, 0x00081d, 0x00000000);
 769	nv_icmd(dev, 0x00081e, 0x00000000);
 770	nv_icmd(dev, 0x00081f, 0x00000000);
 771	nv_icmd(dev, 0x000848, 0x00000000);
 772	nv_icmd(dev, 0x000849, 0x00000000);
 773	nv_icmd(dev, 0x00084a, 0x00000000);
 774	nv_icmd(dev, 0x00084b, 0x00000000);
 775	nv_icmd(dev, 0x00084c, 0x00000000);
 776	nv_icmd(dev, 0x00084d, 0x00000000);
 777	nv_icmd(dev, 0x00084e, 0x00000000);
 778	nv_icmd(dev, 0x00084f, 0x00000000);
 779	nv_icmd(dev, 0x000850, 0x00000000);
 780	nv_icmd(dev, 0x000851, 0x00000000);
 781	nv_icmd(dev, 0x000852, 0x00000000);
 782	nv_icmd(dev, 0x000853, 0x00000000);
 783	nv_icmd(dev, 0x000854, 0x00000000);
 784	nv_icmd(dev, 0x000855, 0x00000000);
 785	nv_icmd(dev, 0x000856, 0x00000000);
 786	nv_icmd(dev, 0x000857, 0x00000000);
 787	nv_icmd(dev, 0x000738, 0x00000000);
 788	nv_icmd(dev, 0x0006aa, 0x00000001);
 789	nv_icmd(dev, 0x0006ab, 0x00000002);
 790	nv_icmd(dev, 0x0006ac, 0x00000080);
 791	nv_icmd(dev, 0x0006ad, 0x00000100);
 792	nv_icmd(dev, 0x0006ae, 0x00000100);
 793	nv_icmd(dev, 0x0006b1, 0x00000011);
 794	nv_icmd(dev, 0x0006bb, 0x000000cf);
 795	nv_icmd(dev, 0x0006ce, 0x2a712488);
 796	nv_icmd(dev, 0x000739, 0x4085c000);
 797	nv_icmd(dev, 0x00073a, 0x00000080);
 798	nv_icmd(dev, 0x000786, 0x80000100);
 799	nv_icmd(dev, 0x00073c, 0x00010100);
 800	nv_icmd(dev, 0x00073d, 0x02800000);
 801	nv_icmd(dev, 0x000787, 0x000000cf);
 802	nv_icmd(dev, 0x00078c, 0x00000008);
 803	nv_icmd(dev, 0x000792, 0x00000001);
 804	nv_icmd(dev, 0x000794, 0x00000001);
 805	nv_icmd(dev, 0x000795, 0x00000001);
 806	nv_icmd(dev, 0x000796, 0x00000001);
 807	nv_icmd(dev, 0x000797, 0x000000cf);
 808	nv_icmd(dev, 0x000836, 0x00000001);
 809	nv_icmd(dev, 0x00079a, 0x00000002);
 810	nv_icmd(dev, 0x000833, 0x04444480);
 811	nv_icmd(dev, 0x0007a1, 0x00000001);
 812	nv_icmd(dev, 0x0007a3, 0x00000001);
 813	nv_icmd(dev, 0x0007a4, 0x00000001);
 814	nv_icmd(dev, 0x0007a5, 0x00000001);
 815	nv_icmd(dev, 0x000831, 0x00000004);
 816	nv_icmd(dev, 0x000b07, 0x00000002);
 817	nv_icmd(dev, 0x000b08, 0x00000100);
 818	nv_icmd(dev, 0x000b09, 0x00000100);
 819	nv_icmd(dev, 0x000b0a, 0x00000001);
 820	nv_icmd(dev, 0x000a04, 0x000000ff);
 821	nv_icmd(dev, 0x000a0b, 0x00000040);
 822	nv_icmd(dev, 0x00097f, 0x00000100);
 823	nv_icmd(dev, 0x000a02, 0x00000001);
 824	nv_icmd(dev, 0x000809, 0x00000007);
 825	nv_icmd(dev, 0x00c221, 0x00000040);
 826	nv_icmd(dev, 0x00c1b0, 0x0000000f);
 827	nv_icmd(dev, 0x00c1b1, 0x0000000f);
 828	nv_icmd(dev, 0x00c1b2, 0x0000000f);
 829	nv_icmd(dev, 0x00c1b3, 0x0000000f);
 830	nv_icmd(dev, 0x00c1b4, 0x0000000f);
 831	nv_icmd(dev, 0x00c1b5, 0x0000000f);
 832	nv_icmd(dev, 0x00c1b6, 0x0000000f);
 833	nv_icmd(dev, 0x00c1b7, 0x0000000f);
 834	nv_icmd(dev, 0x00c1b8, 0x0fac6881);
 835	nv_icmd(dev, 0x00c1b9, 0x00fac688);
 836	nv_icmd(dev, 0x00c401, 0x00000001);
 837	nv_icmd(dev, 0x00c402, 0x00010001);
 838	nv_icmd(dev, 0x00c403, 0x00000001);
 839	nv_icmd(dev, 0x00c404, 0x00000001);
 840	nv_icmd(dev, 0x00c40e, 0x00000020);
 841	nv_icmd(dev, 0x00c500, 0x00000003);
 842	nv_icmd(dev, 0x01e100, 0x00000001);
 843	nv_icmd(dev, 0x001000, 0x00000002);
 844	nv_icmd(dev, 0x0006aa, 0x00000001);
 845	nv_icmd(dev, 0x0006ad, 0x00000100);
 846	nv_icmd(dev, 0x0006ae, 0x00000100);
 847	nv_icmd(dev, 0x0006b1, 0x00000011);
 848	nv_icmd(dev, 0x00078c, 0x00000008);
 849	nv_icmd(dev, 0x000792, 0x00000001);
 850	nv_icmd(dev, 0x000794, 0x00000001);
 851	nv_icmd(dev, 0x000795, 0x00000001);
 852	nv_icmd(dev, 0x000796, 0x00000001);
 853	nv_icmd(dev, 0x000797, 0x000000cf);
 854	nv_icmd(dev, 0x00079a, 0x00000002);
 855	nv_icmd(dev, 0x000833, 0x04444480);
 856	nv_icmd(dev, 0x0007a1, 0x00000001);
 857	nv_icmd(dev, 0x0007a3, 0x00000001);
 858	nv_icmd(dev, 0x0007a4, 0x00000001);
 859	nv_icmd(dev, 0x0007a5, 0x00000001);
 860	nv_icmd(dev, 0x000831, 0x00000004);
 861	nv_icmd(dev, 0x01e100, 0x00000001);
 862	nv_icmd(dev, 0x001000, 0x00000008);
 863	nv_icmd(dev, 0x000039, 0x00000000);
 864	nv_icmd(dev, 0x00003a, 0x00000000);
 865	nv_icmd(dev, 0x00003b, 0x00000000);
 866	nv_icmd(dev, 0x000380, 0x00000001);
 867	nv_icmd(dev, 0x000366, 0x00000000);
 868	nv_icmd(dev, 0x000367, 0x00000000);
 869	nv_icmd(dev, 0x000368, 0x00000fff);
 870	nv_icmd(dev, 0x000370, 0x00000000);
 871	nv_icmd(dev, 0x000371, 0x00000000);
 872	nv_icmd(dev, 0x000372, 0x000fffff);
 873	nv_icmd(dev, 0x000813, 0x00000006);
 874	nv_icmd(dev, 0x000814, 0x00000008);
 875	nv_icmd(dev, 0x000957, 0x00000003);
 876	nv_icmd(dev, 0x000818, 0x00000000);
 877	nv_icmd(dev, 0x000819, 0x00000000);
 878	nv_icmd(dev, 0x00081a, 0x00000000);
 879	nv_icmd(dev, 0x00081b, 0x00000000);
 880	nv_icmd(dev, 0x00081c, 0x00000000);
 881	nv_icmd(dev, 0x00081d, 0x00000000);
 882	nv_icmd(dev, 0x00081e, 0x00000000);
 883	nv_icmd(dev, 0x00081f, 0x00000000);
 884	nv_icmd(dev, 0x000848, 0x00000000);
 885	nv_icmd(dev, 0x000849, 0x00000000);
 886	nv_icmd(dev, 0x00084a, 0x00000000);
 887	nv_icmd(dev, 0x00084b, 0x00000000);
 888	nv_icmd(dev, 0x00084c, 0x00000000);
 889	nv_icmd(dev, 0x00084d, 0x00000000);
 890	nv_icmd(dev, 0x00084e, 0x00000000);
 891	nv_icmd(dev, 0x00084f, 0x00000000);
 892	nv_icmd(dev, 0x000850, 0x00000000);
 893	nv_icmd(dev, 0x000851, 0x00000000);
 894	nv_icmd(dev, 0x000852, 0x00000000);
 895	nv_icmd(dev, 0x000853, 0x00000000);
 896	nv_icmd(dev, 0x000854, 0x00000000);
 897	nv_icmd(dev, 0x000855, 0x00000000);
 898	nv_icmd(dev, 0x000856, 0x00000000);
 899	nv_icmd(dev, 0x000857, 0x00000000);
 900	nv_icmd(dev, 0x000738, 0x00000000);
 901	nv_icmd(dev, 0x000b07, 0x00000002);
 902	nv_icmd(dev, 0x000b08, 0x00000100);
 903	nv_icmd(dev, 0x000b09, 0x00000100);
 904	nv_icmd(dev, 0x000b0a, 0x00000001);
 905	nv_icmd(dev, 0x000a04, 0x000000ff);
 906	nv_icmd(dev, 0x00097f, 0x00000100);
 907	nv_icmd(dev, 0x000a02, 0x00000001);
 908	nv_icmd(dev, 0x000809, 0x00000007);
 909	nv_icmd(dev, 0x00c221, 0x00000040);
 910	nv_icmd(dev, 0x00c401, 0x00000001);
 911	nv_icmd(dev, 0x00c402, 0x00010001);
 912	nv_icmd(dev, 0x00c403, 0x00000001);
 913	nv_icmd(dev, 0x00c404, 0x00000001);
 914	nv_icmd(dev, 0x00c40e, 0x00000020);
 915	nv_icmd(dev, 0x00c500, 0x00000003);
 916	nv_icmd(dev, 0x01e100, 0x00000001);
 917	nv_icmd(dev, 0x001000, 0x00000001);
 918	nv_icmd(dev, 0x000b07, 0x00000002);
 919	nv_icmd(dev, 0x000b08, 0x00000100);
 920	nv_icmd(dev, 0x000b09, 0x00000100);
 921	nv_icmd(dev, 0x000b0a, 0x00000001);
 922	nv_icmd(dev, 0x01e100, 0x00000001);
 923	nv_wr32(dev, 0x400208, 0x00000000);
 924}
 925
 926static void
 927nv_mthd(struct drm_device *dev, u32 class, u32 mthd, u32 data)
 928{
 929	nv_wr32(dev, 0x40448c, data);
 930	nv_wr32(dev, 0x404488, 0x80000000 | (mthd << 14) | class);
 931}
 932
 933static void
 934nve0_grctx_generate_a097(struct drm_device *dev)
 935{
 936	nv_mthd(dev, 0xa097, 0x0800, 0x00000000);
 937	nv_mthd(dev, 0xa097, 0x0840, 0x00000000);
 938	nv_mthd(dev, 0xa097, 0x0880, 0x00000000);
 939	nv_mthd(dev, 0xa097, 0x08c0, 0x00000000);
 940	nv_mthd(dev, 0xa097, 0x0900, 0x00000000);
 941	nv_mthd(dev, 0xa097, 0x0940, 0x00000000);
 942	nv_mthd(dev, 0xa097, 0x0980, 0x00000000);
 943	nv_mthd(dev, 0xa097, 0x09c0, 0x00000000);
 944	nv_mthd(dev, 0xa097, 0x0804, 0x00000000);
 945	nv_mthd(dev, 0xa097, 0x0844, 0x00000000);
 946	nv_mthd(dev, 0xa097, 0x0884, 0x00000000);
 947	nv_mthd(dev, 0xa097, 0x08c4, 0x00000000);
 948	nv_mthd(dev, 0xa097, 0x0904, 0x00000000);
 949	nv_mthd(dev, 0xa097, 0x0944, 0x00000000);
 950	nv_mthd(dev, 0xa097, 0x0984, 0x00000000);
 951	nv_mthd(dev, 0xa097, 0x09c4, 0x00000000);
 952	nv_mthd(dev, 0xa097, 0x0808, 0x00000400);
 953	nv_mthd(dev, 0xa097, 0x0848, 0x00000400);
 954	nv_mthd(dev, 0xa097, 0x0888, 0x00000400);
 955	nv_mthd(dev, 0xa097, 0x08c8, 0x00000400);
 956	nv_mthd(dev, 0xa097, 0x0908, 0x00000400);
 957	nv_mthd(dev, 0xa097, 0x0948, 0x00000400);
 958	nv_mthd(dev, 0xa097, 0x0988, 0x00000400);
 959	nv_mthd(dev, 0xa097, 0x09c8, 0x00000400);
 960	nv_mthd(dev, 0xa097, 0x080c, 0x00000300);
 961	nv_mthd(dev, 0xa097, 0x084c, 0x00000300);
 962	nv_mthd(dev, 0xa097, 0x088c, 0x00000300);
 963	nv_mthd(dev, 0xa097, 0x08cc, 0x00000300);
 964	nv_mthd(dev, 0xa097, 0x090c, 0x00000300);
 965	nv_mthd(dev, 0xa097, 0x094c, 0x00000300);
 966	nv_mthd(dev, 0xa097, 0x098c, 0x00000300);
 967	nv_mthd(dev, 0xa097, 0x09cc, 0x00000300);
 968	nv_mthd(dev, 0xa097, 0x0810, 0x000000cf);
 969	nv_mthd(dev, 0xa097, 0x0850, 0x00000000);
 970	nv_mthd(dev, 0xa097, 0x0890, 0x00000000);
 971	nv_mthd(dev, 0xa097, 0x08d0, 0x00000000);
 972	nv_mthd(dev, 0xa097, 0x0910, 0x00000000);
 973	nv_mthd(dev, 0xa097, 0x0950, 0x00000000);
 974	nv_mthd(dev, 0xa097, 0x0990, 0x00000000);
 975	nv_mthd(dev, 0xa097, 0x09d0, 0x00000000);
 976	nv_mthd(dev, 0xa097, 0x0814, 0x00000040);
 977	nv_mthd(dev, 0xa097, 0x0854, 0x00000040);
 978	nv_mthd(dev, 0xa097, 0x0894, 0x00000040);
 979	nv_mthd(dev, 0xa097, 0x08d4, 0x00000040);
 980	nv_mthd(dev, 0xa097, 0x0914, 0x00000040);
 981	nv_mthd(dev, 0xa097, 0x0954, 0x00000040);
 982	nv_mthd(dev, 0xa097, 0x0994, 0x00000040);
 983	nv_mthd(dev, 0xa097, 0x09d4, 0x00000040);
 984	nv_mthd(dev, 0xa097, 0x0818, 0x00000001);
 985	nv_mthd(dev, 0xa097, 0x0858, 0x00000001);
 986	nv_mthd(dev, 0xa097, 0x0898, 0x00000001);
 987	nv_mthd(dev, 0xa097, 0x08d8, 0x00000001);
 988	nv_mthd(dev, 0xa097, 0x0918, 0x00000001);
 989	nv_mthd(dev, 0xa097, 0x0958, 0x00000001);
 990	nv_mthd(dev, 0xa097, 0x0998, 0x00000001);
 991	nv_mthd(dev, 0xa097, 0x09d8, 0x00000001);
 992	nv_mthd(dev, 0xa097, 0x081c, 0x00000000);
 993	nv_mthd(dev, 0xa097, 0x085c, 0x00000000);
 994	nv_mthd(dev, 0xa097, 0x089c, 0x00000000);
 995	nv_mthd(dev, 0xa097, 0x08dc, 0x00000000);
 996	nv_mthd(dev, 0xa097, 0x091c, 0x00000000);
 997	nv_mthd(dev, 0xa097, 0x095c, 0x00000000);
 998	nv_mthd(dev, 0xa097, 0x099c, 0x00000000);
 999	nv_mthd(dev, 0xa097, 0x09dc, 0x00000000);
1000	nv_mthd(dev, 0xa097, 0x0820, 0x00000000);
1001	nv_mthd(dev, 0xa097, 0x0860, 0x00000000);
1002	nv_mthd(dev, 0xa097, 0x08a0, 0x00000000);
1003	nv_mthd(dev, 0xa097, 0x08e0, 0x00000000);
1004	nv_mthd(dev, 0xa097, 0x0920, 0x00000000);
1005	nv_mthd(dev, 0xa097, 0x0960, 0x00000000);
1006	nv_mthd(dev, 0xa097, 0x09a0, 0x00000000);
1007	nv_mthd(dev, 0xa097, 0x09e0, 0x00000000);
1008	nv_mthd(dev, 0xa097, 0x1c00, 0x00000000);
1009	nv_mthd(dev, 0xa097, 0x1c10, 0x00000000);
1010	nv_mthd(dev, 0xa097, 0x1c20, 0x00000000);
1011	nv_mthd(dev, 0xa097, 0x1c30, 0x00000000);
1012	nv_mthd(dev, 0xa097, 0x1c40, 0x00000000);
1013	nv_mthd(dev, 0xa097, 0x1c50, 0x00000000);
1014	nv_mthd(dev, 0xa097, 0x1c60, 0x00000000);
1015	nv_mthd(dev, 0xa097, 0x1c70, 0x00000000);
1016	nv_mthd(dev, 0xa097, 0x1c80, 0x00000000);
1017	nv_mthd(dev, 0xa097, 0x1c90, 0x00000000);
1018	nv_mthd(dev, 0xa097, 0x1ca0, 0x00000000);
1019	nv_mthd(dev, 0xa097, 0x1cb0, 0x00000000);
1020	nv_mthd(dev, 0xa097, 0x1cc0, 0x00000000);
1021	nv_mthd(dev, 0xa097, 0x1cd0, 0x00000000);
1022	nv_mthd(dev, 0xa097, 0x1ce0, 0x00000000);
1023	nv_mthd(dev, 0xa097, 0x1cf0, 0x00000000);
1024	nv_mthd(dev, 0xa097, 0x1c04, 0x00000000);
1025	nv_mthd(dev, 0xa097, 0x1c14, 0x00000000);
1026	nv_mthd(dev, 0xa097, 0x1c24, 0x00000000);
1027	nv_mthd(dev, 0xa097, 0x1c34, 0x00000000);
1028	nv_mthd(dev, 0xa097, 0x1c44, 0x00000000);
1029	nv_mthd(dev, 0xa097, 0x1c54, 0x00000000);
1030	nv_mthd(dev, 0xa097, 0x1c64, 0x00000000);
1031	nv_mthd(dev, 0xa097, 0x1c74, 0x00000000);
1032	nv_mthd(dev, 0xa097, 0x1c84, 0x00000000);
1033	nv_mthd(dev, 0xa097, 0x1c94, 0x00000000);
1034	nv_mthd(dev, 0xa097, 0x1ca4, 0x00000000);
1035	nv_mthd(dev, 0xa097, 0x1cb4, 0x00000000);
1036	nv_mthd(dev, 0xa097, 0x1cc4, 0x00000000);
1037	nv_mthd(dev, 0xa097, 0x1cd4, 0x00000000);
1038	nv_mthd(dev, 0xa097, 0x1ce4, 0x00000000);
1039	nv_mthd(dev, 0xa097, 0x1cf4, 0x00000000);
1040	nv_mthd(dev, 0xa097, 0x1c08, 0x00000000);
1041	nv_mthd(dev, 0xa097, 0x1c18, 0x00000000);
1042	nv_mthd(dev, 0xa097, 0x1c28, 0x00000000);
1043	nv_mthd(dev, 0xa097, 0x1c38, 0x00000000);
1044	nv_mthd(dev, 0xa097, 0x1c48, 0x00000000);
1045	nv_mthd(dev, 0xa097, 0x1c58, 0x00000000);
1046	nv_mthd(dev, 0xa097, 0x1c68, 0x00000000);
1047	nv_mthd(dev, 0xa097, 0x1c78, 0x00000000);
1048	nv_mthd(dev, 0xa097, 0x1c88, 0x00000000);
1049	nv_mthd(dev, 0xa097, 0x1c98, 0x00000000);
1050	nv_mthd(dev, 0xa097, 0x1ca8, 0x00000000);
1051	nv_mthd(dev, 0xa097, 0x1cb8, 0x00000000);
1052	nv_mthd(dev, 0xa097, 0x1cc8, 0x00000000);
1053	nv_mthd(dev, 0xa097, 0x1cd8, 0x00000000);
1054	nv_mthd(dev, 0xa097, 0x1ce8, 0x00000000);
1055	nv_mthd(dev, 0xa097, 0x1cf8, 0x00000000);
1056	nv_mthd(dev, 0xa097, 0x1c0c, 0x00000000);
1057	nv_mthd(dev, 0xa097, 0x1c1c, 0x00000000);
1058	nv_mthd(dev, 0xa097, 0x1c2c, 0x00000000);
1059	nv_mthd(dev, 0xa097, 0x1c3c, 0x00000000);
1060	nv_mthd(dev, 0xa097, 0x1c4c, 0x00000000);
1061	nv_mthd(dev, 0xa097, 0x1c5c, 0x00000000);
1062	nv_mthd(dev, 0xa097, 0x1c6c, 0x00000000);
1063	nv_mthd(dev, 0xa097, 0x1c7c, 0x00000000);
1064	nv_mthd(dev, 0xa097, 0x1c8c, 0x00000000);
1065	nv_mthd(dev, 0xa097, 0x1c9c, 0x00000000);
1066	nv_mthd(dev, 0xa097, 0x1cac, 0x00000000);
1067	nv_mthd(dev, 0xa097, 0x1cbc, 0x00000000);
1068	nv_mthd(dev, 0xa097, 0x1ccc, 0x00000000);
1069	nv_mthd(dev, 0xa097, 0x1cdc, 0x00000000);
1070	nv_mthd(dev, 0xa097, 0x1cec, 0x00000000);
1071	nv_mthd(dev, 0xa097, 0x1cfc, 0x00000000);
1072	nv_mthd(dev, 0xa097, 0x1d00, 0x00000000);
1073	nv_mthd(dev, 0xa097, 0x1d10, 0x00000000);
1074	nv_mthd(dev, 0xa097, 0x1d20, 0x00000000);
1075	nv_mthd(dev, 0xa097, 0x1d30, 0x00000000);
1076	nv_mthd(dev, 0xa097, 0x1d40, 0x00000000);
1077	nv_mthd(dev, 0xa097, 0x1d50, 0x00000000);
1078	nv_mthd(dev, 0xa097, 0x1d60, 0x00000000);
1079	nv_mthd(dev, 0xa097, 0x1d70, 0x00000000);
1080	nv_mthd(dev, 0xa097, 0x1d80, 0x00000000);
1081	nv_mthd(dev, 0xa097, 0x1d90, 0x00000000);
1082	nv_mthd(dev, 0xa097, 0x1da0, 0x00000000);
1083	nv_mthd(dev, 0xa097, 0x1db0, 0x00000000);
1084	nv_mthd(dev, 0xa097, 0x1dc0, 0x00000000);
1085	nv_mthd(dev, 0xa097, 0x1dd0, 0x00000000);
1086	nv_mthd(dev, 0xa097, 0x1de0, 0x00000000);
1087	nv_mthd(dev, 0xa097, 0x1df0, 0x00000000);
1088	nv_mthd(dev, 0xa097, 0x1d04, 0x00000000);
1089	nv_mthd(dev, 0xa097, 0x1d14, 0x00000000);
1090	nv_mthd(dev, 0xa097, 0x1d24, 0x00000000);
1091	nv_mthd(dev, 0xa097, 0x1d34, 0x00000000);
1092	nv_mthd(dev, 0xa097, 0x1d44, 0x00000000);
1093	nv_mthd(dev, 0xa097, 0x1d54, 0x00000000);
1094	nv_mthd(dev, 0xa097, 0x1d64, 0x00000000);
1095	nv_mthd(dev, 0xa097, 0x1d74, 0x00000000);
1096	nv_mthd(dev, 0xa097, 0x1d84, 0x00000000);
1097	nv_mthd(dev, 0xa097, 0x1d94, 0x00000000);
1098	nv_mthd(dev, 0xa097, 0x1da4, 0x00000000);
1099	nv_mthd(dev, 0xa097, 0x1db4, 0x00000000);
1100	nv_mthd(dev, 0xa097, 0x1dc4, 0x00000000);
1101	nv_mthd(dev, 0xa097, 0x1dd4, 0x00000000);
1102	nv_mthd(dev, 0xa097, 0x1de4, 0x00000000);
1103	nv_mthd(dev, 0xa097, 0x1df4, 0x00000000);
1104	nv_mthd(dev, 0xa097, 0x1d08, 0x00000000);
1105	nv_mthd(dev, 0xa097, 0x1d18, 0x00000000);
1106	nv_mthd(dev, 0xa097, 0x1d28, 0x00000000);
1107	nv_mthd(dev, 0xa097, 0x1d38, 0x00000000);
1108	nv_mthd(dev, 0xa097, 0x1d48, 0x00000000);
1109	nv_mthd(dev, 0xa097, 0x1d58, 0x00000000);
1110	nv_mthd(dev, 0xa097, 0x1d68, 0x00000000);
1111	nv_mthd(dev, 0xa097, 0x1d78, 0x00000000);
1112	nv_mthd(dev, 0xa097, 0x1d88, 0x00000000);
1113	nv_mthd(dev, 0xa097, 0x1d98, 0x00000000);
1114	nv_mthd(dev, 0xa097, 0x1da8, 0x00000000);
1115	nv_mthd(dev, 0xa097, 0x1db8, 0x00000000);
1116	nv_mthd(dev, 0xa097, 0x1dc8, 0x00000000);
1117	nv_mthd(dev, 0xa097, 0x1dd8, 0x00000000);
1118	nv_mthd(dev, 0xa097, 0x1de8, 0x00000000);
1119	nv_mthd(dev, 0xa097, 0x1df8, 0x00000000);
1120	nv_mthd(dev, 0xa097, 0x1d0c, 0x00000000);
1121	nv_mthd(dev, 0xa097, 0x1d1c, 0x00000000);
1122	nv_mthd(dev, 0xa097, 0x1d2c, 0x00000000);
1123	nv_mthd(dev, 0xa097, 0x1d3c, 0x00000000);
1124	nv_mthd(dev, 0xa097, 0x1d4c, 0x00000000);
1125	nv_mthd(dev, 0xa097, 0x1d5c, 0x00000000);
1126	nv_mthd(dev, 0xa097, 0x1d6c, 0x00000000);
1127	nv_mthd(dev, 0xa097, 0x1d7c, 0x00000000);
1128	nv_mthd(dev, 0xa097, 0x1d8c, 0x00000000);
1129	nv_mthd(dev, 0xa097, 0x1d9c, 0x00000000);
1130	nv_mthd(dev, 0xa097, 0x1dac, 0x00000000);
1131	nv_mthd(dev, 0xa097, 0x1dbc, 0x00000000);
1132	nv_mthd(dev, 0xa097, 0x1dcc, 0x00000000);
1133	nv_mthd(dev, 0xa097, 0x1ddc, 0x00000000);
1134	nv_mthd(dev, 0xa097, 0x1dec, 0x00000000);
1135	nv_mthd(dev, 0xa097, 0x1dfc, 0x00000000);
1136	nv_mthd(dev, 0xa097, 0x1f00, 0x00000000);
1137	nv_mthd(dev, 0xa097, 0x1f08, 0x00000000);
1138	nv_mthd(dev, 0xa097, 0x1f10, 0x00000000);
1139	nv_mthd(dev, 0xa097, 0x1f18, 0x00000000);
1140	nv_mthd(dev, 0xa097, 0x1f20, 0x00000000);
1141	nv_mthd(dev, 0xa097, 0x1f28, 0x00000000);
1142	nv_mthd(dev, 0xa097, 0x1f30, 0x00000000);
1143	nv_mthd(dev, 0xa097, 0x1f38, 0x00000000);
1144	nv_mthd(dev, 0xa097, 0x1f40, 0x00000000);
1145	nv_mthd(dev, 0xa097, 0x1f48, 0x00000000);
1146	nv_mthd(dev, 0xa097, 0x1f50, 0x00000000);
1147	nv_mthd(dev, 0xa097, 0x1f58, 0x00000000);
1148	nv_mthd(dev, 0xa097, 0x1f60, 0x00000000);
1149	nv_mthd(dev, 0xa097, 0x1f68, 0x00000000);
1150	nv_mthd(dev, 0xa097, 0x1f70, 0x00000000);
1151	nv_mthd(dev, 0xa097, 0x1f78, 0x00000000);
1152	nv_mthd(dev, 0xa097, 0x1f04, 0x00000000);
1153	nv_mthd(dev, 0xa097, 0x1f0c, 0x00000000);
1154	nv_mthd(dev, 0xa097, 0x1f14, 0x00000000);
1155	nv_mthd(dev, 0xa097, 0x1f1c, 0x00000000);
1156	nv_mthd(dev, 0xa097, 0x1f24, 0x00000000);
1157	nv_mthd(dev, 0xa097, 0x1f2c, 0x00000000);
1158	nv_mthd(dev, 0xa097, 0x1f34, 0x00000000);
1159	nv_mthd(dev, 0xa097, 0x1f3c, 0x00000000);
1160	nv_mthd(dev, 0xa097, 0x1f44, 0x00000000);
1161	nv_mthd(dev, 0xa097, 0x1f4c, 0x00000000);
1162	nv_mthd(dev, 0xa097, 0x1f54, 0x00000000);
1163	nv_mthd(dev, 0xa097, 0x1f5c, 0x00000000);
1164	nv_mthd(dev, 0xa097, 0x1f64, 0x00000000);
1165	nv_mthd(dev, 0xa097, 0x1f6c, 0x00000000);
1166	nv_mthd(dev, 0xa097, 0x1f74, 0x00000000);
1167	nv_mthd(dev, 0xa097, 0x1f7c, 0x00000000);
1168	nv_mthd(dev, 0xa097, 0x1f80, 0x00000000);
1169	nv_mthd(dev, 0xa097, 0x1f88, 0x00000000);
1170	nv_mthd(dev, 0xa097, 0x1f90, 0x00000000);
1171	nv_mthd(dev, 0xa097, 0x1f98, 0x00000000);
1172	nv_mthd(dev, 0xa097, 0x1fa0, 0x00000000);
1173	nv_mthd(dev, 0xa097, 0x1fa8, 0x00000000);
1174	nv_mthd(dev, 0xa097, 0x1fb0, 0x00000000);
1175	nv_mthd(dev, 0xa097, 0x1fb8, 0x00000000);
1176	nv_mthd(dev, 0xa097, 0x1fc0, 0x00000000);
1177	nv_mthd(dev, 0xa097, 0x1fc8, 0x00000000);
1178	nv_mthd(dev, 0xa097, 0x1fd0, 0x00000000);
1179	nv_mthd(dev, 0xa097, 0x1fd8, 0x00000000);
1180	nv_mthd(dev, 0xa097, 0x1fe0, 0x00000000);
1181	nv_mthd(dev, 0xa097, 0x1fe8, 0x00000000);
1182	nv_mthd(dev, 0xa097, 0x1ff0, 0x00000000);
1183	nv_mthd(dev, 0xa097, 0x1ff8, 0x00000000);
1184	nv_mthd(dev, 0xa097, 0x1f84, 0x00000000);
1185	nv_mthd(dev, 0xa097, 0x1f8c, 0x00000000);
1186	nv_mthd(dev, 0xa097, 0x1f94, 0x00000000);
1187	nv_mthd(dev, 0xa097, 0x1f9c, 0x00000000);
1188	nv_mthd(dev, 0xa097, 0x1fa4, 0x00000000);
1189	nv_mthd(dev, 0xa097, 0x1fac, 0x00000000);
1190	nv_mthd(dev, 0xa097, 0x1fb4, 0x00000000);
1191	nv_mthd(dev, 0xa097, 0x1fbc, 0x00000000);
1192	nv_mthd(dev, 0xa097, 0x1fc4, 0x00000000);
1193	nv_mthd(dev, 0xa097, 0x1fcc, 0x00000000);
1194	nv_mthd(dev, 0xa097, 0x1fd4, 0x00000000);
1195	nv_mthd(dev, 0xa097, 0x1fdc, 0x00000000);
1196	nv_mthd(dev, 0xa097, 0x1fe4, 0x00000000);
1197	nv_mthd(dev, 0xa097, 0x1fec, 0x00000000);
1198	nv_mthd(dev, 0xa097, 0x1ff4, 0x00000000);
1199	nv_mthd(dev, 0xa097, 0x1ffc, 0x00000000);
1200	nv_mthd(dev, 0xa097, 0x2000, 0x00000000);
1201	nv_mthd(dev, 0xa097, 0x2040, 0x00000011);
1202	nv_mthd(dev, 0xa097, 0x2080, 0x00000020);
1203	nv_mthd(dev, 0xa097, 0x20c0, 0x00000030);
1204	nv_mthd(dev, 0xa097, 0x2100, 0x00000040);
1205	nv_mthd(dev, 0xa097, 0x2140, 0x00000051);
1206	nv_mthd(dev, 0xa097, 0x200c, 0x00000001);
1207	nv_mthd(dev, 0xa097, 0x204c, 0x00000001);
1208	nv_mthd(dev, 0xa097, 0x208c, 0x00000001);
1209	nv_mthd(dev, 0xa097, 0x20cc, 0x00000001);
1210	nv_mthd(dev, 0xa097, 0x210c, 0x00000001);
1211	nv_mthd(dev, 0xa097, 0x214c, 0x00000001);
1212	nv_mthd(dev, 0xa097, 0x2010, 0x00000000);
1213	nv_mthd(dev, 0xa097, 0x2050, 0x00000000);
1214	nv_mthd(dev, 0xa097, 0x2090, 0x00000001);
1215	nv_mthd(dev, 0xa097, 0x20d0, 0x00000002);
1216	nv_mthd(dev, 0xa097, 0x2110, 0x00000003);
1217	nv_mthd(dev, 0xa097, 0x2150, 0x00000004);
1218	nv_mthd(dev, 0xa097, 0x0380, 0x00000000);
1219	nv_mthd(dev, 0xa097, 0x03a0, 0x00000000);
1220	nv_mthd(dev, 0xa097, 0x03c0, 0x00000000);
1221	nv_mthd(dev, 0xa097, 0x03e0, 0x00000000);
1222	nv_mthd(dev, 0xa097, 0x0384, 0x00000000);
1223	nv_mthd(dev, 0xa097, 0x03a4, 0x00000000);
1224	nv_mthd(dev, 0xa097, 0x03c4, 0x00000000);
1225	nv_mthd(dev, 0xa097, 0x03e4, 0x00000000);
1226	nv_mthd(dev, 0xa097, 0x0388, 0x00000000);
1227	nv_mthd(dev, 0xa097, 0x03a8, 0x00000000);
1228	nv_mthd(dev, 0xa097, 0x03c8, 0x00000000);
1229	nv_mthd(dev, 0xa097, 0x03e8, 0x00000000);
1230	nv_mthd(dev, 0xa097, 0x038c, 0x00000000);
1231	nv_mthd(dev, 0xa097, 0x03ac, 0x00000000);
1232	nv_mthd(dev, 0xa097, 0x03cc, 0x00000000);
1233	nv_mthd(dev, 0xa097, 0x03ec, 0x00000000);
1234	nv_mthd(dev, 0xa097, 0x0700, 0x00000000);
1235	nv_mthd(dev, 0xa097, 0x0710, 0x00000000);
1236	nv_mthd(dev, 0xa097, 0x0720, 0x00000000);
1237	nv_mthd(dev, 0xa097, 0x0730, 0x00000000);
1238	nv_mthd(dev, 0xa097, 0x0704, 0x00000000);
1239	nv_mthd(dev, 0xa097, 0x0714, 0x00000000);
1240	nv_mthd(dev, 0xa097, 0x0724, 0x00000000);
1241	nv_mthd(dev, 0xa097, 0x0734, 0x00000000);
1242	nv_mthd(dev, 0xa097, 0x0708, 0x00000000);
1243	nv_mthd(dev, 0xa097, 0x0718, 0x00000000);
1244	nv_mthd(dev, 0xa097, 0x0728, 0x00000000);
1245	nv_mthd(dev, 0xa097, 0x0738, 0x00000000);
1246	nv_mthd(dev, 0xa097, 0x2800, 0x00000000);
1247	nv_mthd(dev, 0xa097, 0x2804, 0x00000000);
1248	nv_mthd(dev, 0xa097, 0x2808, 0x00000000);
1249	nv_mthd(dev, 0xa097, 0x280c, 0x00000000);
1250	nv_mthd(dev, 0xa097, 0x2810, 0x00000000);
1251	nv_mthd(dev, 0xa097, 0x2814, 0x00000000);
1252	nv_mthd(dev, 0xa097, 0x2818, 0x00000000);
1253	nv_mthd(dev, 0xa097, 0x281c, 0x00000000);
1254	nv_mthd(dev, 0xa097, 0x2820, 0x00000000);
1255	nv_mthd(dev, 0xa097, 0x2824, 0x00000000);
1256	nv_mthd(dev, 0xa097, 0x2828, 0x00000000);
1257	nv_mthd(dev, 0xa097, 0x282c, 0x00000000);
1258	nv_mthd(dev, 0xa097, 0x2830, 0x00000000);
1259	nv_mthd(dev, 0xa097, 0x2834, 0x00000000);
1260	nv_mthd(dev, 0xa097, 0x2838, 0x00000000);
1261	nv_mthd(dev, 0xa097, 0x283c, 0x00000000);
1262	nv_mthd(dev, 0xa097, 0x2840, 0x00000000);
1263	nv_mthd(dev, 0xa097, 0x2844, 0x00000000);
1264	nv_mthd(dev, 0xa097, 0x2848, 0x00000000);
1265	nv_mthd(dev, 0xa097, 0x284c, 0x00000000);
1266	nv_mthd(dev, 0xa097, 0x2850, 0x00000000);
1267	nv_mthd(dev, 0xa097, 0x2854, 0x00000000);
1268	nv_mthd(dev, 0xa097, 0x2858, 0x00000000);
1269	nv_mthd(dev, 0xa097, 0x285c, 0x00000000);
1270	nv_mthd(dev, 0xa097, 0x2860, 0x00000000);
1271	nv_mthd(dev, 0xa097, 0x2864, 0x00000000);
1272	nv_mthd(dev, 0xa097, 0x2868, 0x00000000);
1273	nv_mthd(dev, 0xa097, 0x286c, 0x00000000);
1274	nv_mthd(dev, 0xa097, 0x2870, 0x00000000);
1275	nv_mthd(dev, 0xa097, 0x2874, 0x00000000);
1276	nv_mthd(dev, 0xa097, 0x2878, 0x00000000);
1277	nv_mthd(dev, 0xa097, 0x287c, 0x00000000);
1278	nv_mthd(dev, 0xa097, 0x2880, 0x00000000);
1279	nv_mthd(dev, 0xa097, 0x2884, 0x00000000);
1280	nv_mthd(dev, 0xa097, 0x2888, 0x00000000);
1281	nv_mthd(dev, 0xa097, 0x288c, 0x00000000);
1282	nv_mthd(dev, 0xa097, 0x2890, 0x00000000);
1283	nv_mthd(dev, 0xa097, 0x2894, 0x00000000);
1284	nv_mthd(dev, 0xa097, 0x2898, 0x00000000);
1285	nv_mthd(dev, 0xa097, 0x289c, 0x00000000);
1286	nv_mthd(dev, 0xa097, 0x28a0, 0x00000000);
1287	nv_mthd(dev, 0xa097, 0x28a4, 0x00000000);
1288	nv_mthd(dev, 0xa097, 0x28a8, 0x00000000);
1289	nv_mthd(dev, 0xa097, 0x28ac, 0x00000000);
1290	nv_mthd(dev, 0xa097, 0x28b0, 0x00000000);
1291	nv_mthd(dev, 0xa097, 0x28b4, 0x00000000);
1292	nv_mthd(dev, 0xa097, 0x28b8, 0x00000000);
1293	nv_mthd(dev, 0xa097, 0x28bc, 0x00000000);
1294	nv_mthd(dev, 0xa097, 0x28c0, 0x00000000);
1295	nv_mthd(dev, 0xa097, 0x28c4, 0x00000000);
1296	nv_mthd(dev, 0xa097, 0x28c8, 0x00000000);
1297	nv_mthd(dev, 0xa097, 0x28cc, 0x00000000);
1298	nv_mthd(dev, 0xa097, 0x28d0, 0x00000000);
1299	nv_mthd(dev, 0xa097, 0x28d4, 0x00000000);
1300	nv_mthd(dev, 0xa097, 0x28d8, 0x00000000);
1301	nv_mthd(dev, 0xa097, 0x28dc, 0x00000000);
1302	nv_mthd(dev, 0xa097, 0x28e0, 0x00000000);
1303	nv_mthd(dev, 0xa097, 0x28e4, 0x00000000);
1304	nv_mthd(dev, 0xa097, 0x28e8, 0x00000000);
1305	nv_mthd(dev, 0xa097, 0x28ec, 0x00000000);
1306	nv_mthd(dev, 0xa097, 0x28f0, 0x00000000);
1307	nv_mthd(dev, 0xa097, 0x28f4, 0x00000000);
1308	nv_mthd(dev, 0xa097, 0x28f8, 0x00000000);
1309	nv_mthd(dev, 0xa097, 0x28fc, 0x00000000);
1310	nv_mthd(dev, 0xa097, 0x2900, 0x00000000);
1311	nv_mthd(dev, 0xa097, 0x2904, 0x00000000);
1312	nv_mthd(dev, 0xa097, 0x2908, 0x00000000);
1313	nv_mthd(dev, 0xa097, 0x290c, 0x00000000);
1314	nv_mthd(dev, 0xa097, 0x2910, 0x00000000);
1315	nv_mthd(dev, 0xa097, 0x2914, 0x00000000);
1316	nv_mthd(dev, 0xa097, 0x2918, 0x00000000);
1317	nv_mthd(dev, 0xa097, 0x291c, 0x00000000);
1318	nv_mthd(dev, 0xa097, 0x2920, 0x00000000);
1319	nv_mthd(dev, 0xa097, 0x2924, 0x00000000);
1320	nv_mthd(dev, 0xa097, 0x2928, 0x00000000);
1321	nv_mthd(dev, 0xa097, 0x292c, 0x00000000);
1322	nv_mthd(dev, 0xa097, 0x2930, 0x00000000);
1323	nv_mthd(dev, 0xa097, 0x2934, 0x00000000);
1324	nv_mthd(dev, 0xa097, 0x2938, 0x00000000);
1325	nv_mthd(dev, 0xa097, 0x293c, 0x00000000);
1326	nv_mthd(dev, 0xa097, 0x2940, 0x00000000);
1327	nv_mthd(dev, 0xa097, 0x2944, 0x00000000);
1328	nv_mthd(dev, 0xa097, 0x2948, 0x00000000);
1329	nv_mthd(dev, 0xa097, 0x294c, 0x00000000);
1330	nv_mthd(dev, 0xa097, 0x2950, 0x00000000);
1331	nv_mthd(dev, 0xa097, 0x2954, 0x00000000);
1332	nv_mthd(dev, 0xa097, 0x2958, 0x00000000);
1333	nv_mthd(dev, 0xa097, 0x295c, 0x00000000);
1334	nv_mthd(dev, 0xa097, 0x2960, 0x00000000);
1335	nv_mthd(dev, 0xa097, 0x2964, 0x00000000);
1336	nv_mthd(dev, 0xa097, 0x2968, 0x00000000);
1337	nv_mthd(dev, 0xa097, 0x296c, 0x00000000);
1338	nv_mthd(dev, 0xa097, 0x2970, 0x00000000);
1339	nv_mthd(dev, 0xa097, 0x2974, 0x00000000);
1340	nv_mthd(dev, 0xa097, 0x2978, 0x00000000);
1341	nv_mthd(dev, 0xa097, 0x297c, 0x00000000);
1342	nv_mthd(dev, 0xa097, 0x2980, 0x00000000);
1343	nv_mthd(dev, 0xa097, 0x2984, 0x00000000);
1344	nv_mthd(dev, 0xa097, 0x2988, 0x00000000);
1345	nv_mthd(dev, 0xa097, 0x298c, 0x00000000);
1346	nv_mthd(dev, 0xa097, 0x2990, 0x00000000);
1347	nv_mthd(dev, 0xa097, 0x2994, 0x00000000);
1348	nv_mthd(dev, 0xa097, 0x2998, 0x00000000);
1349	nv_mthd(dev, 0xa097, 0x299c, 0x00000000);
1350	nv_mthd(dev, 0xa097, 0x29a0, 0x00000000);
1351	nv_mthd(dev, 0xa097, 0x29a4, 0x00000000);
1352	nv_mthd(dev, 0xa097, 0x29a8, 0x00000000);
1353	nv_mthd(dev, 0xa097, 0x29ac, 0x00000000);
1354	nv_mthd(dev, 0xa097, 0x29b0, 0x00000000);
1355	nv_mthd(dev, 0xa097, 0x29b4, 0x00000000);
1356	nv_mthd(dev, 0xa097, 0x29b8, 0x00000000);
1357	nv_mthd(dev, 0xa097, 0x29bc, 0x00000000);
1358	nv_mthd(dev, 0xa097, 0x29c0, 0x00000000);
1359	nv_mthd(dev, 0xa097, 0x29c4, 0x00000000);
1360	nv_mthd(dev, 0xa097, 0x29c8, 0x00000000);
1361	nv_mthd(dev, 0xa097, 0x29cc, 0x00000000);
1362	nv_mthd(dev, 0xa097, 0x29d0, 0x00000000);
1363	nv_mthd(dev, 0xa097, 0x29d4, 0x00000000);
1364	nv_mthd(dev, 0xa097, 0x29d8, 0x00000000);
1365	nv_mthd(dev, 0xa097, 0x29dc, 0x00000000);
1366	nv_mthd(dev, 0xa097, 0x29e0, 0x00000000);
1367	nv_mthd(dev, 0xa097, 0x29e4, 0x00000000);
1368	nv_mthd(dev, 0xa097, 0x29e8, 0x00000000);
1369	nv_mthd(dev, 0xa097, 0x29ec, 0x00000000);
1370	nv_mthd(dev, 0xa097, 0x29f0, 0x00000000);
1371	nv_mthd(dev, 0xa097, 0x29f4, 0x00000000);
1372	nv_mthd(dev, 0xa097, 0x29f8, 0x00000000);
1373	nv_mthd(dev, 0xa097, 0x29fc, 0x00000000);
1374	nv_mthd(dev, 0xa097, 0x0a00, 0x00000000);
1375	nv_mthd(dev, 0xa097, 0x0a20, 0x00000000);
1376	nv_mthd(dev, 0xa097, 0x0a40, 0x00000000);
1377	nv_mthd(dev, 0xa097, 0x0a60, 0x00000000);
1378	nv_mthd(dev, 0xa097, 0x0a80, 0x00000000);
1379	nv_mthd(dev, 0xa097, 0x0aa0, 0x00000000);
1380	nv_mthd(dev, 0xa097, 0x0ac0, 0x00000000);
1381	nv_mthd(dev, 0xa097, 0x0ae0, 0x00000000);
1382	nv_mthd(dev, 0xa097, 0x0b00, 0x00000000);
1383	nv_mthd(dev, 0xa097, 0x0b20, 0x00000000);
1384	nv_mthd(dev, 0xa097, 0x0b40, 0x00000000);
1385	nv_mthd(dev, 0xa097, 0x0b60, 0x00000000);
1386	nv_mthd(dev, 0xa097, 0x0b80, 0x00000000);
1387	nv_mthd(dev, 0xa097, 0x0ba0, 0x00000000);
1388	nv_mthd(dev, 0xa097, 0x0bc0, 0x00000000);
1389	nv_mthd(dev, 0xa097, 0x0be0, 0x00000000);
1390	nv_mthd(dev, 0xa097, 0x0a04, 0x00000000);
1391	nv_mthd(dev, 0xa097, 0x0a24, 0x00000000);
1392	nv_mthd(dev, 0xa097, 0x0a44, 0x00000000);
1393	nv_mthd(dev, 0xa097, 0x0a64, 0x00000000);
1394	nv_mthd(dev, 0xa097, 0x0a84, 0x00000000);
1395	nv_mthd(dev, 0xa097, 0x0aa4, 0x00000000);
1396	nv_mthd(dev, 0xa097, 0x0ac4, 0x00000000);
1397	nv_mthd(dev, 0xa097, 0x0ae4, 0x00000000);
1398	nv_mthd(dev, 0xa097, 0x0b04, 0x00000000);
1399	nv_mthd(dev, 0xa097, 0x0b24, 0x00000000);
1400	nv_mthd(dev, 0xa097, 0x0b44, 0x00000000);
1401	nv_mthd(dev, 0xa097, 0x0b64, 0x00000000);
1402	nv_mthd(dev, 0xa097, 0x0b84, 0x00000000);
1403	nv_mthd(dev, 0xa097, 0x0ba4, 0x00000000);
1404	nv_mthd(dev, 0xa097, 0x0bc4, 0x00000000);
1405	nv_mthd(dev, 0xa097, 0x0be4, 0x00000000);
1406	nv_mthd(dev, 0xa097, 0x0a08, 0x00000000);
1407	nv_mthd(dev, 0xa097, 0x0a28, 0x00000000);
1408	nv_mthd(dev, 0xa097, 0x0a48, 0x00000000);
1409	nv_mthd(dev, 0xa097, 0x0a68, 0x00000000);
1410	nv_mthd(dev, 0xa097, 0x0a88, 0x00000000);
1411	nv_mthd(dev, 0xa097, 0x0aa8, 0x00000000);
1412	nv_mthd(dev, 0xa097, 0x0ac8, 0x00000000);
1413	nv_mthd(dev, 0xa097, 0x0ae8, 0x00000000);
1414	nv_mthd(dev, 0xa097, 0x0b08, 0x00000000);
1415	nv_mthd(dev, 0xa097, 0x0b28, 0x00000000);
1416	nv_mthd(dev, 0xa097, 0x0b48, 0x00000000);
1417	nv_mthd(dev, 0xa097, 0x0b68, 0x00000000);
1418	nv_mthd(dev, 0xa097, 0x0b88, 0x00000000);
1419	nv_mthd(dev, 0xa097, 0x0ba8, 0x00000000);
1420	nv_mthd(dev, 0xa097, 0x0bc8, 0x00000000);
1421	nv_mthd(dev, 0xa097, 0x0be8, 0x00000000);
1422	nv_mthd(dev, 0xa097, 0x0a0c, 0x00000000);
1423	nv_mthd(dev, 0xa097, 0x0a2c, 0x00000000);
1424	nv_mthd(dev, 0xa097, 0x0a4c, 0x00000000);
1425	nv_mthd(dev, 0xa097, 0x0a6c, 0x00000000);
1426	nv_mthd(dev, 0xa097, 0x0a8c, 0x00000000);
1427	nv_mthd(dev, 0xa097, 0x0aac, 0x00000000);
1428	nv_mthd(dev, 0xa097, 0x0acc, 0x00000000);
1429	nv_mthd(dev, 0xa097, 0x0aec, 0x00000000);
1430	nv_mthd(dev, 0xa097, 0x0b0c, 0x00000000);
1431	nv_mthd(dev, 0xa097, 0x0b2c, 0x00000000);
1432	nv_mthd(dev, 0xa097, 0x0b4c, 0x00000000);
1433	nv_mthd(dev, 0xa097, 0x0b6c, 0x00000000);
1434	nv_mthd(dev, 0xa097, 0x0b8c, 0x00000000);
1435	nv_mthd(dev, 0xa097, 0x0bac, 0x00000000);
1436	nv_mthd(dev, 0xa097, 0x0bcc, 0x00000000);
1437	nv_mthd(dev, 0xa097, 0x0bec, 0x00000000);
1438	nv_mthd(dev, 0xa097, 0x0a10, 0x00000000);
1439	nv_mthd(dev, 0xa097, 0x0a30, 0x00000000);
1440	nv_mthd(dev, 0xa097, 0x0a50, 0x00000000);
1441	nv_mthd(dev, 0xa097, 0x0a70, 0x00000000);
1442	nv_mthd(dev, 0xa097, 0x0a90, 0x00000000);
1443	nv_mthd(dev, 0xa097, 0x0ab0, 0x00000000);
1444	nv_mthd(dev, 0xa097, 0x0ad0, 0x00000000);
1445	nv_mthd(dev, 0xa097, 0x0af0, 0x00000000);
1446	nv_mthd(dev, 0xa097, 0x0b10, 0x00000000);
1447	nv_mthd(dev, 0xa097, 0x0b30, 0x00000000);
1448	nv_mthd(dev, 0xa097, 0x0b50, 0x00000000);
1449	nv_mthd(dev, 0xa097, 0x0b70, 0x00000000);
1450	nv_mthd(dev, 0xa097, 0x0b90, 0x00000000);
1451	nv_mthd(dev, 0xa097, 0x0bb0, 0x00000000);
1452	nv_mthd(dev, 0xa097, 0x0bd0, 0x00000000);
1453	nv_mthd(dev, 0xa097, 0x0bf0, 0x00000000);
1454	nv_mthd(dev, 0xa097, 0x0a14, 0x00000000);
1455	nv_mthd(dev, 0xa097, 0x0a34, 0x00000000);
1456	nv_mthd(dev, 0xa097, 0x0a54, 0x00000000);
1457	nv_mthd(dev, 0xa097, 0x0a74, 0x00000000);
1458	nv_mthd(dev, 0xa097, 0x0a94, 0x00000000);
1459	nv_mthd(dev, 0xa097, 0x0ab4, 0x00000000);
1460	nv_mthd(dev, 0xa097, 0x0ad4, 0x00000000);
1461	nv_mthd(dev, 0xa097, 0x0af4, 0x00000000);
1462	nv_mthd(dev, 0xa097, 0x0b14, 0x00000000);
1463	nv_mthd(dev, 0xa097, 0x0b34, 0x00000000);
1464	nv_mthd(dev, 0xa097, 0x0b54, 0x00000000);
1465	nv_mthd(dev, 0xa097, 0x0b74, 0x00000000);
1466	nv_mthd(dev, 0xa097, 0x0b94, 0x00000000);
1467	nv_mthd(dev, 0xa097, 0x0bb4, 0x00000000);
1468	nv_mthd(dev, 0xa097, 0x0bd4, 0x00000000);
1469	nv_mthd(dev, 0xa097, 0x0bf4, 0x00000000);
1470	nv_mthd(dev, 0xa097, 0x0c00, 0x00000000);
1471	nv_mthd(dev, 0xa097, 0x0c10, 0x00000000);
1472	nv_mthd(dev, 0xa097, 0x0c20, 0x00000000);
1473	nv_mthd(dev, 0xa097, 0x0c30, 0x00000000);
1474	nv_mthd(dev, 0xa097, 0x0c40, 0x00000000);
1475	nv_mthd(dev, 0xa097, 0x0c50, 0x00000000);
1476	nv_mthd(dev, 0xa097, 0x0c60, 0x00000000);
1477	nv_mthd(dev, 0xa097, 0x0c70, 0x00000000);
1478	nv_mthd(dev, 0xa097, 0x0c80, 0x00000000);
1479	nv_mthd(dev, 0xa097, 0x0c90, 0x00000000);
1480	nv_mthd(dev, 0xa097, 0x0ca0, 0x00000000);
1481	nv_mthd(dev, 0xa097, 0x0cb0, 0x00000000);
1482	nv_mthd(dev, 0xa097, 0x0cc0, 0x00000000);
1483	nv_mthd(dev, 0xa097, 0x0cd0, 0x00000000);
1484	nv_mthd(dev, 0xa097, 0x0ce0, 0x00000000);
1485	nv_mthd(dev, 0xa097, 0x0cf0, 0x00000000);
1486	nv_mthd(dev, 0xa097, 0x0c04, 0x00000000);
1487	nv_mthd(dev, 0xa097, 0x0c14, 0x00000000);
1488	nv_mthd(dev, 0xa097, 0x0c24, 0x00000000);
1489	nv_mthd(dev, 0xa097, 0x0c34, 0x00000000);
1490	nv_mthd(dev, 0xa097, 0x0c44, 0x00000000);
1491	nv_mthd(dev, 0xa097, 0x0c54, 0x00000000);
1492	nv_mthd(dev, 0xa097, 0x0c64, 0x00000000);
1493	nv_mthd(dev, 0xa097, 0x0c74, 0x00000000);
1494	nv_mthd(dev, 0xa097, 0x0c84, 0x00000000);
1495	nv_mthd(dev, 0xa097, 0x0c94, 0x00000000);
1496	nv_mthd(dev, 0xa097, 0x0ca4, 0x00000000);
1497	nv_mthd(dev, 0xa097, 0x0cb4, 0x00000000);
1498	nv_mthd(dev, 0xa097, 0x0cc4, 0x00000000);
1499	nv_mthd(dev, 0xa097, 0x0cd4, 0x00000000);
1500	nv_mthd(dev, 0xa097, 0x0ce4, 0x00000000);
1501	nv_mthd(dev, 0xa097, 0x0cf4, 0x00000000);
1502	nv_mthd(dev, 0xa097, 0x0c08, 0x00000000);
1503	nv_mthd(dev, 0xa097, 0x0c18, 0x00000000);
1504	nv_mthd(dev, 0xa097, 0x0c28, 0x00000000);
1505	nv_mthd(dev, 0xa097, 0x0c38, 0x00000000);
1506	nv_mthd(dev, 0xa097, 0x0c48, 0x00000000);
1507	nv_mthd(dev, 0xa097, 0x0c58, 0x00000000);
1508	nv_mthd(dev, 0xa097, 0x0c68, 0x00000000);
1509	nv_mthd(dev, 0xa097, 0x0c78, 0x00000000);
1510	nv_mthd(dev, 0xa097, 0x0c88, 0x00000000);
1511	nv_mthd(dev, 0xa097, 0x0c98, 0x00000000);
1512	nv_mthd(dev, 0xa097, 0x0ca8, 0x00000000);
1513	nv_mthd(dev, 0xa097, 0x0cb8, 0x00000000);
1514	nv_mthd(dev, 0xa097, 0x0cc8, 0x00000000);
1515	nv_mthd(dev, 0xa097, 0x0cd8, 0x00000000);
1516	nv_mthd(dev, 0xa097, 0x0ce8, 0x00000000);
1517	nv_mthd(dev, 0xa097, 0x0cf8, 0x00000000);
1518	nv_mthd(dev, 0xa097, 0x0c0c, 0x3f800000);
1519	nv_mthd(dev, 0xa097, 0x0c1c, 0x3f800000);
1520	nv_mthd(dev, 0xa097, 0x0c2c, 0x3f800000);
1521	nv_mthd(dev, 0xa097, 0x0c3c, 0x3f800000);
1522	nv_mthd(dev, 0xa097, 0x0c4c, 0x3f800000);
1523	nv_mthd(dev, 0xa097, 0x0c5c, 0x3f800000);
1524	nv_mthd(dev, 0xa097, 0x0c6c, 0x3f800000);
1525	nv_mthd(dev, 0xa097, 0x0c7c, 0x3f800000);
1526	nv_mthd(dev, 0xa097, 0x0c8c, 0x3f800000);
1527	nv_mthd(dev, 0xa097, 0x0c9c, 0x3f800000);
1528	nv_mthd(dev, 0xa097, 0x0cac, 0x3f800000);
1529	nv_mthd(dev, 0xa097, 0x0cbc, 0x3f800000);
1530	nv_mthd(dev, 0xa097, 0x0ccc, 0x3f800000);
1531	nv_mthd(dev, 0xa097, 0x0cdc, 0x3f800000);
1532	nv_mthd(dev, 0xa097, 0x0cec, 0x3f800000);
1533	nv_mthd(dev, 0xa097, 0x0cfc, 0x3f800000);
1534	nv_mthd(dev, 0xa097, 0x0d00, 0xffff0000);
1535	nv_mthd(dev, 0xa097, 0x0d08, 0xffff0000);
1536	nv_mthd(dev, 0xa097, 0x0d10, 0xffff0000);
1537	nv_mthd(dev, 0xa097, 0x0d18, 0xffff0000);
1538	nv_mthd(dev, 0xa097, 0x0d20, 0xffff0000);
1539	nv_mthd(dev, 0xa097, 0x0d28, 0xffff0000);
1540	nv_mthd(dev, 0xa097, 0x0d30, 0xffff0000);
1541	nv_mthd(dev, 0xa097, 0x0d38, 0xffff0000);
1542	nv_mthd(dev, 0xa097, 0x0d04, 0xffff0000);
1543	nv_mthd(dev, 0xa097, 0x0d0c, 0xffff0000);
1544	nv_mthd(dev, 0xa097, 0x0d14, 0xffff0000);
1545	nv_mthd(dev, 0xa097, 0x0d1c, 0xffff0000);
1546	nv_mthd(dev, 0xa097, 0x0d24, 0xffff0000);
1547	nv_mthd(dev, 0xa097, 0x0d2c, 0xffff0000);
1548	nv_mthd(dev, 0xa097, 0x0d34, 0xffff0000);
1549	nv_mthd(dev, 0xa097, 0x0d3c, 0xffff0000);
1550	nv_mthd(dev, 0xa097, 0x0e00, 0x00000000);
1551	nv_mthd(dev, 0xa097, 0x0e10, 0x00000000);
1552	nv_mthd(dev, 0xa097, 0x0e20, 0x00000000);
1553	nv_mthd(dev, 0xa097, 0x0e30, 0x00000000);
1554	nv_mthd(dev, 0xa097, 0x0e40, 0x00000000);
1555	nv_mthd(dev, 0xa097, 0x0e50, 0x00000000);
1556	nv_mthd(dev, 0xa097, 0x0e60, 0x00000000);
1557	nv_mthd(dev, 0xa097, 0x0e70, 0x00000000);
1558	nv_mthd(dev, 0xa097, 0x0e80, 0x00000000);
1559	nv_mthd(dev, 0xa097, 0x0e90, 0x00000000);
1560	nv_mthd(dev, 0xa097, 0x0ea0, 0x00000000);
1561	nv_mthd(dev, 0xa097, 0x0eb0, 0x00000000);
1562	nv_mthd(dev, 0xa097, 0x0ec0, 0x00000000);
1563	nv_mthd(dev, 0xa097, 0x0ed0, 0x00000000);
1564	nv_mthd(dev, 0xa097, 0x0ee0, 0x00000000);
1565	nv_mthd(dev, 0xa097, 0x0ef0, 0x00000000);
1566	nv_mthd(dev, 0xa097, 0x0e04, 0xffff0000);
1567	nv_mthd(dev, 0xa097, 0x0e14, 0xffff0000);
1568	nv_mthd(dev, 0xa097, 0x0e24, 0xffff0000);
1569	nv_mthd(dev, 0xa097, 0x0e34, 0xffff0000);
1570	nv_mthd(dev, 0xa097, 0x0e44, 0xffff0000);
1571	nv_mthd(dev, 0xa097, 0x0e54, 0xffff0000);
1572	nv_mthd(dev, 0xa097, 0x0e64, 0xffff0000);
1573	nv_mthd(dev, 0xa097, 0x0e74, 0xffff0000);
1574	nv_mthd(dev, 0xa097, 0x0e84, 0xffff0000);
1575	nv_mthd(dev, 0xa097, 0x0e94, 0xffff0000);
1576	nv_mthd(dev, 0xa097, 0x0ea4, 0xffff0000);
1577	nv_mthd(dev, 0xa097, 0x0eb4, 0xffff0000);
1578	nv_mthd(dev, 0xa097, 0x0ec4, 0xffff0000);
1579	nv_mthd(dev, 0xa097, 0x0ed4, 0xffff0000);
1580	nv_mthd(dev, 0xa097, 0x0ee4, 0xffff0000);
1581	nv_mthd(dev, 0xa097, 0x0ef4, 0xffff0000);
1582	nv_mthd(dev, 0xa097, 0x0e08, 0xffff0000);
1583	nv_mthd(dev, 0xa097, 0x0e18, 0xffff0000);
1584	nv_mthd(dev, 0xa097, 0x0e28, 0xffff0000);
1585	nv_mthd(dev, 0xa097, 0x0e38, 0xffff0000);
1586	nv_mthd(dev, 0xa097, 0x0e48, 0xffff0000);
1587	nv_mthd(dev, 0xa097, 0x0e58, 0xffff0000);
1588	nv_mthd(dev, 0xa097, 0x0e68, 0xffff0000);
1589	nv_mthd(dev, 0xa097, 0x0e78, 0xffff0000);
1590	nv_mthd(dev, 0xa097, 0x0e88, 0xffff0000);
1591	nv_mthd(dev, 0xa097, 0x0e98, 0xffff0000);
1592	nv_mthd(dev, 0xa097, 0x0ea8, 0xffff0000);
1593	nv_mthd(dev, 0xa097, 0x0eb8, 0xffff0000);
1594	nv_mthd(dev, 0xa097, 0x0ec8, 0xffff0000);
1595	nv_mthd(dev, 0xa097, 0x0ed8, 0xffff0000);
1596	nv_mthd(dev, 0xa097, 0x0ee8, 0xffff0000);
1597	nv_mthd(dev, 0xa097, 0x0ef8, 0xffff0000);
1598	nv_mthd(dev, 0xa097, 0x0d40, 0x00000000);
1599	nv_mthd(dev, 0xa097, 0x0d48, 0x00000000);
1600	nv_mthd(dev, 0xa097, 0x0d50, 0x00000000);
1601	nv_mthd(dev, 0xa097, 0x0d58, 0x00000000);
1602	nv_mthd(dev, 0xa097, 0x0d44, 0x00000000);
1603	nv_mthd(dev, 0xa097, 0x0d4c, 0x00000000);
1604	nv_mthd(dev, 0xa097, 0x0d54, 0x00000000);
1605	nv_mthd(dev, 0xa097, 0x0d5c, 0x00000000);
1606	nv_mthd(dev, 0xa097, 0x1e00, 0x00000001);
1607	nv_mthd(dev, 0xa097, 0x1e20, 0x00000001);
1608	nv_mthd(dev, 0xa097, 0x1e40, 0x00000001);
1609	nv_mthd(dev, 0xa097, 0x1e60, 0x00000001);
1610	nv_mthd(dev, 0xa097, 0x1e80, 0x00000001);
1611	nv_mthd(dev, 0xa097, 0x1ea0, 0x00000001);
1612	nv_mthd(dev, 0xa097, 0x1ec0, 0x00000001);
1613	nv_mthd(dev, 0xa097, 0x1ee0, 0x00000001);
1614	nv_mthd(dev, 0xa097, 0x1e04, 0x00000001);
1615	nv_mthd(dev, 0xa097, 0x1e24, 0x00000001);
1616	nv_mthd(dev, 0xa097, 0x1e44, 0x00000001);
1617	nv_mthd(dev, 0xa097, 0x1e64, 0x00000001);
1618	nv_mthd(dev, 0xa097, 0x1e84, 0x00000001);
1619	nv_mthd(dev, 0xa097, 0x1ea4, 0x00000001);
1620	nv_mthd(dev, 0xa097, 0x1ec4, 0x00000001);
1621	nv_mthd(dev, 0xa097, 0x1ee4, 0x00000001);
1622	nv_mthd(dev, 0xa097, 0x1e08, 0x00000002);
1623	nv_mthd(dev, 0xa097, 0x1e28, 0x00000002);
1624	nv_mthd(dev, 0xa097, 0x1e48, 0x00000002);
1625	nv_mthd(dev, 0xa097, 0x1e68, 0x00000002);
1626	nv_mthd(dev, 0xa097, 0x1e88, 0x00000002);
1627	nv_mthd(dev, 0xa097, 0x1ea8, 0x00000002);
1628	nv_mthd(dev, 0xa097, 0x1ec8, 0x00000002);
1629	nv_mthd(dev, 0xa097, 0x1ee8, 0x00000002);
1630	nv_mthd(dev, 0xa097, 0x1e0c, 0x00000001);
1631	nv_mthd(dev, 0xa097, 0x1e2c, 0x00000001);
1632	nv_mthd(dev, 0xa097, 0x1e4c, 0x00000001);
1633	nv_mthd(dev, 0xa097, 0x1e6c, 0x00000001);
1634	nv_mthd(dev, 0xa097, 0x1e8c, 0x00000001);
1635	nv_mthd(dev, 0xa097, 0x1eac, 0x00000001);
1636	nv_mthd(dev, 0xa097, 0x1ecc, 0x00000001);
1637	nv_mthd(dev, 0xa097, 0x1eec, 0x00000001);
1638	nv_mthd(dev, 0xa097, 0x1e10, 0x00000001);
1639	nv_mthd(dev, 0xa097, 0x1e30, 0x00000001);
1640	nv_mthd(dev, 0xa097, 0x1e50, 0x00000001);
1641	nv_mthd(dev, 0xa097, 0x1e70, 0x00000001);
1642	nv_mthd(dev, 0xa097, 0x1e90, 0x00000001);
1643	nv_mthd(dev, 0xa097, 0x1eb0, 0x00000001);
1644	nv_mthd(dev, 0xa097, 0x1ed0, 0x00000001);
1645	nv_mthd(dev, 0xa097, 0x1ef0, 0x00000001);
1646	nv_mthd(dev, 0xa097, 0x1e14, 0x00000002);
1647	nv_mthd(dev, 0xa097, 0x1e34, 0x00000002);
1648	nv_mthd(dev, 0xa097, 0x1e54, 0x00000002);
1649	nv_mthd(dev, 0xa097, 0x1e74, 0x00000002);
1650	nv_mthd(dev, 0xa097, 0x1e94, 0x00000002);
1651	nv_mthd(dev, 0xa097, 0x1eb4, 0x00000002);
1652	nv_mthd(dev, 0xa097, 0x1ed4, 0x00000002);
1653	nv_mthd(dev, 0xa097, 0x1ef4, 0x00000002);
1654	nv_mthd(dev, 0xa097, 0x1e18, 0x00000001);
1655	nv_mthd(dev, 0xa097, 0x1e38, 0x00000001);
1656	nv_mthd(dev, 0xa097, 0x1e58, 0x00000001);
1657	nv_mthd(dev, 0xa097, 0x1e78, 0x00000001);
1658	nv_mthd(dev, 0xa097, 0x1e98, 0x00000001);
1659	nv_mthd(dev, 0xa097, 0x1eb8, 0x00000001);
1660	nv_mthd(dev, 0xa097, 0x1ed8, 0x00000001);
1661	nv_mthd(dev, 0xa097, 0x1ef8, 0x00000001);
1662	nv_mthd(dev, 0xa097, 0x3400, 0x00000000);
1663	nv_mthd(dev, 0xa097, 0x3404, 0x00000000);
1664	nv_mthd(dev, 0xa097, 0x3408, 0x00000000);
1665	nv_mthd(dev, 0xa097, 0x340c, 0x00000000);
1666	nv_mthd(dev, 0xa097, 0x3410, 0x00000000);
1667	nv_mthd(dev, 0xa097, 0x3414, 0x00000000);
1668	nv_mthd(dev, 0xa097, 0x3418, 0x00000000);
1669	nv_mthd(dev, 0xa097, 0x341c, 0x00000000);
1670	nv_mthd(dev, 0xa097, 0x3420, 0x00000000);
1671	nv_mthd(dev, 0xa097, 0x3424, 0x00000000);
1672	nv_mthd(dev, 0xa097, 0x3428, 0x00000000);
1673	nv_mthd(dev, 0xa097, 0x342c, 0x00000000);
1674	nv_mthd(dev, 0xa097, 0x3430, 0x00000000);
1675	nv_mthd(dev, 0xa097, 0x3434, 0x00000000);
1676	nv_mthd(dev, 0xa097, 0x3438, 0x00000000);
1677	nv_mthd(dev, 0xa097, 0x343c, 0x00000000);
1678	nv_mthd(dev, 0xa097, 0x3440, 0x00000000);
1679	nv_mthd(dev, 0xa097, 0x3444, 0x00000000);
1680	nv_mthd(dev, 0xa097, 0x3448, 0x00000000);
1681	nv_mthd(dev, 0xa097, 0x344c, 0x00000000);
1682	nv_mthd(dev, 0xa097, 0x3450, 0x00000000);
1683	nv_mthd(dev, 0xa097, 0x3454, 0x00000000);
1684	nv_mthd(dev, 0xa097, 0x3458, 0x00000000);
1685	nv_mthd(dev, 0xa097, 0x345c, 0x00000000);
1686	nv_mthd(dev, 0xa097, 0x3460, 0x00000000);
1687	nv_mthd(dev, 0xa097, 0x3464, 0x00000000);
1688	nv_mthd(dev, 0xa097, 0x3468, 0x00000000);
1689	nv_mthd(dev, 0xa097, 0x346c, 0x00000000);
1690	nv_mthd(dev, 0xa097, 0x3470, 0x00000000);
1691	nv_mthd(dev, 0xa097, 0x3474, 0x00000000);
1692	nv_mthd(dev, 0xa097, 0x3478, 0x00000000);
1693	nv_mthd(dev, 0xa097, 0x347c, 0x00000000);
1694	nv_mthd(dev, 0xa097, 0x3480, 0x00000000);
1695	nv_mthd(dev, 0xa097, 0x3484, 0x00000000);
1696	nv_mthd(dev, 0xa097, 0x3488, 0x00000000);
1697	nv_mthd(dev, 0xa097, 0x348c, 0x00000000);
1698	nv_mthd(dev, 0xa097, 0x3490, 0x00000000);
1699	nv_mthd(dev, 0xa097, 0x3494, 0x00000000);
1700	nv_mthd(dev, 0xa097, 0x3498, 0x00000000);
1701	nv_mthd(dev, 0xa097, 0x349c, 0x00000000);
1702	nv_mthd(dev, 0xa097, 0x34a0, 0x00000000);
1703	nv_mthd(dev, 0xa097, 0x34a4, 0x00000000);
1704	nv_mthd(dev, 0xa097, 0x34a8, 0x00000000);
1705	nv_mthd(dev, 0xa097, 0x34ac, 0x00000000);
1706	nv_mthd(dev, 0xa097, 0x34b0, 0x00000000);
1707	nv_mthd(dev, 0xa097, 0x34b4, 0x00000000);
1708	nv_mthd(dev, 0xa097, 0x34b8, 0x00000000);
1709	nv_mthd(dev, 0xa097, 0x34bc, 0x00000000);
1710	nv_mthd(dev, 0xa097, 0x34c0, 0x00000000);
1711	nv_mthd(dev, 0xa097, 0x34c4, 0x00000000);
1712	nv_mthd(dev, 0xa097, 0x34c8, 0x00000000);
1713	nv_mthd(dev, 0xa097, 0x34cc, 0x00000000);
1714	nv_mthd(dev, 0xa097, 0x34d0, 0x00000000);
1715	nv_mthd(dev, 0xa097, 0x34d4, 0x00000000);
1716	nv_mthd(dev, 0xa097, 0x34d8, 0x00000000);
1717	nv_mthd(dev, 0xa097, 0x34dc, 0x00000000);
1718	nv_mthd(dev, 0xa097, 0x34e0, 0x00000000);
1719	nv_mthd(dev, 0xa097, 0x34e4, 0x00000000);
1720	nv_mthd(dev, 0xa097, 0x34e8, 0x00000000);
1721	nv_mthd(dev, 0xa097, 0x34ec, 0x00000000);
1722	nv_mthd(dev, 0xa097, 0x34f0, 0x00000000);
1723	nv_mthd(dev, 0xa097, 0x34f4, 0x00000000);
1724	nv_mthd(dev, 0xa097, 0x34f8, 0x00000000);
1725	nv_mthd(dev, 0xa097, 0x34fc, 0x00000000);
1726	nv_mthd(dev, 0xa097, 0x3500, 0x00000000);
1727	nv_mthd(dev, 0xa097, 0x3504, 0x00000000);
1728	nv_mthd(dev, 0xa097, 0x3508, 0x00000000);
1729	nv_mthd(dev, 0xa097, 0x350c, 0x00000000);
1730	nv_mthd(dev, 0xa097, 0x3510, 0x00000000);
1731	nv_mthd(dev, 0xa097, 0x3514, 0x00000000);
1732	nv_mthd(dev, 0xa097, 0x3518, 0x00000000);
1733	nv_mthd(dev, 0xa097, 0x351c, 0x00000000);
1734	nv_mthd(dev, 0xa097, 0x3520, 0x00000000);
1735	nv_mthd(dev, 0xa097, 0x3524, 0x00000000);
1736	nv_mthd(dev, 0xa097, 0x3528, 0x00000000);
1737	nv_mthd(dev, 0xa097, 0x352c, 0x00000000);
1738	nv_mthd(dev, 0xa097, 0x3530, 0x00000000);
1739	nv_mthd(dev, 0xa097, 0x3534, 0x00000000);
1740	nv_mthd(dev, 0xa097, 0x3538, 0x00000000);
1741	nv_mthd(dev, 0xa097, 0x353c, 0x00000000);
1742	nv_mthd(dev, 0xa097, 0x3540, 0x00000000);
1743	nv_mthd(dev, 0xa097, 0x3544, 0x00000000);
1744	nv_mthd(dev, 0xa097, 0x3548, 0x00000000);
1745	nv_mthd(dev, 0xa097, 0x354c, 0x00000000);
1746	nv_mthd(dev, 0xa097, 0x3550, 0x00000000);
1747	nv_mthd(dev, 0xa097, 0x3554, 0x00000000);
1748	nv_mthd(dev, 0xa097, 0x3558, 0x00000000);
1749	nv_mthd(dev, 0xa097, 0x355c, 0x00000000);
1750	nv_mthd(dev, 0xa097, 0x3560, 0x00000000);
1751	nv_mthd(dev, 0xa097, 0x3564, 0x00000000);
1752	nv_mthd(dev, 0xa097, 0x3568, 0x00000000);
1753	nv_mthd(dev, 0xa097, 0x356c, 0x00000000);
1754	nv_mthd(dev, 0xa097, 0x3570, 0x00000000);
1755	nv_mthd(dev, 0xa097, 0x3574, 0x00000000);
1756	nv_mthd(dev, 0xa097, 0x3578, 0x00000000);
1757	nv_mthd(dev, 0xa097, 0x357c, 0x00000000);
1758	nv_mthd(dev, 0xa097, 0x3580, 0x00000000);
1759	nv_mthd(dev, 0xa097, 0x3584, 0x00000000);
1760	nv_mthd(dev, 0xa097, 0x3588, 0x00000000);
1761	nv_mthd(dev, 0xa097, 0x358c, 0x00000000);
1762	nv_mthd(dev, 0xa097, 0x3590, 0x00000000);
1763	nv_mthd(dev, 0xa097, 0x3594, 0x00000000);
1764	nv_mthd(dev, 0xa097, 0x3598, 0x00000000);
1765	nv_mthd(dev, 0xa097, 0x359c, 0x00000000);
1766	nv_mthd(dev, 0xa097, 0x35a0, 0x00000000);
1767	nv_mthd(dev, 0xa097, 0x35a4, 0x00000000);
1768	nv_mthd(dev, 0xa097, 0x35a8, 0x00000000);
1769	nv_mthd(dev, 0xa097, 0x35ac, 0x00000000);
1770	nv_mthd(dev, 0xa097, 0x35b0, 0x00000000);
1771	nv_mthd(dev, 0xa097, 0x35b4, 0x00000000);
1772	nv_mthd(dev, 0xa097, 0x35b8, 0x00000000);
1773	nv_mthd(dev, 0xa097, 0x35bc, 0x00000000);
1774	nv_mthd(dev, 0xa097, 0x35c0, 0x00000000);
1775	nv_mthd(dev, 0xa097, 0x35c4, 0x00000000);
1776	nv_mthd(dev, 0xa097, 0x35c8, 0x00000000);
1777	nv_mthd(dev, 0xa097, 0x35cc, 0x00000000);
1778	nv_mthd(dev, 0xa097, 0x35d0, 0x00000000);
1779	nv_mthd(dev, 0xa097, 0x35d4, 0x00000000);
1780	nv_mthd(dev, 0xa097, 0x35d8, 0x00000000);
1781	nv_mthd(dev, 0xa097, 0x35dc, 0x00000000);
1782	nv_mthd(dev, 0xa097, 0x35e0, 0x00000000);
1783	nv_mthd(dev, 0xa097, 0x35e4, 0x00000000);
1784	nv_mthd(dev, 0xa097, 0x35e8, 0x00000000);
1785	nv_mthd(dev, 0xa097, 0x35ec, 0x00000000);
1786	nv_mthd(dev, 0xa097, 0x35f0, 0x00000000);
1787	nv_mthd(dev, 0xa097, 0x35f4, 0x00000000);
1788	nv_mthd(dev, 0xa097, 0x35f8, 0x00000000);
1789	nv_mthd(dev, 0xa097, 0x35fc, 0x00000000);
1790	nv_mthd(dev, 0xa097, 0x030c, 0x00000001);
1791	nv_mthd(dev, 0xa097, 0x1944, 0x00000000);
1792	nv_mthd(dev, 0xa097, 0x1514, 0x00000000);
1793	nv_mthd(dev, 0xa097, 0x0d68, 0x0000ffff);
1794	nv_mthd(dev, 0xa097, 0x121c, 0x0fac6881);
1795	nv_mthd(dev, 0xa097, 0x0fac, 0x00000001);
1796	nv_mthd(dev, 0xa097, 0x1538, 0x00000001);
1797	nv_mthd(dev, 0xa097, 0x0fe0, 0x00000000);
1798	nv_mthd(dev, 0xa097, 0x0fe4, 0x00000000);
1799	nv_mthd(dev, 0xa097, 0x0fe8, 0x00000014);
1800	nv_mthd(dev, 0xa097, 0x0fec, 0x00000040);
1801	nv_mthd(dev, 0xa097, 0x0ff0, 0x00000000);
1802	nv_mthd(dev, 0xa097, 0x179c, 0x00000000);
1803	nv_mthd(dev, 0xa097, 0x1228, 0x00000400);
1804	nv_mthd(dev, 0xa097, 0x122c, 0x00000300);
1805	nv_mthd(dev, 0xa097, 0x1230, 0x00010001);
1806	nv_mthd(dev, 0xa097, 0x07f8, 0x00000000);
1807	nv_mthd(dev, 0xa097, 0x15b4, 0x00000001);
1808	nv_mthd(dev, 0xa097, 0x15cc, 0x00000000);
1809	nv_mthd(dev, 0xa097, 0x1534, 0x00000000);
1810	nv_mthd(dev, 0xa097, 0x0fb0, 0x00000000);
1811	nv_mthd(dev, 0xa097, 0x15d0, 0x00000000);
1812	nv_mthd(dev, 0xa097, 0x153c, 0x00000000);
1813	nv_mthd(dev, 0xa097, 0x16b4, 0x00000003);
1814	nv_mthd(dev, 0xa097, 0x0fbc, 0x0000ffff);
1815	nv_mthd(dev, 0xa097, 0x0fc0, 0x0000ffff);
1816	nv_mthd(dev, 0xa097, 0x0fc4, 0x0000ffff);
1817	nv_mthd(dev, 0xa097, 0x0fc8, 0x0000ffff);
1818	nv_mthd(dev, 0xa097, 0x0df8, 0x00000000);
1819	nv_mthd(dev, 0xa097, 0x0dfc, 0x00000000);
1820	nv_mthd(dev, 0xa097, 0x1948, 0x00000000);
1821	nv_mthd(dev, 0xa097, 0x1970, 0x00000001);
1822	nv_mthd(dev, 0xa097, 0x161c, 0x000009f0);
1823	nv_mthd(dev, 0xa097, 0x0dcc, 0x00000010);
1824	nv_mthd(dev, 0xa097, 0x163c, 0x00000000);
1825	nv_mthd(dev, 0xa097, 0x15e4, 0x00000000);
1826	nv_mthd(dev, 0xa097, 0x1160, 0x25e00040);
1827	nv_mthd(dev, 0xa097, 0x1164, 0x25e00040);
1828	nv_mthd(dev, 0xa097, 0x1168, 0x25e00040);
1829	nv_mthd(dev, 0xa097, 0x116c, 0x25e00040);
1830	nv_mthd(dev, 0xa097, 0x1170, 0x25e00040);
1831	nv_mthd(dev, 0xa097, 0x1174, 0x25e00040);
1832	nv_mthd(dev, 0xa097, 0x1178, 0x25e00040);
1833	nv_mthd(dev, 0xa097, 0x117c, 0x25e00040);
1834	nv_mthd(dev, 0xa097, 0x1180, 0x25e00040);
1835	nv_mthd(dev, 0xa097, 0x1184, 0x25e00040);
1836	nv_mthd(dev, 0xa097, 0x1188, 0x25e00040);
1837	nv_mthd(dev, 0xa097, 0x118c, 0x25e00040);
1838	nv_mthd(dev, 0xa097, 0x1190, 0x25e00040);
1839	nv_mthd(dev, 0xa097, 0x1194, 0x25e00040);
1840	nv_mthd(dev, 0xa097, 0x1198, 0x25e00040);
1841	nv_mthd(dev, 0xa097, 0x119c, 0x25e00040);
1842	nv_mthd(dev, 0xa097, 0x11a0, 0x25e00040);
1843	nv_mthd(dev, 0xa097, 0x11a4, 0x25e00040);
1844	nv_mthd(dev, 0xa097, 0x11a8, 0x25e00040);
1845	nv_mthd(dev, 0xa097, 0x11ac, 0x25e00040);
1846	nv_mthd(dev, 0xa097, 0x11b0, 0x25e00040);
1847	nv_mthd(dev, 0xa097, 0x11b4, 0x25e00040);
1848	nv_mthd(dev, 0xa097, 0x11b8, 0x25e00040);
1849	nv_mthd(dev, 0xa097, 0x11bc, 0x25e00040);
1850	nv_mthd(dev, 0xa097, 0x11c0, 0x25e00040);
1851	nv_mthd(dev, 0xa097, 0x11c4, 0x25e00040);
1852	nv_mthd(dev, 0xa097, 0x11c8, 0x25e00040);
1853	nv_mthd(dev, 0xa097, 0x11cc, 0x25e00040);
1854	nv_mthd(dev, 0xa097, 0x11d0, 0x25e00040);
1855	nv_mthd(dev, 0xa097, 0x11d4, 0x25e00040);
1856	nv_mthd(dev, 0xa097, 0x11d8, 0x25e00040);
1857	nv_mthd(dev, 0xa097, 0x11dc, 0x25e00040);
1858	nv_mthd(dev, 0xa097, 0x1880, 0x00000000);
1859	nv_mthd(dev, 0xa097, 0x1884, 0x00000000);
1860	nv_mthd(dev, 0xa097, 0x1888, 0x00000000);
1861	nv_mthd(dev, 0xa097, 0x188c, 0x00000000);
1862	nv_mthd(dev, 0xa097, 0x1890, 0x00000000);
1863	nv_mthd(dev, 0xa097, 0x1894, 0x00000000);
1864	nv_mthd(dev, 0xa097, 0x1898, 0x00000000);
1865	nv_mthd(dev, 0xa097, 0x189c, 0x00000000);
1866	nv_mthd(dev, 0xa097, 0x18a0, 0x00000000);
1867	nv_mthd(dev, 0xa097, 0x18a4, 0x00000000);
1868	nv_mthd(dev, 0xa097, 0x18a8, 0x00000000);
1869	nv_mthd(dev, 0xa097, 0x18ac, 0x00000000);
1870	nv_mthd(dev, 0xa097, 0x18b0, 0x00000000);
1871	nv_mthd(dev, 0xa097, 0x18b4, 0x00000000);
1872	nv_mthd(dev, 0xa097, 0x18b8, 0x00000000);
1873	nv_mthd(dev, 0xa097, 0x18bc, 0x00000000);
1874	nv_mthd(dev, 0xa097, 0x18c0, 0x00000000);
1875	nv_mthd(dev, 0xa097, 0x18c4, 0x00000000);
1876	nv_mthd(dev, 0xa097, 0x18c8, 0x00000000);
1877	nv_mthd(dev, 0xa097, 0x18cc, 0x00000000);
1878	nv_mthd(dev, 0xa097, 0x18d0, 0x00000000);
1879	nv_mthd(dev, 0xa097, 0x18d4, 0x00000000);
1880	nv_mthd(dev, 0xa097, 0x18d8, 0x00000000);
1881	nv_mthd(dev, 0xa097, 0x18dc, 0x00000000);
1882	nv_mthd(dev, 0xa097, 0x18e0, 0x00000000);
1883	nv_mthd(dev, 0xa097, 0x18e4, 0x00000000);
1884	nv_mthd(dev, 0xa097, 0x18e8, 0x00000000);
1885	nv_mthd(dev, 0xa097, 0x18ec, 0x00000000);
1886	nv_mthd(dev, 0xa097, 0x18f0, 0x00000000);
1887	nv_mthd(dev, 0xa097, 0x18f4, 0x00000000);
1888	nv_mthd(dev, 0xa097, 0x18f8, 0x00000000);
1889	nv_mthd(dev, 0xa097, 0x18fc, 0x00000000);
1890	nv_mthd(dev, 0xa097, 0x0f84, 0x00000000);
1891	nv_mthd(dev, 0xa097, 0x0f88, 0x00000000);
1892	nv_mthd(dev, 0xa097, 0x17c8, 0x00000000);
1893	nv_mthd(dev, 0xa097, 0x17cc, 0x00000000);
1894	nv_mthd(dev, 0xa097, 0x17d0, 0x000000ff);
1895	nv_mthd(dev, 0xa097, 0x17d4, 0xffffffff);
1896	nv_mthd(dev, 0xa097, 0x17d8, 0x00000002);
1897	nv_mthd(dev, 0xa097, 0x17dc, 0x00000000);
1898	nv_mthd(dev, 0xa097, 0x15f4, 0x00000000);
1899	nv_mthd(dev, 0xa097, 0x15f8, 0x00000000);
1900	nv_mthd(dev, 0xa097, 0x1434, 0x00000000);
1901	nv_mthd(dev, 0xa097, 0x1438, 0x00000000);
1902	nv_mthd(dev, 0xa097, 0x0d74, 0x00000000);
1903	nv_mthd(dev, 0xa097, 0x0dec, 0x00000001);
1904	nv_mthd(dev, 0xa097, 0x13a4, 0x00000000);
1905	nv_mthd(dev, 0xa097, 0x1318, 0x00000001);
1906	nv_mthd(dev, 0xa097, 0x1644, 0x00000000);
1907	nv_mthd(dev, 0xa097, 0x0748, 0x00000000);
1908	nv_mthd(dev, 0xa097, 0x0de8, 0x00000000);
1909	nv_mthd(dev, 0xa097, 0x1648, 0x00000000);
1910	nv_mthd(dev, 0xa097, 0x12a4, 0x00000000);
1911	nv_mthd(dev, 0xa097, 0x1120, 0x00000000);
1912	nv_mthd(dev, 0xa097, 0x1124, 0x00000000);
1913	nv_mthd(dev, 0xa097, 0x1128, 0x00000000);
1914	nv_mthd(dev, 0xa097, 0x112c, 0x00000000);
1915	nv_mthd(dev, 0xa097, 0x1118, 0x00000000);
1916	nv_mthd(dev, 0xa097, 0x164c, 0x00000000);
1917	nv_mthd(dev, 0xa097, 0x1658, 0x00000000);
1918	nv_mthd(dev, 0xa097, 0x1910, 0x00000290);
1919	nv_mthd(dev, 0xa097, 0x1518, 0x00000000);
1920	nv_mthd(dev, 0xa097, 0x165c, 0x00000001);
1921	nv_mthd(dev, 0xa097, 0x1520, 0x00000000);
1922	nv_mthd(dev, 0xa097, 0x1604, 0x00000000);
1923	nv_mthd(dev, 0xa097, 0x1570, 0x00000000);
1924	nv_mthd(dev, 0xa097, 0x13b0, 0x3f800000);
1925	nv_mthd(dev, 0xa097, 0x13b4, 0x3f800000);
1926	nv_mthd(dev, 0xa097, 0x020c, 0x00000000);
1927	nv_mthd(dev, 0xa097, 0x1670, 0x30201000);
1928	nv_mthd(dev, 0xa097, 0x1674, 0x70605040);
1929	nv_mthd(dev, 0xa097, 0x1678, 0xb8a89888);
1930	nv_mthd(dev, 0xa097, 0x167c, 0xf8e8d8c8);
1931	nv_mthd(dev, 0xa097, 0x166c, 0x00000000);
1932	nv_mthd(dev, 0xa097, 0x1680, 0x00ffff00);
1933	nv_mthd(dev, 0xa097, 0x12d0, 0x00000003);
1934	nv_mthd(dev, 0xa097, 0x12d4, 0x00000002);
1935	nv_mthd(dev, 0xa097, 0x1684, 0x00000000);
1936	nv_mthd(dev, 0xa097, 0x1688, 0x00000000);
1937	nv_mthd(dev, 0xa097, 0x0dac, 0x00001b02);
1938	nv_mthd(dev, 0xa097, 0x0db0, 0x00001b02);
1939	nv_mthd(dev, 0xa097, 0x0db4, 0x00000000);
1940	nv_mthd(dev, 0xa097, 0x168c, 0x00000000);
1941	nv_mthd(dev, 0xa097, 0x15bc, 0x00000000);
1942	nv_mthd(dev, 0xa097, 0x156c, 0x00000000);
1943	nv_mthd(dev, 0xa097, 0x187c, 0x00000000);
1944	nv_mthd(dev, 0xa097, 0x1110, 0x00000001);
1945	nv_mthd(dev, 0xa097, 0x0dc0, 0x00000000);
1946	nv_mthd(dev, 0xa097, 0x0dc4, 0x00000000);
1947	nv_mthd(dev, 0xa097, 0x0dc8, 0x00000000);
1948	nv_mthd(dev, 0xa097, 0x1234, 0x00000000);
1949	nv_mthd(dev, 0xa097, 0x1690, 0x00000000);
1950	nv_mthd(dev, 0xa097, 0x12ac, 0x00000001);
1951	nv_mthd(dev, 0xa097, 0x0790, 0x00000000);
1952	nv_mthd(dev, 0xa097, 0x0794, 0x00000000);
1953	nv_mthd(dev, 0xa097, 0x0798, 0x00000000);
1954	nv_mthd(dev, 0xa097, 0x079c, 0x00000000);
1955	nv_mthd(dev, 0xa097, 0x07a0, 0x00000000);
1956	nv_mthd(dev, 0xa097, 0x077c, 0x00000000);
1957	nv_mthd(dev, 0xa097, 0x1000, 0x00000010);
1958	nv_mthd(dev, 0xa097, 0x10fc, 0x00000000);
1959	nv_mthd(dev, 0xa097, 0x1290, 0x00000000);
1960	nv_mthd(dev, 0xa097, 0x0218, 0x00000010);
1961	nv_mthd(dev, 0xa097, 0x12d8, 0x00000000);
1962	nv_mthd(dev, 0xa097, 0x12dc, 0x00000010);
1963	nv_mthd(dev, 0xa097, 0x0d94, 0x00000001);
1964	nv_mthd(dev, 0xa097, 0x155c, 0x00000000);
1965	nv_mthd(dev, 0xa097, 0x1560, 0x00000000);
1966	nv_mthd(dev, 0xa097, 0x1564, 0x00000fff);
1967	nv_mthd(dev, 0xa097, 0x1574, 0x00000000);
1968	nv_mthd(dev, 0xa097, 0x1578, 0x00000000);
1969	nv_mthd(dev, 0xa097, 0x157c, 0x000fffff);
1970	nv_mthd(dev, 0xa097, 0x1354, 0x00000000);
1971	nv_mthd(dev, 0xa097, 0x1610, 0x00000012);
1972	nv_mthd(dev, 0xa097, 0x1608, 0x00000000);
1973	nv_mthd(dev, 0xa097, 0x160c, 0x00000000);
1974	nv_mthd(dev, 0xa097, 0x260c, 0x00000000);
1975	nv_mthd(dev, 0xa097, 0x07ac, 0x00000000);
1976	nv_mthd(dev, 0xa097, 0x162c, 0x00000003);
1977	nv_mthd(dev, 0xa097, 0x0210, 0x00000000);
1978	nv_mthd(dev, 0xa097, 0x0320, 0x00000000);
1979	nv_mthd(dev, 0xa097, 0x0324, 0x3f800000);
1980	nv_mthd(dev, 0xa097, 0x0328, 0x3f800000);
1981	nv_mthd(dev, 0xa097, 0x032c, 0x3f800000);
1982	nv_mthd(dev, 0xa097, 0x0330, 0x3f800000);
1983	nv_mthd(dev, 0xa097, 0x0334, 0x3f800000);
1984	nv_mthd(dev, 0xa097, 0x0338, 0x3f800000);
1985	nv_mthd(dev, 0xa097, 0x0750, 0x00000000);
1986	nv_mthd(dev, 0xa097, 0x0760, 0x39291909);
1987	nv_mthd(dev, 0xa097, 0x0764, 0x79695949);
1988	nv_mthd(dev, 0xa097, 0x0768, 0xb9a99989);
1989	nv_mthd(dev, 0xa097, 0x076c, 0xf9e9d9c9);
1990	nv_mthd(dev, 0xa097, 0x0770, 0x30201000);
1991	nv_mthd(dev, 0xa097, 0x0774, 0x70605040);
1992	nv_mthd(dev, 0xa097, 0x0778, 0x00009080);
1993	nv_mthd(dev, 0xa097, 0x0780, 0x39291909);
1994	nv_mthd(dev, 0xa097, 0x0784, 0x79695949);
1995	nv_mthd(dev, 0xa097, 0x0788, 0xb9a99989);
1996	nv_mthd(dev, 0xa097, 0x078c, 0xf9e9d9c9);
1997	nv_mthd(dev, 0xa097, 0x07d0, 0x30201000);
1998	nv_mthd(dev, 0xa097, 0x07d4, 0x70605040);
1999	nv_mthd(dev, 0xa097, 0x07d8, 0x00009080);
2000	nv_mthd(dev, 0xa097, 0x037c, 0x00000001);
2001	nv_mthd(dev, 0xa097, 0x0740, 0x00000000);
2002	nv_mthd(dev, 0xa097, 0x0744, 0x00000000);
2003	nv_mthd(dev, 0xa097, 0x2600, 0x00000000);
2004	nv_mthd(dev, 0xa097, 0x1918, 0x00000000);
2005	nv_mthd(dev, 0xa097, 0x191c, 0x00000900);
2006	nv_mthd(dev, 0xa097, 0x1920, 0x00000405);
2007	nv_mthd(dev, 0xa097, 0x1308, 0x00000001);
2008	nv_mthd(dev, 0xa097, 0x1924, 0x00000000);
2009	nv_mthd(dev, 0xa097, 0x13ac, 0x00000000);
2010	nv_mthd(dev, 0xa097, 0x192c, 0x00000001);
2011	nv_mthd(dev, 0xa097, 0x193c, 0x00002c1c);
2012	nv_mthd(dev, 0xa097, 0x0d7c, 0x00000000);
2013	nv_mthd(dev, 0xa097, 0x0f8c, 0x00000000);
2014	nv_mthd(dev, 0xa097, 0x02c0, 0x00000001);
2015	nv_mthd(dev, 0xa097, 0x1510, 0x00000000);
2016	nv_mthd(dev, 0xa097, 0x1940, 0x00000000);
2017	nv_mthd(dev, 0xa097, 0x0ff4, 0x00000000);
2018	nv_mthd(dev, 0xa097, 0x0ff8, 0x00000000);
2019	nv_mthd(dev, 0xa097, 0x194c, 0x00000000);
2020	nv_mthd(dev, 0xa097, 0x1950, 0x00000000);
2021	nv_mthd(dev, 0xa097, 0x1968, 0x00000000);
2022	nv_mthd(dev, 0xa097, 0x1590, 0x0000003f);
2023	nv_mthd(dev, 0xa097, 0x07e8, 0x00000000);
2024	nv_mthd(dev, 0xa097, 0x07ec, 0x00000000);
2025	nv_mthd(dev, 0xa097, 0x07f0, 0x00000000);
2026	nv_mthd(dev, 0xa097, 0x07f4, 0x00000000);
2027	nv_mthd(dev, 0xa097, 0x196c, 0x00000011);
2028	nv_mthd(dev, 0xa097, 0x02e4, 0x0000b001);
2029	nv_mthd(dev, 0xa097, 0x036c, 0x00000000);
2030	nv_mthd(dev, 0xa097, 0x0370, 0x00000000);
2031	nv_mthd(dev, 0xa097, 0x197c, 0x00000000);
2032	nv_mthd(dev, 0xa097, 0x0fcc, 0x00000000);
2033	nv_mthd(dev, 0xa097, 0x0fd0, 0x00000000);
2034	nv_mthd(dev, 0xa097, 0x02d8, 0x00000040);
2035	nv_mthd(dev, 0xa097, 0x1980, 0x00000080);
2036	nv_mthd(dev, 0xa097, 0x1504, 0x00000080);
2037	nv_mthd(dev, 0xa097, 0x1984, 0x00000000);
2038	nv_mthd(dev, 0xa097, 0x0300, 0x00000001);
2039	nv_mthd(dev, 0xa097, 0x13a8, 0x00000000);
2040	nv_mthd(dev, 0xa097, 0x12ec, 0x00000000);
2041	nv_mthd(dev, 0xa097, 0x1310, 0x00000000);
2042	nv_mthd(dev, 0xa097, 0x1314, 0x00000001);
2043	nv_mthd(dev, 0xa097, 0x1380, 0x00000000);
2044	nv_mthd(dev, 0xa097, 0x1384, 0x00000001);
2045	nv_mthd(dev, 0xa097, 0x1388, 0x00000001);
2046	nv_mthd(dev, 0xa097, 0x138c, 0x00000001);
2047	nv_mthd(dev, 0xa097, 0x1390, 0x00000001);
2048	nv_mthd(dev, 0xa097, 0x1394, 0x00000000);
2049	nv_mthd(dev, 0xa097, 0x139c, 0x00000000);
2050	nv_mthd(dev, 0xa097, 0x1398, 0x00000000);
2051	nv_mthd(dev, 0xa097, 0x1594, 0x00000000);
2052	nv_mthd(dev, 0xa097, 0x1598, 0x00000001);
2053	nv_mthd(dev, 0xa097, 0x159c, 0x00000001);
2054	nv_mthd(dev, 0xa097, 0x15a0, 0x00000001);
2055	nv_mthd(dev, 0xa097, 0x15a4, 0x00000001);
2056	nv_mthd(dev, 0xa097, 0x0f54, 0x00000000);
2057	nv_mthd(dev, 0xa097, 0x0f58, 0x00000000);
2058	nv_mthd(dev, 0xa097, 0x0f5c, 0x00000000);
2059	nv_mthd(dev, 0xa097, 0x19bc, 0x00000000);
2060	nv_mthd(dev, 0xa097, 0x0f9c, 0x00000000);
2061	nv_mthd(dev, 0xa097, 0x0fa0, 0x00000000);
2062	nv_mthd(dev, 0xa097, 0x12cc, 0x00000000);
2063	nv_mthd(dev, 0xa097, 0x12e8, 0x00000000);
2064	nv_mthd(dev, 0xa097, 0x130c, 0x00000001);
2065	nv_mthd(dev, 0xa097, 0x1360, 0x00000000);
2066	nv_mthd(dev, 0xa097, 0x1364, 0x00000000);
2067	nv_mthd(dev, 0xa097, 0x1368, 0x00000000);
2068	nv_mthd(dev, 0xa097, 0x136c, 0x00000000);
2069	nv_mthd(dev, 0xa097, 0x1370, 0x00000000);
2070	nv_mthd(dev, 0xa097, 0x1374, 0x00000000);
2071	nv_mthd(dev, 0xa097, 0x1378, 0x00000000);
2072	nv_mthd(dev, 0xa097, 0x137c, 0x00000000);
2073	nv_mthd(dev, 0xa097, 0x133c, 0x00000001);
2074	nv_mthd(dev, 0xa097, 0x1340, 0x00000001);
2075	nv_mthd(dev, 0xa097, 0x1344, 0x00000002);
2076	nv_mthd(dev, 0xa097, 0x1348, 0x00000001);
2077	nv_mthd(dev, 0xa097, 0x134c, 0x00000001);
2078	nv_mthd(dev, 0xa097, 0x1350, 0x00000002);
2079	nv_mthd(dev, 0xa097, 0x1358, 0x00000001);
2080	nv_mthd(dev, 0xa097, 0x12e4, 0x00000000);
2081	nv_mthd(dev, 0xa097, 0x131c, 0x00000000);
2082	nv_mthd(dev, 0xa097, 0x1320, 0x00000000);
2083	nv_mthd(dev, 0xa097, 0x1324, 0x00000000);
2084	nv_mthd(dev, 0xa097, 0x1328, 0x00000000);
2085	nv_mthd(dev, 0xa097, 0x19c0, 0x00000000);
2086	nv_mthd(dev, 0xa097, 0x1140, 0x00000000);
2087	nv_mthd(dev, 0xa097, 0x19c4, 0x00000000);
2088	nv_mthd(dev, 0xa097, 0x19c8, 0x00001500);
2089	nv_mthd(dev, 0xa097, 0x135c, 0x00000000);
2090	nv_mthd(dev, 0xa097, 0x0f90, 0x00000000);
2091	nv_mthd(dev, 0xa097, 0x19e0, 0x00000001);
2092	nv_mthd(dev, 0xa097, 0x19e4, 0x00000001);
2093	nv_mthd(dev, 0xa097, 0x19e8, 0x00000001);
2094	nv_mthd(dev, 0xa097, 0x19ec, 0x00000001);
2095	nv_mthd(dev, 0xa097, 0x19f0, 0x00000001);
2096	nv_mthd(dev, 0xa097, 0x19f4, 0x00000001);
2097	nv_mthd(dev, 0xa097, 0x19f8, 0x00000001);
2098	nv_mthd(dev, 0xa097, 0x19fc, 0x00000001);
2099	nv_mthd(dev, 0xa097, 0x19cc, 0x00000001);
2100	nv_mthd(dev, 0xa097, 0x15b8, 0x00000000);
2101	nv_mthd(dev, 0xa097, 0x1a00, 0x00001111);
2102	nv_mthd(dev, 0xa097, 0x1a04, 0x00000000);
2103	nv_mthd(dev, 0xa097, 0x1a08, 0x00000000);
2104	nv_mthd(dev, 0xa097, 0x1a0c, 0x00000000);
2105	nv_mthd(dev, 0xa097, 0x1a10, 0x00000000);
2106	nv_mthd(dev, 0xa097, 0x1a14, 0x00000000);
2107	nv_mthd(dev, 0xa097, 0x1a18, 0x00000000);
2108	nv_mthd(dev, 0xa097, 0x1a1c, 0x00000000);
2109	nv_mthd(dev, 0xa097, 0x0d6c, 0xffff0000);
2110	nv_mthd(dev, 0xa097, 0x0d70, 0xffff0000);
2111	nv_mthd(dev, 0xa097, 0x10f8, 0x00001010);
2112	nv_mthd(dev, 0xa097, 0x0d80, 0x00000000);
2113	nv_mthd(dev, 0xa097, 0x0d84, 0x00000000);
2114	nv_mthd(dev, 0xa097, 0x0d88, 0x00000000);
2115	nv_mthd(dev, 0xa097, 0x0d8c, 0x00000000);
2116	nv_mthd(dev, 0xa097, 0x0d90, 0x00000000);
2117	nv_mthd(dev, 0xa097, 0x0da0, 0x00000000);
2118	nv_mthd(dev, 0xa097, 0x07a4, 0x00000000);
2119	nv_mthd(dev, 0xa097, 0x07a8, 0x00000000);
2120	nv_mthd(dev, 0xa097, 0x1508, 0x80000000);
2121	nv_mthd(dev, 0xa097, 0x150c, 0x40000000);
2122	nv_mthd(dev, 0xa097, 0x1668, 0x00000000);
2123	nv_mthd(dev, 0xa097, 0x0318, 0x00000008);
2124	nv_mthd(dev, 0xa097, 0x031c, 0x00000008);
2125	nv_mthd(dev, 0xa097, 0x0d9c, 0x00000001);
2126	nv_mthd(dev, 0xa097, 0x0374, 0x00000000);
2127	nv_mthd(dev, 0xa097, 0x0378, 0x00000020);
2128	nv_mthd(dev, 0xa097, 0x07dc, 0x00000000);
2129	nv_mthd(dev, 0xa097, 0x074c, 0x00000055);
2130	nv_mthd(dev, 0xa097, 0x1420, 0x00000003);
2131	nv_mthd(dev, 0xa097, 0x17bc, 0x00000000);
2132	nv_mthd(dev, 0xa097, 0x17c0, 0x00000000);
2133	nv_mthd(dev, 0xa097, 0x17c4, 0x00000001);
2134	nv_mthd(dev, 0xa097, 0x1008, 0x00000008);
2135	nv_mthd(dev, 0xa097, 0x100c, 0x00000040);
2136	nv_mthd(dev, 0xa097, 0x1010, 0x0000012c);
2137	nv_mthd(dev, 0xa097, 0x0d60, 0x00000040);
2138	nv_mthd(dev, 0xa097, 0x075c, 0x00000003);
2139	nv_mthd(dev, 0xa097, 0x1018, 0x00000020);
2140	nv_mthd(dev, 0xa097, 0x101c, 0x00000001);
2141	nv_mthd(dev, 0xa097, 0x1020, 0x00000020);
2142	nv_mthd(dev, 0xa097, 0x1024, 0x00000001);
2143	nv_mthd(dev, 0xa097, 0x1444, 0x00000000);
2144	nv_mthd(dev, 0xa097, 0x1448, 0x00000000);
2145	nv_mthd(dev, 0xa097, 0x144c, 0x00000000);
2146	nv_mthd(dev, 0xa097, 0x0360, 0x20164010);
2147	nv_mthd(dev, 0xa097, 0x0364, 0x00000020);
2148	nv_mthd(dev, 0xa097, 0x0368, 0x00000000);
2149	nv_mthd(dev, 0xa097, 0x0de4, 0x00000000);
2150	nv_mthd(dev, 0xa097, 0x0204, 0x00000006);
2151	nv_mthd(dev, 0xa097, 0x0208, 0x00000000);
2152	nv_mthd(dev, 0xa097, 0x02cc, 0x003fffff);
2153	nv_mthd(dev, 0xa097, 0x02d0, 0x003fffff);
2154	nv_mthd(dev, 0xa097, 0x1220, 0x00000005);
2155	nv_mthd(dev, 0xa097, 0x0fdc, 0x00000000);
2156	nv_mthd(dev, 0xa097, 0x0f98, 0x00400008);
2157	nv_mthd(dev, 0xa097, 0x1284, 0x08000080);
2158	nv_mthd(dev, 0xa097, 0x1450, 0x00400008);
2159	nv_mthd(dev, 0xa097, 0x1454, 0x08000080);
2160	nv_mthd(dev, 0xa097, 0x0214, 0x00000000);
2161}
2162
2163static void
2164nve0_grctx_generate_902d(struct drm_device *dev)
2165{
2166	nv_mthd(dev, 0x902d, 0x0200, 0x000000cf);
2167	nv_mthd(dev, 0x902d, 0x0204, 0x00000001);
2168	nv_mthd(dev, 0x902d, 0x0208, 0x00000020);
2169	nv_mthd(dev, 0x902d, 0x020c, 0x00000001);
2170	nv_mthd(dev, 0x902d, 0x0210, 0x00000000);
2171	nv_mthd(dev, 0x902d, 0x0214, 0x00000080);
2172	nv_mthd(dev, 0x902d, 0x0218, 0x00000100);
2173	nv_mthd(dev, 0x902d, 0x021c, 0x00000100);
2174	nv_mthd(dev, 0x902d, 0x0220, 0x00000000);
2175	nv_mthd(dev, 0x902d, 0x0224, 0x00000000);
2176	nv_mthd(dev, 0x902d, 0x0230, 0x000000cf);
2177	nv_mthd(dev, 0x902d, 0x0234, 0x00000001);
2178	nv_mthd(dev, 0x902d, 0x0238, 0x00000020);
2179	nv_mthd(dev, 0x902d, 0x023c, 0x00000001);
2180	nv_mthd(dev, 0x902d, 0x0244, 0x00000080);
2181	nv_mthd(dev, 0x902d, 0x0248, 0x00000100);
2182	nv_mthd(dev, 0x902d, 0x024c, 0x00000100);
2183	nv_mthd(dev, 0x902d, 0x3410, 0x00000000);
2184}
2185
2186static void
2187nve0_graph_generate_unk40xx(struct drm_device *dev)
2188{
2189	nv_wr32(dev, 0x404010, 0x0);
2190	nv_wr32(dev, 0x404014, 0x0);
2191	nv_wr32(dev, 0x404018, 0x0);
2192	nv_wr32(dev, 0x40401c, 0x0);
2193	nv_wr32(dev, 0x404020, 0x0);
2194	nv_wr32(dev, 0x404024, 0xe000);
2195	nv_wr32(dev, 0x404028, 0x0);
2196	nv_wr32(dev, 0x4040a8, 0x0);
2197	nv_wr32(dev, 0x4040ac, 0x0);
2198	nv_wr32(dev, 0x4040b0, 0x0);
2199	nv_wr32(dev, 0x4040b4, 0x0);
2200	nv_wr32(dev, 0x4040b8, 0x0);
2201	nv_wr32(dev, 0x4040bc, 0x0);
2202	nv_wr32(dev, 0x4040c0, 0x0);
2203	nv_wr32(dev, 0x4040c4, 0x0);
2204	nv_wr32(dev, 0x4040c8, 0xf800008f);
2205	nv_wr32(dev, 0x4040d0, 0x0);
2206	nv_wr32(dev, 0x4040d4, 0x0);
2207	nv_wr32(dev, 0x4040d8, 0x0);
2208	nv_wr32(dev, 0x4040dc, 0x0);
2209	nv_wr32(dev, 0x4040e0, 0x0);
2210	nv_wr32(dev, 0x4040e4, 0x0);
2211	nv_wr32(dev, 0x4040e8, 0x1000);
2212	nv_wr32(dev, 0x4040f8, 0x0);
2213	nv_wr32(dev, 0x404130, 0x0);
2214	nv_wr32(dev, 0x404134, 0x0);
2215	nv_wr32(dev, 0x404138, 0x20000040);
2216	nv_wr32(dev, 0x404150, 0x2e);
2217	nv_wr32(dev, 0x404154, 0x400);
2218	nv_wr32(dev, 0x404158, 0x200);
2219	nv_wr32(dev, 0x404164, 0x55);
2220	nv_wr32(dev, 0x4041a0, 0x0);
2221	nv_wr32(dev, 0x4041a4, 0x0);
2222	nv_wr32(dev, 0x4041a8, 0x0);
2223	nv_wr32(dev, 0x4041ac, 0x0);
2224	nv_wr32(dev, 0x404200, 0x0);
2225	nv_wr32(dev, 0x404204, 0x0);
2226	nv_wr32(dev, 0x404208, 0x0);
2227	nv_wr32(dev, 0x40420c, 0x0);
2228}
2229
2230static void
2231nve0_graph_generate_unk44xx(struct drm_device *dev)
2232{
2233	nv_wr32(dev, 0x404404, 0x0);
2234	nv_wr32(dev, 0x404408, 0x0);
2235	nv_wr32(dev, 0x40440c, 0x0);
2236	nv_wr32(dev, 0x404410, 0x0);
2237	nv_wr32(dev, 0x404414, 0x0);
2238	nv_wr32(dev, 0x404418, 0x0);
2239	nv_wr32(dev, 0x40441c, 0x0);
2240	nv_wr32(dev, 0x404420, 0x0);
2241	nv_wr32(dev, 0x404424, 0x0);
2242	nv_wr32(dev, 0x404428, 0x0);
2243	nv_wr32(dev, 0x40442c, 0x0);
2244	nv_wr32(dev, 0x404430, 0x0);
2245	nv_wr32(dev, 0x404434, 0x0);
2246	nv_wr32(dev, 0x404438, 0x0);
2247	nv_wr32(dev, 0x404460, 0x0);
2248	nv_wr32(dev, 0x404464, 0x0);
2249	nv_wr32(dev, 0x404468, 0xffffff);
2250	nv_wr32(dev, 0x40446c, 0x0);
2251	nv_wr32(dev, 0x404480, 0x1);
2252	nv_wr32(dev, 0x404498, 0x1);
2253}
2254
2255static void
2256nve0_graph_generate_unk46xx(struct drm_device *dev)
2257{
2258	nv_wr32(dev, 0x404604, 0x14);
2259	nv_wr32(dev, 0x404608, 0x0);
2260	nv_wr32(dev, 0x40460c, 0x3fff);
2261	nv_wr32(dev, 0x404610, 0x100);
2262	nv_wr32(dev, 0x404618, 0x0);
2263	nv_wr32(dev, 0x40461c, 0x0);
2264	nv_wr32(dev, 0x404620, 0x0);
2265	nv_wr32(dev, 0x404624, 0x0);
2266	nv_wr32(dev, 0x40462c, 0x0);
2267	nv_wr32(dev, 0x404630, 0x0);
2268	nv_wr32(dev, 0x404640, 0x0);
2269	nv_wr32(dev, 0x404654, 0x0);
2270	nv_wr32(dev, 0x404660, 0x0);
2271	nv_wr32(dev, 0x404678, 0x0);
2272	nv_wr32(dev, 0x40467c, 0x2);
2273	nv_wr32(dev, 0x404680, 0x0);
2274	nv_wr32(dev, 0x404684, 0x0);
2275	nv_wr32(dev, 0x404688, 0x0);
2276	nv_wr32(dev, 0x40468c, 0x0);
2277	nv_wr32(dev, 0x404690, 0x0);
2278	nv_wr32(dev, 0x404694, 0x0);
2279	nv_wr32(dev, 0x404698, 0x0);
2280	nv_wr32(dev, 0x40469c, 0x0);
2281	nv_wr32(dev, 0x4046a0, 0x7f0080);
2282	nv_wr32(dev, 0x4046a4, 0x0);
2283	nv_wr32(dev, 0x4046a8, 0x0);
2284	nv_wr32(dev, 0x4046ac, 0x0);
2285	nv_wr32(dev, 0x4046b0, 0x0);
2286	nv_wr32(dev, 0x4046b4, 0x0);
2287	nv_wr32(dev, 0x4046b8, 0x0);
2288	nv_wr32(dev, 0x4046bc, 0x0);
2289	nv_wr32(dev, 0x4046c0, 0x0);
2290	nv_wr32(dev, 0x4046c8, 0x0);
2291	nv_wr32(dev, 0x4046cc, 0x0);
2292	nv_wr32(dev, 0x4046d0, 0x0);
2293}
2294
2295static void
2296nve0_graph_generate_unk47xx(struct drm_device *dev)
2297{
2298	nv_wr32(dev, 0x404700, 0x0);
2299	nv_wr32(dev, 0x404704, 0x0);
2300	nv_wr32(dev, 0x404708, 0x0);
2301	nv_wr32(dev, 0x404718, 0x0);
2302	nv_wr32(dev, 0x40471c, 0x0);
2303	nv_wr32(dev, 0x404720, 0x0);
2304	nv_wr32(dev, 0x404724, 0x0);
2305	nv_wr32(dev, 0x404728, 0x0);
2306	nv_wr32(dev, 0x40472c, 0x0);
2307	nv_wr32(dev, 0x404730, 0x0);
2308	nv_wr32(dev, 0x404734, 0x100);
2309	nv_wr32(dev, 0x404738, 0x0);
2310	nv_wr32(dev, 0x40473c, 0x0);
2311	nv_wr32(dev, 0x404744, 0x0);
2312	nv_wr32(dev, 0x404748, 0x0);
2313	nv_wr32(dev, 0x404754, 0x0);
2314}
2315
2316static void
2317nve0_graph_generate_unk58xx(struct drm_device *dev)
2318{
2319	nv_wr32(dev, 0x405800, 0xf8000bf);
2320	nv_wr32(dev, 0x405830, 0x2180648);
2321	nv_wr32(dev, 0x405834, 0x8000000);
2322	nv_wr32(dev, 0x405838, 0x0);
2323	nv_wr32(dev, 0x405854, 0x0);
2324	nv_wr32(dev, 0x405870, 0x1);
2325	nv_wr32(dev, 0x405874, 0x1);
2326	nv_wr32(dev, 0x405878, 0x1);
2327	nv_wr32(dev, 0x40587c, 0x1);
2328	nv_wr32(dev, 0x405a00, 0x0);
2329	nv_wr32(dev, 0x405a04, 0x0);
2330	nv_wr32(dev, 0x405a18, 0x0);
2331	nv_wr32(dev, 0x405b00, 0x0);
2332	nv_wr32(dev, 0x405b10, 0x1000);
2333}
2334
2335static void
2336nve0_graph_generate_unk60xx(struct drm_device *dev)
2337{
2338	nv_wr32(dev, 0x406020, 0x4103c1);
2339	nv_wr32(dev, 0x406028, 0x1);
2340	nv_wr32(dev, 0x40602c, 0x1);
2341	nv_wr32(dev, 0x406030, 0x1);
2342	nv_wr32(dev, 0x406034, 0x1);
2343}
2344
2345static void
2346nve0_graph_generate_unk64xx(struct drm_device *dev)
2347{
2348	nv_wr32(dev, 0x4064a8, 0x0);
2349	nv_wr32(dev, 0x4064ac, 0x3fff);
2350	nv_wr32(dev, 0x4064b4, 0x0);
2351	nv_wr32(dev, 0x4064b8, 0x0);
2352	nv_wr32(dev, 0x4064c0, 0x801a00f0);
2353	nv_wr32(dev, 0x4064c4, 0x192ffff);
2354	nv_wr32(dev, 0x4064c8, 0x1800600);
2355	nv_wr32(dev, 0x4064cc, 0x0);
2356	nv_wr32(dev, 0x4064d0, 0x0);
2357	nv_wr32(dev, 0x4064d4, 0x0);
2358	nv_wr32(dev, 0x4064d8, 0x0);
2359	nv_wr32(dev, 0x4064dc, 0x0);
2360	nv_wr32(dev, 0x4064e0, 0x0);
2361	nv_wr32(dev, 0x4064e4, 0x0);
2362	nv_wr32(dev, 0x4064e8, 0x0);
2363	nv_wr32(dev, 0x4064ec, 0x0);
2364	nv_wr32(dev, 0x4064fc, 0x22a);
2365}
2366
2367static void
2368nve0_graph_generate_unk70xx(struct drm_device *dev)
2369{
2370	nv_wr32(dev, 0x407040, 0x0);
2371}
2372
2373static void
2374nve0_graph_generate_unk78xx(struct drm_device *dev)
2375{
2376	nv_wr32(dev, 0x407804, 0x23);
2377	nv_wr32(dev, 0x40780c, 0xa418820);
2378	nv_wr32(dev, 0x407810, 0x62080e6);
2379	nv_wr32(dev, 0x407814, 0x20398a4);
2380	nv_wr32(dev, 0x407818, 0xe629062);
2381	nv_wr32(dev, 0x40781c, 0xa418820);
2382	nv_wr32(dev, 0x407820, 0xe6);
2383	nv_wr32(dev, 0x4078bc, 0x103);
2384}
2385
2386static void
2387nve0_graph_generate_unk80xx(struct drm_device *dev)
2388{
2389	nv_wr32(dev, 0x408000, 0x0);
2390	nv_wr32(dev, 0x408004, 0x0);
2391	nv_wr32(dev, 0x408008, 0x30);
2392	nv_wr32(dev, 0x40800c, 0x0);
2393	nv_wr32(dev, 0x408010, 0x0);
2394	nv_wr32(dev, 0x408014, 0x69);
2395	nv_wr32(dev, 0x408018, 0xe100e100);
2396	nv_wr32(dev, 0x408064, 0x0);
2397}
2398
2399static void
2400nve0_graph_generate_unk88xx(struct drm_device *dev)
2401{
2402	nv_wr32(dev, 0x408800, 0x2802a3c);
2403	nv_wr32(dev, 0x408804, 0x40);
2404	nv_wr32(dev, 0x408808, 0x1043e005);
2405	nv_wr32(dev, 0x408840, 0xb);
2406	nv_wr32(dev, 0x408900, 0x3080b801);
2407	nv_wr32(dev, 0x408904, 0x62000001);
2408	nv_wr32(dev, 0x408908, 0xc8102f);
2409	nv_wr32(dev, 0x408980, 0x11d);
2410}
2411
2412static void
2413nve0_graph_generate_gpc(struct drm_device *dev)
2414{
2415	nv_wr32(dev, 0x418380, 0x16);
2416	nv_wr32(dev, 0x418400, 0x38004e00);
2417	nv_wr32(dev, 0x418404, 0x71e0ffff);
2418	nv_wr32(dev, 0x41840c, 0x1008);
2419	nv_wr32(dev, 0x418410, 0xfff0fff);
2420	nv_wr32(dev, 0x418414, 0x2200fff);
2421	nv_wr32(dev, 0x418450, 0x0);
2422	nv_wr32(dev, 0x418454, 0x0);
2423	nv_wr32(dev, 0x418458, 0x0);
2424	nv_wr32(dev, 0x41845c, 0x0);
2425	nv_wr32(dev, 0x418460, 0x0);
2426	nv_wr32(dev, 0x418464, 0x0);
2427	nv_wr32(dev, 0x418468, 0x1);
2428	nv_wr32(dev, 0x41846c, 0x0);
2429	nv_wr32(dev, 0x418470, 0x0);
2430	nv_wr32(dev, 0x418600, 0x1f);
2431	nv_wr32(dev, 0x418684, 0xf);
2432	nv_wr32(dev, 0x418700, 0x2);
2433	nv_wr32(dev, 0x418704, 0x80);
2434	nv_wr32(dev, 0x418708, 0x0);
2435	nv_wr32(dev, 0x41870c, 0x0);
2436	nv_wr32(dev, 0x418710, 0x0);
2437	nv_wr32(dev, 0x418800, 0x7006860a);
2438	nv_wr32(dev, 0x418808, 0x0);
2439	nv_wr32(dev, 0x41880c, 0x0);
2440	nv_wr32(dev, 0x418810, 0x0);
2441	nv_wr32(dev, 0x418828, 0x44);
2442	nv_wr32(dev, 0x418830, 0x10000001);
2443	nv_wr32(dev, 0x4188d8, 0x8);
2444	nv_wr32(dev, 0x4188e0, 0x1000000);
2445	nv_wr32(dev, 0x4188e8, 0x0);
2446	nv_wr32(dev, 0x4188ec, 0x0);
2447	nv_wr32(dev, 0x4188f0, 0x0);
2448	nv_wr32(dev, 0x4188f4, 0x0);
2449	nv_wr32(dev, 0x4188f8, 0x0);
2450	nv_wr32(dev, 0x4188fc, 0x20100018);
2451	nv_wr32(dev, 0x41891c, 0xff00ff);
2452	nv_wr32(dev, 0x418924, 0x0);
2453	nv_wr32(dev, 0x418928, 0xffff00);
2454	nv_wr32(dev, 0x41892c, 0xff00);
2455	nv_wr32(dev, 0x418a00, 0x0);
2456	nv_wr32(dev, 0x418a04, 0x0);
2457	nv_wr32(dev, 0x418a08, 0x0);
2458	nv_wr32(dev, 0x418a0c, 0x10000);
2459	nv_wr32(dev, 0x418a10, 0x0);
2460	nv_wr32(dev, 0x418a14, 0x0);
2461	nv_wr32(dev, 0x418a18, 0x0);
2462	nv_wr32(dev, 0x418a20, 0x0);
2463	nv_wr32(dev, 0x418a24, 0x0);
2464	nv_wr32(dev, 0x418a28, 0x0);
2465	nv_wr32(dev, 0x418a2c, 0x10000);
2466	nv_wr32(dev, 0x418a30, 0x0);
2467	nv_wr32(dev, 0x418a34, 0x0);
2468	nv_wr32(dev, 0x418a38, 0x0);
2469	nv_wr32(dev, 0x418a40, 0x0);
2470	nv_wr32(dev, 0x418a44, 0x0);
2471	nv_wr32(dev, 0x418a48, 0x0);
2472	nv_wr32(dev, 0x418a4c, 0x10000);
2473	nv_wr32(dev, 0x418a50, 0x0);
2474	nv_wr32(dev, 0x418a54, 0x0);
2475	nv_wr32(dev, 0x418a58, 0x0);
2476	nv_wr32(dev, 0x418a60, 0x0);
2477	nv_wr32(dev, 0x418a64, 0x0);
2478	nv_wr32(dev, 0x418a68, 0x0);
2479	nv_wr32(dev, 0x418a6c, 0x10000);
2480	nv_wr32(dev, 0x418a70, 0x0);
2481	nv_wr32(dev, 0x418a74, 0x0);
2482	nv_wr32(dev, 0x418a78, 0x0);
2483	nv_wr32(dev, 0x418a80, 0x0);
2484	nv_wr32(dev, 0x418a84, 0x0);
2485	nv_wr32(dev, 0x418a88, 0x0);
2486	nv_wr32(dev, 0x418a8c, 0x10000);
2487	nv_wr32(dev, 0x418a90, 0x0);
2488	nv_wr32(dev, 0x418a94, 0x0);
2489	nv_wr32(dev, 0x418a98, 0x0);
2490	nv_wr32(dev, 0x418aa0, 0x0);
2491	nv_wr32(dev, 0x418aa4, 0x0);
2492	nv_wr32(dev, 0x418aa8, 0x0);
2493	nv_wr32(dev, 0x418aac, 0x10000);
2494	nv_wr32(dev, 0x418ab0, 0x0);
2495	nv_wr32(dev, 0x418ab4, 0x0);
2496	nv_wr32(dev, 0x418ab8, 0x0);
2497	nv_wr32(dev, 0x418ac0, 0x0);
2498	nv_wr32(dev, 0x418ac4, 0x0);
2499	nv_wr32(dev, 0x418ac8, 0x0);
2500	nv_wr32(dev, 0x418acc, 0x10000);
2501	nv_wr32(dev, 0x418ad0, 0x0);
2502	nv_wr32(dev, 0x418ad4, 0x0);
2503	nv_wr32(dev, 0x418ad8, 0x0);
2504	nv_wr32(dev, 0x418ae0, 0x0);
2505	nv_wr32(dev, 0x418ae4, 0x0);
2506	nv_wr32(dev, 0x418ae8, 0x0);
2507	nv_wr32(dev, 0x418aec, 0x10000);
2508	nv_wr32(dev, 0x418af0, 0x0);
2509	nv_wr32(dev, 0x418af4, 0x0);
2510	nv_wr32(dev, 0x418af8, 0x0);
2511	nv_wr32(dev, 0x418b00, 0x6);
2512	nv_wr32(dev, 0x418b08, 0xa418820);
2513	nv_wr32(dev, 0x418b0c, 0x62080e6);
2514	nv_wr32(dev, 0x418b10, 0x20398a4);
2515	nv_wr32(dev, 0x418b14, 0xe629062);
2516	nv_wr32(dev, 0x418b18, 0xa418820);
2517	nv_wr32(dev, 0x418b1c, 0xe6);
2518	nv_wr32(dev, 0x418bb8, 0x103);
2519	nv_wr32(dev, 0x418c08, 0x1);
2520	nv_wr32(dev, 0x418c10, 0x0);
2521	nv_wr32(dev, 0x418c14, 0x0);
2522	nv_wr32(dev, 0x418c18, 0x0);
2523	nv_wr32(dev, 0x418c1c, 0x0);
2524	nv_wr32(dev, 0x418c20, 0x0);
2525	nv_wr32(dev, 0x418c24, 0x0);
2526	nv_wr32(dev, 0x418c28, 0x0);
2527	nv_wr32(dev, 0x418c2c, 0x0);
2528	nv_wr32(dev, 0x418c40, 0xffffffff);
2529	nv_wr32(dev, 0x418c6c, 0x1);
2530	nv_wr32(dev, 0x418c80, 0x20200004);
2531	nv_wr32(dev, 0x418c8c, 0x1);
2532	nv_wr32(dev, 0x419000, 0x780);
2533	nv_wr32(dev, 0x419004, 0x0);
2534	nv_wr32(dev, 0x419008, 0x0);
2535	nv_wr32(dev, 0x419014, 0x4);
2536}
2537
2538static void
2539nve0_graph_generate_tpc(struct drm_device *dev)
2540{
2541	nv_wr32(dev, 0x419848, 0x0);
2542	nv_wr32(dev, 0x419864, 0x129);
2543	nv_wr32(dev, 0x419888, 0x0);
2544	nv_wr32(dev, 0x419a00, 0xf0);
2545	nv_wr32(dev, 0x419a04, 0x1);
2546	nv_wr32(dev, 0x419a08, 0x21);
2547	nv_wr32(dev, 0x419a0c, 0x20000);
2548	nv_wr32(dev, 0x419a10, 0x0);
2549	nv_wr32(dev, 0x419a14, 0x200);
2550	nv_wr32(dev, 0x419a1c, 0xc000);
2551	nv_wr32(dev, 0x419a20, 0x800);
2552	nv_wr32(dev, 0x419a30, 0x1);
2553	nv_wr32(dev, 0x419ac4, 0x37f440);
2554	nv_wr32(dev, 0x419c00, 0xa);
2555	nv_wr32(dev, 0x419c04, 0x80000006);
2556	nv_wr32(dev, 0x419c08, 0x2);
2557	nv_wr32(dev, 0x419c20, 0x0);
2558	nv_wr32(dev, 0x419c24, 0x84210);
2559	nv_wr32(dev, 0x419c28, 0x3efbefbe);
2560	nv_wr32(dev, 0x419ce8, 0x0);
2561	nv_wr32(dev, 0x419cf4, 0x3203);
2562	nv_wr32(dev, 0x419e04, 0x0);
2563	nv_wr32(dev, 0x419e08, 0x0);
2564	nv_wr32(dev, 0x419e0c, 0x0);
2565	nv_wr32(dev, 0x419e10, 0x402);
2566	nv_wr32(dev, 0x419e44, 0x13eff2);
2567	nv_wr32(dev, 0x419e48, 0x0);
2568	nv_wr32(dev, 0x419e4c, 0x7f);
2569	nv_wr32(dev, 0x419e50, 0x0);
2570	nv_wr32(dev, 0x419e54, 0x0);
2571	nv_wr32(dev, 0x419e58, 0x0);
2572	nv_wr32(dev, 0x419e5c, 0x0);
2573	nv_wr32(dev, 0x419e60, 0x0);
2574	nv_wr32(dev, 0x419e64, 0x0);
2575	nv_wr32(dev, 0x419e68, 0x0);
2576	nv_wr32(dev, 0x419e6c, 0x0);
2577	nv_wr32(dev, 0x419e70, 0x0);
2578	nv_wr32(dev, 0x419e74, 0x0);
2579	nv_wr32(dev, 0x419e78, 0x0);
2580	nv_wr32(dev, 0x419e7c, 0x0);
2581	nv_wr32(dev, 0x419e80, 0x0);
2582	nv_wr32(dev, 0x419e84, 0x0);
2583	nv_wr32(dev, 0x419e88, 0x0);
2584	nv_wr32(dev, 0x419e8c, 0x0);
2585	nv_wr32(dev, 0x419e90, 0x0);
2586	nv_wr32(dev, 0x419e94, 0x0);
2587	nv_wr32(dev, 0x419e98, 0x0);
2588	nv_wr32(dev, 0x419eac, 0x1fcf);
2589	nv_wr32(dev, 0x419eb0, 0xd3f);
2590	nv_wr32(dev, 0x419ec8, 0x1304f);
2591	nv_wr32(dev, 0x419f30, 0x0);
2592	nv_wr32(dev, 0x419f34, 0x0);
2593	nv_wr32(dev, 0x419f38, 0x0);
2594	nv_wr32(dev, 0x419f3c, 0x0);
2595	nv_wr32(dev, 0x419f40, 0x0);
2596	nv_wr32(dev, 0x419f44, 0x0);
2597	nv_wr32(dev, 0x419f48, 0x0);
2598	nv_wr32(dev, 0x419f4c, 0x0);
2599	nv_wr32(dev, 0x419f58, 0x0);
2600	nv_wr32(dev, 0x419f78, 0xb);
2601}
2602
2603static void
2604nve0_graph_generate_tpcunk(struct drm_device *dev)
2605{
2606	nv_wr32(dev, 0x41be24, 0x6);
2607	nv_wr32(dev, 0x41bec0, 0x12180000);
2608	nv_wr32(dev, 0x41bec4, 0x37f7f);
2609	nv_wr32(dev, 0x41bee4, 0x6480430);
2610	nv_wr32(dev, 0x41bf00, 0xa418820);
2611	nv_wr32(dev, 0x41bf04, 0x62080e6);
2612	nv_wr32(dev, 0x41bf08, 0x20398a4);
2613	nv_wr32(dev, 0x41bf0c, 0xe629062);
2614	nv_wr32(dev, 0x41bf10, 0xa418820);
2615	nv_wr32(dev, 0x41bf14, 0xe6);
2616	nv_wr32(dev, 0x41bfd0, 0x900103);
2617	nv_wr32(dev, 0x41bfe0, 0x400001);
2618	nv_wr32(dev, 0x41bfe4, 0x0);
2619}
2620
2621int
2622nve0_grctx_generate(struct nouveau_channel *chan)
2623{
2624	struct nve0_graph_priv *priv = nv_engine(chan->dev, NVOBJ_ENGINE_GR);
2625	struct nve0_graph_chan *grch = chan->engctx[NVOBJ_ENGINE_GR];
2626	struct drm_device *dev = chan->dev;
2627	u32 data[6] = {}, data2[2] = {}, tmp;
2628	u32 tpc_set = 0, tpc_mask = 0;
2629	u8 tpcnr[GPC_MAX], a, b;
2630	u8 shift, ntpcv;
2631	int i, gpc, tpc, id;
2632
2633	nv_mask(dev, 0x000260, 0x00000001, 0x00000000);
2634	nv_wr32(dev, 0x400204, 0x00000000);
2635	nv_wr32(dev, 0x400208, 0x00000000);
2636
2637	nve0_graph_generate_unk40xx(dev);
2638	nve0_graph_generate_unk44xx(dev);
2639	nve0_graph_generate_unk46xx(dev);
2640	nve0_graph_generate_unk47xx(dev);
2641	nve0_graph_generate_unk58xx(dev);
2642	nve0_graph_generate_unk60xx(dev);
2643	nve0_graph_generate_unk64xx(dev);
2644	nve0_graph_generate_unk70xx(dev);
2645	nve0_graph_generate_unk78xx(dev);
2646	nve0_graph_generate_unk80xx(dev);
2647	nve0_graph_generate_unk88xx(dev);
2648	nve0_graph_generate_gpc(dev);
2649	nve0_graph_generate_tpc(dev);
2650	nve0_graph_generate_tpcunk(dev);
2651
2652	nv_wr32(dev, 0x404154, 0x0);
2653
2654	for (i = 0; i < grch->mmio_nr * 8; i += 8) {
2655		u32 reg = nv_ro32(grch->mmio, i + 0);
2656		u32 val = nv_ro32(grch->mmio, i + 4);
2657		nv_wr32(dev, reg, val);
2658	}
2659
2660	nv_wr32(dev, 0x418c6c, 0x1);
2661	nv_wr32(dev, 0x41980c, 0x10);
2662	nv_wr32(dev, 0x41be08, 0x4);
2663	nv_wr32(dev, 0x4064c0, 0x801a00f0);
2664	nv_wr32(dev, 0x405800, 0xf8000bf);
2665	nv_wr32(dev, 0x419c00, 0xa);
2666
2667	for (tpc = 0, id = 0; tpc < 4; tpc++) {
2668		for (gpc = 0; gpc < priv->gpc_nr; gpc++) {
2669			if (tpc < priv->tpc_nr[gpc]) {
2670				nv_wr32(dev, TPC_UNIT(gpc, tpc, 0x0698), id);
2671				nv_wr32(dev, TPC_UNIT(gpc, tpc, 0x04e8), id);
2672				nv_wr32(dev, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id);
2673				nv_wr32(dev, TPC_UNIT(gpc, tpc, 0x0088), id++);
2674			}
2675
2676			nv_wr32(dev, GPC_UNIT(gpc, 0x0c08), priv->tpc_nr[gpc]);
2677			nv_wr32(dev, GPC_UNIT(gpc, 0x0c8c), priv->tpc_nr[gpc]);
2678		}
2679	}
2680
2681	tmp = 0;
2682	for (i = 0; i < priv->gpc_nr; i++)
2683		tmp |= priv->tpc_nr[i] << (i * 4);
2684	nv_wr32(dev, 0x406028, tmp);
2685	nv_wr32(dev, 0x405870, tmp);
2686
2687	nv_wr32(dev, 0x40602c, 0x0);
2688	nv_wr32(dev, 0x405874, 0x0);
2689	nv_wr32(dev, 0x406030, 0x0);
2690	nv_wr32(dev, 0x405878, 0x0);
2691	nv_wr32(dev, 0x406034, 0x0);
2692	nv_wr32(dev, 0x40587c, 0x0);
2693
2694	/* calculate first set of magics */
2695	memcpy(tpcnr, priv->tpc_nr, sizeof(priv->tpc_nr));
2696
2697	gpc = -1;
2698	for (tpc = 0; tpc < priv->tpc_total; tpc++) {
2699		do {
2700			gpc = (gpc + 1) % priv->gpc_nr;
2701		} while (!tpcnr[gpc]);
2702		tpcnr[gpc]--;
2703
2704		data[tpc / 6] |= gpc << ((tpc % 6) * 5);
2705	}
2706
2707	for (; tpc < 32; tpc++)
2708		data[tpc / 6] |= 7 << ((tpc % 6) * 5);
2709
2710	/* and the second... */
2711	shift = 0;
2712	ntpcv = priv->tpc_total;
2713	while (!(ntpcv & (1 << 4))) {
2714		ntpcv <<= 1;
2715		shift++;
2716	}
2717
2718	data2[0]  = ntpcv << 16;
2719	data2[0] |= shift << 21;
2720	data2[0] |= (((1 << (0 + 5)) % ntpcv) << 24);
2721	data2[0] |= priv->tpc_total << 8;
2722	data2[0] |= priv->magic_not_rop_nr;
2723	for (i = 1; i < 7; i++)
2724		data2[1] |= ((1 << (i + 5)) % ntpcv) << ((i - 1) * 5);
2725
2726	/* and write it all the various parts of PGRAPH */
2727	nv_wr32(dev, 0x418bb8, (priv->tpc_total << 8) | priv->magic_not_rop_nr);
2728	for (i = 0; i < 6; i++)
2729		nv_wr32(dev, 0x418b08 + (i * 4), data[i]);
2730
2731	nv_wr32(dev, 0x41bfd0, data2[0]);
2732	nv_wr32(dev, 0x41bfe4, data2[1]);
2733	for (i = 0; i < 6; i++)
2734		nv_wr32(dev, 0x41bf00 + (i * 4), data[i]);
2735
2736	nv_wr32(dev, 0x4078bc, (priv->tpc_total << 8) | priv->magic_not_rop_nr);
2737	for (i = 0; i < 6; i++)
2738		nv_wr32(dev, 0x40780c + (i * 4), data[i]);
2739
2740
2741	memcpy(tpcnr, priv->tpc_nr, sizeof(priv->tpc_nr));
2742	for (gpc = 0; gpc < priv->gpc_nr; gpc++)
2743		tpc_mask |= ((1 << priv->tpc_nr[gpc]) - 1) << (gpc * 8);
2744
2745	for (i = 0, gpc = -1, b = -1; i < 32; i++) {
2746		a = (i * (priv->tpc_total - 1)) / 32;
2747		if (a != b) {
2748			b = a;
2749			do {
2750				gpc = (gpc + 1) % priv->gpc_nr;
2751			} while (!tpcnr[gpc]);
2752			tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--;
2753
2754			tpc_set |= 1 << ((gpc * 8) + tpc);
2755		}
2756
2757		nv_wr32(dev, 0x406800 + (i * 0x20), tpc_set);
2758		nv_wr32(dev, 0x406c00 + (i * 0x20), tpc_set ^ tpc_mask);
2759	}
2760
2761	for (i = 0; i < 8; i++)
2762		nv_wr32(dev, 0x4064d0 + (i * 0x04), 0x00000000);
2763
2764	nv_wr32(dev, 0x405b00, 0x201);
2765	nv_wr32(dev, 0x408850, 0x2);
2766	nv_wr32(dev, 0x408958, 0x2);
2767	nv_wr32(dev, 0x419f78, 0xa);
2768
2769	nve0_grctx_generate_icmd(dev);
2770	nve0_grctx_generate_a097(dev);
2771	nve0_grctx_generate_902d(dev);
2772
2773	nv_mask(dev, 0x000260, 0x00000001, 0x00000001);
2774	nv_wr32(dev, 0x418800, 0x7026860a); //XXX
2775	nv_wr32(dev, 0x41be10, 0x00bb8bc7); //XXX
2776	return 0;
2777}