riva_tbl.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:29k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1.  /***************************************************************************
  2. |*                                                                           *|
  3. |*       Copyright 1993-1999 NVIDIA, Corporation.  All rights reserved.      *|
  4. |*                                                                           *|
  5. |*     NOTICE TO USER:   The source code  is copyrighted under  U.S. and     *|
  6. |*     international laws.  Users and possessors of this source code are     *|
  7. |*     hereby granted a nonexclusive,  royalty-free copyright license to     *|
  8. |*     use this code in individual and commercial software.                  *|
  9. |*                                                                           *|
  10. |*     Any use of this source code must include,  in the user documenta-     *|
  11. |*     tion and  internal comments to the code,  notices to the end user     *|
  12. |*     as follows:                                                           *|
  13. |*                                                                           *|
  14. |*       Copyright 1993-1999 NVIDIA, Corporation.  All rights reserved.      *|
  15. |*                                                                           *|
  16. |*     NVIDIA, CORPORATION MAKES NO REPRESENTATION ABOUT THE SUITABILITY     *|
  17. |*     OF  THIS SOURCE  CODE  FOR ANY PURPOSE.  IT IS  PROVIDED  "AS IS"     *|
  18. |*     WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.  NVIDIA, CORPOR-     *|
  19. |*     ATION DISCLAIMS ALL WARRANTIES  WITH REGARD  TO THIS SOURCE CODE,     *|
  20. |*     INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGE-     *|
  21. |*     MENT,  AND FITNESS  FOR A PARTICULAR PURPOSE.   IN NO EVENT SHALL     *|
  22. |*     NVIDIA, CORPORATION  BE LIABLE FOR ANY SPECIAL,  INDIRECT,  INCI-     *|
  23. |*     DENTAL, OR CONSEQUENTIAL DAMAGES,  OR ANY DAMAGES  WHATSOEVER RE-     *|
  24. |*     SULTING FROM LOSS OF USE,  DATA OR PROFITS,  WHETHER IN AN ACTION     *|
  25. |*     OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,  ARISING OUT OF     *|
  26. |*     OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE.     *|
  27. |*                                                                           *|
  28. |*     U.S. Government  End  Users.   This source code  is a "commercial     *|
  29. |*     item,"  as that  term is  defined at  48 C.F.R. 2.101 (OCT 1995),     *|
  30. |*     consisting  of "commercial  computer  software"  and  "commercial     *|
  31. |*     computer  software  documentation,"  as such  terms  are  used in     *|
  32. |*     48 C.F.R. 12.212 (SEPT 1995)  and is provided to the U.S. Govern-     *|
  33. |*     ment only as  a commercial end item.   Consistent with  48 C.F.R.     *|
  34. |*     12.212 and  48 C.F.R. 227.7202-1 through  227.7202-4 (JUNE 1995),     *|
  35. |*     all U.S. Government End Users  acquire the source code  with only     *|
  36. |*     those rights set forth herein.                                        *|
  37. |*                                                                           *|
  38.  ***************************************************************************/
  39. /*
  40.  * GPL licensing note -- nVidia is allowing a liberal interpretation of
  41.  * the documentation restriction above, to merely say that this nVidia's
  42.  * copyright and disclaimer should be included with all code derived
  43.  * from this source.  -- Jeff Garzik <jgarzik@mandrakesoft.com>, 01/Nov/99 
  44.  */
  45. /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/riva_tbl.h,v 1.5 2000/02/08 17:19:12 dawes Exp $ */
  46. /*
  47.  * RIVA Fixed Functionality Init Tables.
  48.  */
  49. static unsigned RivaTablePMC[][2] =
  50. {
  51.     {0x00000050, 0x00000000},
  52.     {0x00000080, 0xFFFF00FF},
  53.     {0x00000080, 0xFFFFFFFF}
  54. };
  55. static unsigned RivaTablePTIMER[][2] =
  56. {
  57.     {0x00000080, 0x00000008},
  58.     {0x00000084, 0x00000003},
  59.     {0x00000050, 0x00000000},
  60.     {0x00000040, 0xFFFFFFFF}
  61. };
  62. static unsigned RivaTableFIFO[][2] =
  63. {
  64.     {0x00000000, 0x80000000},
  65.     {0x00000800, 0x80000001},
  66.     {0x00001000, 0x80000002},
  67.     {0x00001800, 0x80000010},
  68.     {0x00002000, 0x80000011},
  69.     {0x00002800, 0x80000012},
  70.     {0x00003800, 0x80000013}
  71. };
  72. static unsigned nv3TablePFIFO[][2] =
  73. {
  74.     {0x00000140, 0x00000000},
  75.     {0x00000480, 0x00000000},
  76.     {0x00000490, 0x00000000},
  77.     {0x00000494, 0x00000000},
  78.     {0x00000481, 0x00000000},
  79.     {0x00000084, 0x00000000},
  80.     {0x00000086, 0x00002000},
  81.     {0x00000085, 0x00002200},
  82.     {0x00000484, 0x00000000},
  83.     {0x0000049C, 0x00000000},
  84.     {0x00000104, 0x00000000},
  85.     {0x00000108, 0x00000000},
  86.     {0x00000100, 0x00000000},
  87.     {0x000004A0, 0x00000000},
  88.     {0x000004A4, 0x00000000},
  89.     {0x000004A8, 0x00000000},
  90.     {0x000004AC, 0x00000000},
  91.     {0x000004B0, 0x00000000},
  92.     {0x000004B4, 0x00000000},
  93.     {0x000004B8, 0x00000000},
  94.     {0x000004BC, 0x00000000},
  95.     {0x00000050, 0x00000000},
  96.     {0x00000040, 0xFFFFFFFF},
  97.     {0x00000480, 0x00000001},
  98.     {0x00000490, 0x00000001},
  99.     {0x00000140, 0x00000001}
  100. };
  101. static unsigned nv3TablePGRAPH[][2] =
  102. {
  103.     {0x00000020, 0x1230001F},
  104.     {0x00000021, 0x10113000},
  105.     {0x00000022, 0x1131F101},
  106.     {0x00000023, 0x0100F531},
  107.     {0x00000060, 0x00000000},
  108.     {0x00000065, 0x00000000},
  109.     {0x00000068, 0x00000000},
  110.     {0x00000069, 0x00000000},
  111.     {0x0000006A, 0x00000000},
  112.     {0x0000006B, 0x00000000},
  113.     {0x0000006C, 0x00000000},
  114.     {0x0000006D, 0x00000000},
  115.     {0x0000006E, 0x00000000},
  116.     {0x0000006F, 0x00000000},
  117.     {0x000001A8, 0x00000000},
  118.     {0x00000440, 0xFFFFFFFF},
  119.     {0x00000480, 0x00000001},
  120.     {0x000001A0, 0x00000000},
  121.     {0x000001A2, 0x00000000},
  122.     {0x0000018A, 0xFFFFFFFF},
  123.     {0x00000190, 0x00000000},
  124.     {0x00000142, 0x00000000},
  125.     {0x00000154, 0x00000000},
  126.     {0x00000155, 0xFFFFFFFF},
  127.     {0x00000156, 0x00000000},
  128.     {0x00000157, 0xFFFFFFFF},
  129.     {0x00000064, 0x10010002},
  130.     {0x00000050, 0x00000000},
  131.     {0x00000051, 0x00000000},
  132.     {0x00000040, 0xFFFFFFFF},
  133.     {0x00000041, 0xFFFFFFFF},
  134.     {0x00000440, 0xFFFFFFFF},
  135.     {0x000001A9, 0x00000001}
  136. };
  137. static unsigned nv3TablePGRAPH_8BPP[][2] =
  138. {
  139.     {0x000001AA, 0x00001111}
  140. };
  141. static unsigned nv3TablePGRAPH_15BPP[][2] =
  142. {
  143.     {0x000001AA, 0x00002222}
  144. };
  145. static unsigned nv3TablePGRAPH_32BPP[][2] =
  146. {
  147.     {0x000001AA, 0x00003333}
  148. };
  149. static unsigned nv3TablePRAMIN[][2] =
  150. {
  151.     {0x00000500, 0x00010000},
  152.     {0x00000501, 0x007FFFFF},
  153.     {0x00000200, 0x80000000},
  154.     {0x00000201, 0x00C20341},
  155.     {0x00000204, 0x80000001},
  156.     {0x00000205, 0x00C50342},
  157.     {0x00000208, 0x80000002},
  158.     {0x00000209, 0x00C60343},
  159.     {0x0000020C, 0x80000003},
  160.     {0x0000020D, 0x00DC0348},
  161.     {0x00000210, 0x80000004},
  162.     {0x00000211, 0x00DC0349},
  163.     {0x00000214, 0x80000005},
  164.     {0x00000215, 0x00DC034A},
  165.     {0x00000218, 0x80000006},
  166.     {0x00000219, 0x00DC034B},
  167.     {0x00000240, 0x80000010},
  168.     {0x00000241, 0x00D10344},
  169.     {0x00000244, 0x80000011},
  170.     {0x00000245, 0x00D00345},
  171.     {0x00000248, 0x80000012},
  172.     {0x00000249, 0x00CC0346},
  173.     {0x0000024C, 0x80000013},
  174.     {0x0000024D, 0x00D70347},
  175.     {0x00000D05, 0x00000000},
  176.     {0x00000D06, 0x00000000},
  177.     {0x00000D07, 0x00000000},
  178.     {0x00000D09, 0x00000000},
  179.     {0x00000D0A, 0x00000000},
  180.     {0x00000D0B, 0x00000000},
  181.     {0x00000D0D, 0x00000000},
  182.     {0x00000D0E, 0x00000000},
  183.     {0x00000D0F, 0x00000000},
  184.     {0x00000D11, 0x00000000},
  185.     {0x00000D12, 0x00000000},
  186.     {0x00000D13, 0x00000000},
  187.     {0x00000D15, 0x00000000},
  188.     {0x00000D16, 0x00000000},
  189.     {0x00000D17, 0x00000000},
  190.     {0x00000D19, 0x00000000},
  191.     {0x00000D1A, 0x00000000},
  192.     {0x00000D1B, 0x00000000},
  193.     {0x00000D1D, 0x00000140},
  194.     {0x00000D1E, 0x00000000},
  195.     {0x00000D1F, 0x00000000},
  196.     {0x00000D20, 0x10100200},
  197.     {0x00000D21, 0x00000000},
  198.     {0x00000D22, 0x00000000},
  199.     {0x00000D23, 0x00000000},
  200.     {0x00000D24, 0x10210200},
  201.     {0x00000D25, 0x00000000},
  202.     {0x00000D26, 0x00000000},
  203.     {0x00000D27, 0x00000000},
  204.     {0x00000D28, 0x10420200},
  205.     {0x00000D29, 0x00000000},
  206.     {0x00000D2A, 0x00000000},
  207.     {0x00000D2B, 0x00000000},
  208.     {0x00000D2C, 0x10830200},
  209.     {0x00000D2D, 0x00000000},
  210.     {0x00000D2E, 0x00000000},
  211.     {0x00000D2F, 0x00000000} 
  212. };
  213. static unsigned nv3TablePRAMIN_8BPP[][2] =
  214. {
  215.     /*           0xXXXXX3XX For  MSB mono format */
  216.     /*           0xXXXXX2XX For  LSB mono format */
  217.     {0x00000D04, 0x10110203},
  218.     {0x00000D08, 0x10110203},
  219.     {0x00000D0C, 0x1011020B},
  220.     {0x00000D10, 0x10118203},
  221.     {0x00000D14, 0x10110203},
  222.     {0x00000D18, 0x10110203},
  223.     {0x00000D1C, 0x10419208}
  224. };
  225. static unsigned nv3TablePRAMIN_15BPP[][2] =
  226. {
  227.     /*           0xXXXXX2XX For  MSB mono format */
  228.     /*           0xXXXXX3XX For  LSB mono format */
  229.     {0x00000D04, 0x10110200},
  230.     {0x00000D08, 0x10110200},
  231.     {0x00000D0C, 0x10110208},
  232.     {0x00000D10, 0x10118200},
  233.     {0x00000D14, 0x10110200},
  234.     {0x00000D18, 0x10110200},
  235.     {0x00000D1C, 0x10419208}
  236. };
  237. static unsigned nv3TablePRAMIN_32BPP[][2] =
  238. {
  239.     /*           0xXXXXX3XX For  MSB mono format */
  240.     /*           0xXXXXX2XX For  LSB mono format */
  241.     {0x00000D04, 0x10110201},
  242.     {0x00000D08, 0x10110201},
  243.     {0x00000D0C, 0x10110209},
  244.     {0x00000D10, 0x10118201},
  245.     {0x00000D14, 0x10110201},
  246.     {0x00000D18, 0x10110201},
  247.     {0x00000D1C, 0x10419208}
  248. };
  249. static unsigned nv4TableFIFO[][2] =
  250. {
  251.     {0x00003800, 0x80000014}
  252. };
  253. static unsigned nv4TablePFIFO[][2] =
  254. {
  255.     {0x00000140, 0x00000000},
  256.     {0x00000480, 0x00000000},
  257.     {0x00000494, 0x00000000},
  258.     {0x00000481, 0x00000000},
  259.     {0x0000048B, 0x00000000},
  260.     {0x00000400, 0x00000000},
  261.     {0x00000414, 0x00000000},
  262.     {0x00000084, 0x03000100},  
  263.     {0x00000085, 0x00000110},
  264.     {0x00000086, 0x00000112},  
  265.     {0x00000143, 0x0000FFFF},
  266.     {0x00000496, 0x0000FFFF},
  267.     {0x00000050, 0x00000000},
  268.     {0x00000040, 0xFFFFFFFF},
  269.     {0x00000415, 0x00000001},
  270.     {0x00000480, 0x00000001},
  271.     {0x00000494, 0x00000001},
  272.     {0x00000495, 0x00000001},
  273.     {0x00000140, 0x00000001}
  274. };
  275. static unsigned nv4TablePGRAPH[][2] =
  276. {
  277.     {0x00000020, 0x1231C001},
  278.     {0x00000021, 0x72111101},
  279.     {0x00000022, 0x11D5F071},
  280.     {0x00000023, 0x10D4FF31},
  281.     {0x00000060, 0x00000000},
  282.     {0x00000068, 0x00000000},
  283.     {0x00000070, 0x00000000},
  284.     {0x00000078, 0x00000000},
  285.     {0x00000061, 0x00000000},
  286.     {0x00000069, 0x00000000},
  287.     {0x00000071, 0x00000000},
  288.     {0x00000079, 0x00000000},
  289.     {0x00000062, 0x00000000},
  290.     {0x0000006A, 0x00000000},
  291.     {0x00000072, 0x00000000},
  292.     {0x0000007A, 0x00000000},
  293.     {0x00000063, 0x00000000},
  294.     {0x0000006B, 0x00000000},
  295.     {0x00000073, 0x00000000},
  296.     {0x0000007B, 0x00000000},
  297.     {0x00000064, 0x00000000},
  298.     {0x0000006C, 0x00000000},
  299.     {0x00000074, 0x00000000},
  300.     {0x0000007C, 0x00000000},
  301.     {0x00000065, 0x00000000},
  302.     {0x0000006D, 0x00000000},
  303.     {0x00000075, 0x00000000},
  304.     {0x0000007D, 0x00000000},
  305.     {0x00000066, 0x00000000},
  306.     {0x0000006E, 0x00000000},
  307.     {0x00000076, 0x00000000},
  308.     {0x0000007E, 0x00000000},
  309.     {0x00000067, 0x00000000},
  310.     {0x0000006F, 0x00000000},
  311.     {0x00000077, 0x00000000},
  312.     {0x0000007F, 0x00000000},
  313.     {0x00000058, 0x00000000},
  314.     {0x00000059, 0x00000000},
  315.     {0x0000005A, 0x00000000},
  316.     {0x0000005B, 0x00000000},
  317.     {0x00000196, 0x00000000},
  318.     {0x000001A1, 0x01FFFFFF},
  319.     {0x00000197, 0x00000000},
  320.     {0x000001A2, 0x01FFFFFF},
  321.     {0x00000198, 0x00000000},
  322.     {0x000001A3, 0x01FFFFFF},
  323.     {0x00000199, 0x00000000},
  324.     {0x000001A4, 0x01FFFFFF},
  325.     {0x00000050, 0x00000000},
  326.     {0x00000040, 0xFFFFFFFF},
  327.     {0x0000005C, 0x10010100},
  328.     {0x000001C4, 0xFFFFFFFF},
  329.     {0x000001C8, 0x00000001},
  330.     {0x00000204, 0x00000000},
  331.     {0x000001C3, 0x00000001}
  332. };
  333. static unsigned nv4TablePGRAPH_8BPP[][2] =
  334. {
  335.     {0x000001C9, 0x00111111},
  336.     {0x00000186, 0x00001010},
  337.     {0x0000020C, 0x03020202}
  338. };
  339. static unsigned nv4TablePGRAPH_15BPP[][2] =
  340. {
  341.     {0x000001C9, 0x00226222},
  342.     {0x00000186, 0x00002071},
  343.     {0x0000020C, 0x09080808}
  344. };
  345. static unsigned nv4TablePGRAPH_16BPP[][2] =
  346. {
  347.     {0x000001C9, 0x00556555},
  348.     {0x00000186, 0x000050C2},
  349.     {0x0000020C, 0x0C0B0B0B}
  350. };
  351. static unsigned nv4TablePGRAPH_32BPP[][2] =
  352. {
  353.     {0x000001C9, 0x0077D777},
  354.     {0x00000186, 0x000070E5},
  355.     {0x0000020C, 0x0E0D0D0D}
  356. };
  357. static unsigned nv4TablePRAMIN[][2] =
  358. {
  359.     {0x00000000, 0x80000010},
  360.     {0x00000001, 0x80011145},
  361.     {0x00000002, 0x80000011},
  362.     {0x00000003, 0x80011146},
  363.     {0x00000004, 0x80000012},
  364.     {0x00000005, 0x80011147},
  365.     {0x00000006, 0x80000013},
  366.     {0x00000007, 0x80011148},
  367.     {0x00000008, 0x80000014},
  368.     {0x00000009, 0x80011149},
  369.     {0x0000000A, 0x80000015},
  370.     {0x0000000B, 0x8001114A},
  371.     {0x00000020, 0x80000000},
  372.     {0x00000021, 0x80011142},
  373.     {0x00000022, 0x80000001},
  374.     {0x00000023, 0x80011143},
  375.     {0x00000024, 0x80000002},
  376.     {0x00000025, 0x80011144}, 
  377.     {0x00000026, 0x80000003},
  378.     {0x00000027, 0x8001114B},
  379.     {0x00000028, 0x80000004},
  380.     {0x00000029, 0x8001114C},
  381.     {0x0000002A, 0x80000005},
  382.     {0x0000002B, 0x8001114D},
  383.     {0x0000002C, 0x80000006},
  384.     {0x0000002D, 0x8001114E},
  385.     {0x00000500, 0x00003000},
  386.     {0x00000501, 0x01FFFFFF},
  387.     {0x00000502, 0x00000002},
  388.     {0x00000503, 0x00000002},
  389.     {0x00000508, 0x01008043},
  390.     {0x0000050A, 0x00000000},
  391.     {0x0000050B, 0x00000000},
  392.     {0x0000050C, 0x01008019},
  393.     {0x0000050E, 0x00000000},
  394.     {0x0000050F, 0x00000000},
  395. #if 1
  396.     {0x00000510, 0x01008018},
  397. #else
  398.     {0x00000510, 0x01008044},
  399. #endif
  400.     {0x00000512, 0x00000000},
  401.     {0x00000513, 0x00000000},
  402.     {0x00000514, 0x01008021},
  403.     {0x00000516, 0x00000000},
  404.     {0x00000517, 0x00000000},
  405.     {0x00000518, 0x0100805F},
  406.     {0x0000051A, 0x00000000},
  407.     {0x0000051B, 0x00000000},
  408. #if 1
  409.     {0x0000051C, 0x0100804B},
  410. #else
  411.     {0x0000051C, 0x0100804A},
  412. #endif
  413.     {0x0000051E, 0x00000000},
  414.     {0x0000051F, 0x00000000},
  415.     {0x00000520, 0x0100A048},
  416.     {0x00000521, 0x00000D01},
  417.     {0x00000522, 0x11401140},
  418.     {0x00000523, 0x00000000},
  419.     {0x00000524, 0x0300A054},
  420.     {0x00000525, 0x00000D01},
  421.     {0x00000526, 0x11401140},
  422.     {0x00000527, 0x00000000},
  423.     {0x00000528, 0x0300A055},
  424.     {0x00000529, 0x00000D01},
  425.     {0x0000052A, 0x11401140},
  426.     {0x0000052B, 0x00000000},
  427.     {0x0000052C, 0x00000058},
  428.     {0x0000052E, 0x11401140},
  429.     {0x0000052F, 0x00000000},
  430.     {0x00000530, 0x00000059},
  431.     {0x00000532, 0x11401140},
  432.     {0x00000533, 0x00000000},
  433.     {0x00000534, 0x0000005A},
  434.     {0x00000536, 0x11401140},
  435.     {0x00000537, 0x00000000},
  436.     {0x00000538, 0x0000005B},
  437.     {0x0000053A, 0x11401140},
  438.     {0x0000053B, 0x00000000} 
  439. };
  440. static unsigned nv4TablePRAMIN_8BPP[][2] =
  441. {
  442.     /*           0xXXXXXX01 For  MSB mono format */
  443.     /*           0xXXXXXX02 For  LSB mono format */
  444.     {0x00000509, 0x00000302},
  445.     {0x0000050D, 0x00000302},
  446.     {0x00000511, 0x00000202},
  447.     {0x00000515, 0x00000302},
  448.     {0x00000519, 0x00000302},
  449.     {0x0000051D, 0x00000302},
  450.     {0x0000052D, 0x00000302},
  451.     {0x0000052E, 0x00000302},
  452.     {0x00000535, 0x00000000},
  453.     {0x00000539, 0x00000000} 
  454. };
  455. static unsigned nv4TablePRAMIN_15BPP[][2] =
  456. {
  457.     /*           0xXXXXXX01 For  MSB mono format */
  458.     /*           0xXXXXXX02 For  LSB mono format */
  459.     {0x00000509, 0x00000902},
  460.     {0x0000050D, 0x00000902},
  461.     {0x00000511, 0x00000802},
  462.     {0x00000515, 0x00000902},
  463.     {0x00000519, 0x00000902},
  464.     {0x0000051D, 0x00000902},
  465.     {0x0000052D, 0x00000902},
  466.     {0x0000052E, 0x00000902},
  467.     {0x00000535, 0x00000702},
  468.     {0x00000539, 0x00000702} 
  469. };
  470. static unsigned nv4TablePRAMIN_16BPP[][2] =
  471. {
  472.     /*           0xXXXXXX01 For  MSB mono format */
  473.     /*           0xXXXXXX02 For  LSB mono format */
  474.     {0x00000509, 0x00000C02},
  475.     {0x0000050D, 0x00000C02},
  476.     {0x00000511, 0x00000B02},
  477.     {0x00000515, 0x00000C02},
  478.     {0x00000519, 0x00000C02},
  479.     {0x0000051D, 0x00000C02},
  480.     {0x0000052D, 0x00000C02},
  481.     {0x0000052E, 0x00000C02},
  482.     {0x00000535, 0x00000702},
  483.     {0x00000539, 0x00000702} 
  484. };
  485. static unsigned nv4TablePRAMIN_32BPP[][2] =
  486. {
  487.     /*           0xXXXXXX01 For  MSB mono format */
  488.     /*           0xXXXXXX02 For  LSB mono format */
  489.     {0x00000509, 0x00000E02},
  490.     {0x0000050D, 0x00000E02},
  491.     {0x00000511, 0x00000D02},
  492.     {0x00000515, 0x00000E02},
  493.     {0x00000519, 0x00000E02},
  494.     {0x0000051D, 0x00000E02},
  495.     {0x0000052D, 0x00000E02},
  496.     {0x0000052E, 0x00000E02},
  497.     {0x00000535, 0x00000E02},
  498.     {0x00000539, 0x00000E02} 
  499. };
  500. static unsigned nv10TableFIFO[][2] =
  501. {
  502.     {0x00003800, 0x80000014}
  503. };
  504. static unsigned nv10TablePFIFO[][2] =
  505. {
  506.     {0x00000140, 0x00000000},
  507.     {0x00000480, 0x00000000},
  508.     {0x00000494, 0x00000000},
  509.     {0x00000481, 0x00000000},
  510.     {0x0000048B, 0x00000000},
  511.     {0x00000400, 0x00000000},
  512.     {0x00000414, 0x00000000},
  513.     {0x00000084, 0x03000100},
  514.     {0x00000085, 0x00000110},
  515.     {0x00000086, 0x00000112},
  516.     {0x00000143, 0x0000FFFF},
  517.     {0x00000496, 0x0000FFFF},
  518.     {0x00000050, 0x00000000},
  519.     {0x00000040, 0xFFFFFFFF},
  520.     {0x00000415, 0x00000001},
  521.     {0x00000480, 0x00000001},
  522.     {0x00000494, 0x00000001},
  523.     {0x00000495, 0x00000001},
  524.     {0x00000140, 0x00000001}
  525. };
  526. static unsigned nv10TablePGRAPH[][2] =
  527. {
  528.     {0x00000020, 0x0003FFFF},
  529.     {0x00000021, 0x00118701},
  530.     {0x00000022, 0x24F82AD9},
  531.     {0x00000023, 0x55DE0030},
  532.     {0x00000020, 0x00000000},
  533.     {0x00000024, 0x00000000},
  534.     {0x00000058, 0x00000000},
  535.     {0x00000060, 0x00000000},
  536.     {0x00000068, 0x00000000},
  537.     {0x00000070, 0x00000000},
  538.     {0x00000078, 0x00000000},
  539.     {0x00000059, 0x00000000},
  540.     {0x00000061, 0x00000000},
  541.     {0x00000069, 0x00000000},
  542.     {0x00000071, 0x00000000},
  543.     {0x00000079, 0x00000000},
  544.     {0x0000005A, 0x00000000},
  545.     {0x00000062, 0x00000000},
  546.     {0x0000006A, 0x00000000},
  547.     {0x00000072, 0x00000000},
  548.     {0x0000007A, 0x00000000},
  549.     {0x0000005B, 0x00000000},
  550.     {0x00000063, 0x00000000},
  551.     {0x0000006B, 0x00000000},
  552.     {0x00000073, 0x00000000},
  553.     {0x0000007B, 0x00000000},
  554.     {0x0000005C, 0x00000000},
  555.     {0x00000064, 0x00000000},
  556.     {0x0000006C, 0x00000000},
  557.     {0x00000074, 0x00000000},
  558.     {0x0000007C, 0x00000000},
  559.     {0x0000005D, 0x00000000},
  560.     {0x00000065, 0x00000000},
  561.     {0x0000006D, 0x00000000},
  562.     {0x00000075, 0x00000000},
  563.     {0x0000007D, 0x00000000},
  564.     {0x0000005E, 0x00000000},
  565.     {0x00000066, 0x00000000},
  566.     {0x0000006E, 0x00000000},
  567.     {0x00000076, 0x00000000},
  568.     {0x0000007E, 0x00000000},
  569.     {0x0000005F, 0x00000000},
  570.     {0x00000067, 0x00000000},
  571.     {0x0000006F, 0x00000000},
  572.     {0x00000077, 0x00000000},
  573.     {0x0000007F, 0x00000000},
  574.     {0x00000053, 0x00000000},
  575.     {0x00000054, 0x00000000},
  576.     {0x00000055, 0x00000000},
  577.     {0x00000056, 0x00000000},
  578.     {0x00000057, 0x00000000},
  579.     {0x00000196, 0x00000000},
  580.     {0x000001A1, 0x01FFFFFF},
  581.     {0x00000197, 0x00000000},
  582.     {0x000001A2, 0x01FFFFFF},
  583.     {0x00000198, 0x00000000},
  584.     {0x000001A3, 0x01FFFFFF},
  585.     {0x00000199, 0x00000000},
  586.     {0x000001A4, 0x01FFFFFF},
  587.     {0x0000019A, 0x00000000},
  588.     {0x000001A5, 0x01FFFFFF},
  589.     {0x0000019B, 0x00000000},
  590.     {0x000001A6, 0x01FFFFFF},
  591.     {0x00000050, 0x01111111},
  592.     {0x00000040, 0xFFFFFFFF},
  593.     {0x00000051, 0x10010100},
  594.     {0x000001C5, 0xFFFFFFFF},
  595.     {0x000001C8, 0x00000001},
  596.     {0x00000204, 0x00000000},
  597.     {0x000001C4, 0x00000001}
  598. };
  599. static unsigned nv10TablePGRAPH_8BPP[][2] =
  600. {
  601.     {0x000001C9, 0x00111111},
  602.     {0x00000186, 0x00001010},
  603.     {0x0000020C, 0x03020202}
  604. };
  605. static unsigned nv10TablePGRAPH_15BPP[][2] =
  606. {
  607.     {0x000001C9, 0x00226222},
  608.     {0x00000186, 0x00002071},
  609.     {0x0000020C, 0x09080808}
  610. };
  611. static unsigned nv10TablePGRAPH_16BPP[][2] =
  612. {
  613.     {0x000001C9, 0x00556555},
  614.     {0x00000186, 0x000050C2},
  615.     {0x0000020C, 0x000B0B0C}
  616. };
  617. static unsigned nv10TablePGRAPH_32BPP[][2] =
  618. {
  619.     {0x000001C9, 0x0077D777},
  620.     {0x00000186, 0x000070E5},
  621.     {0x0000020C, 0x0E0D0D0D}
  622. };
  623. static unsigned nv10tri05TablePGRAPH[][2] =
  624. {
  625.     {(0x00000E00/4), 0x00000000},
  626.     {(0x00000E04/4), 0x00000000},
  627.     {(0x00000E08/4), 0x00000000},
  628.     {(0x00000E0C/4), 0x00000000},
  629.     {(0x00000E10/4), 0x00001000},
  630.     {(0x00000E14/4), 0x00001000},
  631.     {(0x00000E18/4), 0x4003ff80},
  632.     {(0x00000E1C/4), 0x00000000},
  633.     {(0x00000E20/4), 0x00000000},
  634.     {(0x00000E24/4), 0x00000000},
  635.     {(0x00000E28/4), 0x00000000},
  636.     {(0x00000E2C/4), 0x00000000},
  637.     {(0x00000E30/4), 0x00080008},
  638.     {(0x00000E34/4), 0x00080008},
  639.     {(0x00000E38/4), 0x00000000},
  640.     {(0x00000E3C/4), 0x00000000},
  641.     {(0x00000E40/4), 0x00000000},
  642.     {(0x00000E44/4), 0x00000000},
  643.     {(0x00000E48/4), 0x00000000},
  644.     {(0x00000E4C/4), 0x00000000},
  645.     {(0x00000E50/4), 0x00000000},
  646.     {(0x00000E54/4), 0x00000000},
  647.     {(0x00000E58/4), 0x00000000},
  648.     {(0x00000E5C/4), 0x00000000},
  649.     {(0x00000E60/4), 0x00000000},
  650.     {(0x00000E64/4), 0x10000000},
  651.     {(0x00000E68/4), 0x00000000},
  652.     {(0x00000E6C/4), 0x00000000},
  653.     {(0x00000E70/4), 0x00000000},
  654.     {(0x00000E74/4), 0x00000000},
  655.     {(0x00000E78/4), 0x00000000},
  656.     {(0x00000E7C/4), 0x00000000},
  657.     {(0x00000E80/4), 0x00000000},
  658.     {(0x00000E84/4), 0x00000000},
  659.     {(0x00000E88/4), 0x08000000},
  660.     {(0x00000E8C/4), 0x00000000},
  661.     {(0x00000E90/4), 0x00000000},
  662.     {(0x00000E94/4), 0x00000000},
  663.     {(0x00000E98/4), 0x00000000},
  664.     {(0x00000E9C/4), 0x4B7FFFFF},
  665.     {(0x00000EA0/4), 0x00000000},
  666.     {(0x00000EA4/4), 0x00000000},
  667.     {(0x00000EA8/4), 0x00000000},
  668.     {(0x00000F00/4), 0x07FF0800},
  669.     {(0x00000F04/4), 0x07FF0800},
  670.     {(0x00000F08/4), 0x07FF0800},
  671.     {(0x00000F0C/4), 0x07FF0800},
  672.     {(0x00000F10/4), 0x07FF0800},
  673.     {(0x00000F14/4), 0x07FF0800},
  674.     {(0x00000F18/4), 0x07FF0800},
  675.     {(0x00000F1C/4), 0x07FF0800},
  676.     {(0x00000F20/4), 0x07FF0800},
  677.     {(0x00000F24/4), 0x07FF0800},
  678.     {(0x00000F28/4), 0x07FF0800},
  679.     {(0x00000F2C/4), 0x07FF0800},
  680.     {(0x00000F30/4), 0x07FF0800},
  681.     {(0x00000F34/4), 0x07FF0800},
  682.     {(0x00000F38/4), 0x07FF0800},
  683.     {(0x00000F3C/4), 0x07FF0800},
  684.     {(0x00000F40/4), 0x10000000},
  685.     {(0x00000F44/4), 0x00000000},
  686.     {(0x00000F50/4), 0x00006740},
  687.     {(0x00000F54/4), 0x00000000},
  688.     {(0x00000F54/4), 0x00000000},
  689.     {(0x00000F54/4), 0x00000000},
  690.     {(0x00000F54/4), 0x3F800000},
  691.     {(0x00000F50/4), 0x00006750},
  692.     {(0x00000F54/4), 0x40000000},
  693.     {(0x00000F54/4), 0x40000000},
  694.     {(0x00000F54/4), 0x40000000},
  695.     {(0x00000F54/4), 0x40000000},
  696.     {(0x00000F50/4), 0x00006760},
  697.     {(0x00000F54/4), 0x00000000},
  698.     {(0x00000F54/4), 0x00000000},
  699.     {(0x00000F54/4), 0x3F800000},
  700.     {(0x00000F54/4), 0x00000000},
  701.     {(0x00000F50/4), 0x00006770},
  702.     {(0x00000F54/4), 0xC5000000},
  703.     {(0x00000F54/4), 0xC5000000},
  704.     {(0x00000F54/4), 0x00000000},
  705.     {(0x00000F54/4), 0x00000000},
  706.     {(0x00000F50/4), 0x00006780},
  707.     {(0x00000F54/4), 0x00000000},
  708.     {(0x00000F54/4), 0x00000000},
  709.     {(0x00000F54/4), 0x3F800000},
  710.     {(0x00000F54/4), 0x00000000},
  711.     {(0x00000F50/4), 0x000067A0},
  712.     {(0x00000F54/4), 0x3F800000},
  713.     {(0x00000F54/4), 0x3F800000},
  714.     {(0x00000F54/4), 0x3F800000},
  715.     {(0x00000F54/4), 0x3F800000},
  716.     {(0x00000F50/4), 0x00006AB0},
  717.     {(0x00000F54/4), 0x3F800000},
  718.     {(0x00000F54/4), 0x3F800000},
  719.     {(0x00000F54/4), 0x3F800000},
  720.     {(0x00000F50/4), 0x00006AC0},
  721.     {(0x00000F54/4), 0x00000000},
  722.     {(0x00000F54/4), 0x00000000},
  723.     {(0x00000F54/4), 0x00000000},
  724.     {(0x00000F50/4), 0x00006C10},
  725.     {(0x00000F54/4), 0xBF800000},
  726.     {(0x00000F50/4), 0x00007030},
  727.     {(0x00000F54/4), 0x7149F2CA},
  728.     {(0x00000F50/4), 0x00007040},
  729.     {(0x00000F54/4), 0x7149F2CA},
  730.     {(0x00000F50/4), 0x00007050},
  731.     {(0x00000F54/4), 0x7149F2CA},
  732.     {(0x00000F50/4), 0x00007060},
  733.     {(0x00000F54/4), 0x7149F2CA},
  734.     {(0x00000F50/4), 0x00007070},
  735.     {(0x00000F54/4), 0x7149F2CA},
  736.     {(0x00000F50/4), 0x00007080},
  737.     {(0x00000F54/4), 0x7149F2CA},
  738.     {(0x00000F50/4), 0x00007090},
  739.     {(0x00000F54/4), 0x7149F2CA},
  740.     {(0x00000F50/4), 0x000070A0},
  741.     {(0x00000F54/4), 0x7149F2CA},
  742.     {(0x00000F50/4), 0x00006A80},
  743.     {(0x00000F54/4), 0x00000000},
  744.     {(0x00000F54/4), 0x00000000},
  745.     {(0x00000F54/4), 0x3F800000},
  746.     {(0x00000F50/4), 0x00006AA0},
  747.     {(0x00000F54/4), 0x00000000},
  748.     {(0x00000F54/4), 0x00000000},
  749.     {(0x00000F54/4), 0x00000000},
  750.     {(0x00000F50/4), 0x00000040},
  751.     {(0x00000F54/4), 0x00000005},
  752.     {(0x00000F50/4), 0x00006400},
  753.     {(0x00000F54/4), 0x3F800000},
  754.     {(0x00000F54/4), 0x3F800000},
  755.     {(0x00000F54/4), 0x4B7FFFFF},
  756.     {(0x00000F54/4), 0x00000000},
  757.     {(0x00000F50/4), 0x00006410},
  758.     {(0x00000F54/4), 0xC5000000},
  759.     {(0x00000F54/4), 0xC5000000},
  760.     {(0x00000F54/4), 0x00000000},
  761.     {(0x00000F54/4), 0x00000000},
  762.     {(0x00000F50/4), 0x00006420},
  763.     {(0x00000F54/4), 0x00000000},
  764.     {(0x00000F54/4), 0x00000000},
  765.     {(0x00000F54/4), 0x00000000},
  766.     {(0x00000F54/4), 0x00000000},
  767.     {(0x00000F50/4), 0x00006430},
  768.     {(0x00000F54/4), 0x00000000},
  769.     {(0x00000F54/4), 0x00000000},
  770.     {(0x00000F54/4), 0x00000000},
  771.     {(0x00000F54/4), 0x00000000},
  772.     {(0x00000F50/4), 0x000064C0},
  773.     {(0x00000F54/4), 0x3F800000},
  774.     {(0x00000F54/4), 0x3F800000},
  775.     {(0x00000F54/4), 0x477FFFFF},
  776.     {(0x00000F54/4), 0x3F800000},
  777.     {(0x00000F50/4), 0x000064D0},
  778.     {(0x00000F54/4), 0xC5000000},
  779.     {(0x00000F54/4), 0xC5000000},
  780.     {(0x00000F54/4), 0x00000000},
  781.     {(0x00000F54/4), 0x00000000},
  782.     {(0x00000F50/4), 0x000064E0},
  783.     {(0x00000F54/4), 0xC4FFF000},
  784.     {(0x00000F54/4), 0xC4FFF000},
  785.     {(0x00000F54/4), 0x00000000},
  786.     {(0x00000F54/4), 0x00000000},
  787.     {(0x00000F50/4), 0x000064F0},
  788.     {(0x00000F54/4), 0x00000000},
  789.     {(0x00000F54/4), 0x00000000},
  790.     {(0x00000F54/4), 0x00000000},
  791.     {(0x00000F54/4), 0x00000000},
  792.     {(0x00000F40/4), 0x30000000},
  793.     {(0x00000F44/4), 0x00000004},
  794.     {(0x00000F48/4), 0x10000000},
  795.     {(0x00000F4C/4), 0x00000000}
  796. };
  797. static unsigned nv10TablePRAMIN[][2] =
  798. {
  799.     {0x00000000, 0x80000010},
  800.     {0x00000001, 0x80011145},
  801.     {0x00000002, 0x80000011},
  802.     {0x00000003, 0x80011146},
  803.     {0x00000004, 0x80000012},
  804.     {0x00000005, 0x80011147},
  805.     {0x00000006, 0x80000013},
  806.     {0x00000007, 0x80011148},
  807.     {0x00000008, 0x80000014},
  808.     {0x00000009, 0x80011149},
  809.     {0x0000000A, 0x80000015},
  810.     {0x0000000B, 0x8001114A},
  811.     {0x00000020, 0x80000000},
  812.     {0x00000021, 0x80011142},
  813.     {0x00000022, 0x80000001},
  814.     {0x00000023, 0x80011143},
  815.     {0x00000024, 0x80000002},
  816.     {0x00000025, 0x80011144},
  817.     {0x00000026, 0x80000003},
  818.     {0x00000027, 0x8001114B},
  819.     {0x00000028, 0x80000004},
  820.     {0x00000029, 0x8001114C},
  821.     {0x0000002A, 0x80000005},
  822.     {0x0000002B, 0x8001114D},
  823.     {0x0000002C, 0x80000006},
  824.     {0x0000002D, 0x8001114E},
  825.     {0x0000002E, 0x80000007},
  826.     {0x0000002F, 0x8001114F},
  827.     {0x00000500, 0x00003000},
  828.     {0x00000501, 0x01FFFFFF},
  829.     {0x00000502, 0x00000002},
  830.     {0x00000503, 0x00000002},
  831.     {0x00000508, 0x01008043},
  832.     {0x0000050A, 0x00000000},
  833.     {0x0000050B, 0x00000000},
  834.     {0x0000050C, 0x01008019},
  835.     {0x0000050E, 0x00000000},
  836.     {0x0000050F, 0x00000000},
  837. #if 1
  838.     {0x00000510, 0x01008018},
  839. #else
  840.     {0x00000510, 0x01008044},
  841. #endif
  842.     {0x00000512, 0x00000000},
  843.     {0x00000513, 0x00000000},
  844.     {0x00000514, 0x01008021},
  845.     {0x00000516, 0x00000000},
  846.     {0x00000517, 0x00000000},
  847.     {0x00000518, 0x0100805F},
  848.     {0x0000051A, 0x00000000},
  849.     {0x0000051B, 0x00000000},
  850. #if 1
  851.     {0x0000051C, 0x0100804B},
  852. #else
  853.     {0x0000051C, 0x0100804A},
  854. #endif
  855.     {0x0000051E, 0x00000000},
  856.     {0x0000051F, 0x00000000},
  857.     {0x00000520, 0x0100A048},
  858.     {0x00000521, 0x00000D01},
  859.     {0x00000522, 0x11401140},
  860.     {0x00000523, 0x00000000},
  861.     {0x00000524, 0x0300A094},
  862.     {0x00000525, 0x00000D01},
  863.     {0x00000526, 0x11401140},
  864.     {0x00000527, 0x00000000},
  865.     {0x00000528, 0x0300A095},
  866.     {0x00000529, 0x00000D01},
  867.     {0x0000052A, 0x11401140},
  868.     {0x0000052B, 0x00000000},
  869.     {0x0000052C, 0x00000058},
  870.     {0x0000052E, 0x11401140},
  871.     {0x0000052F, 0x00000000},
  872.     {0x00000530, 0x00000059},
  873.     {0x00000532, 0x11401140},
  874.     {0x00000533, 0x00000000},
  875.     {0x00000534, 0x0000005A},
  876.     {0x00000536, 0x11401140},
  877.     {0x00000537, 0x00000000},
  878.     {0x00000538, 0x0000005B},
  879.     {0x0000053A, 0x11401140},
  880.     {0x0000053B, 0x00000000},
  881.     {0x0000053C, 0x00000093},
  882.     {0x0000053E, 0x11401140},
  883.     {0x0000053F, 0x00000000} 
  884. };
  885. static unsigned nv10TablePRAMIN_8BPP[][2] =
  886. {
  887.     /*           0xXXXXXX01 For  MSB mono format */
  888.     /*           0xXXXXXX02 For  LSB mono format */
  889.     {0x00000509, 0x00000302},
  890.     {0x0000050D, 0x00000302},
  891.     {0x00000511, 0x00000202},
  892.     {0x00000515, 0x00000302},
  893.     {0x00000519, 0x00000302},
  894.     {0x0000051D, 0x00000302},
  895.     {0x0000052D, 0x00000302},
  896.     {0x0000052E, 0x00000302},
  897.     {0x00000535, 0x00000000},
  898.     {0x00000539, 0x00000000},
  899.     {0x0000053D, 0x00000000} 
  900. };
  901. static unsigned nv10TablePRAMIN_15BPP[][2] =
  902. {
  903.     /*           0xXXXXXX01 For  MSB mono format */
  904.     /*           0xXXXXXX02 For  LSB mono format */
  905.     {0x00000509, 0x00000902},
  906.     {0x0000050D, 0x00000902},
  907.     {0x00000511, 0x00000802},
  908.     {0x00000515, 0x00000902},
  909.     {0x00000519, 0x00000902},
  910.     {0x0000051D, 0x00000902},
  911.     {0x0000052D, 0x00000902},
  912.     {0x0000052E, 0x00000902},
  913.     {0x00000535, 0x00000902},
  914.     {0x00000539, 0x00000902}, 
  915.     {0x0000053D, 0x00000902} 
  916. };
  917. static unsigned nv10TablePRAMIN_16BPP[][2] =
  918. {
  919.     /*           0xXXXXXX01 For  MSB mono format */
  920.     /*           0xXXXXXX02 For  LSB mono format */
  921.     {0x00000509, 0x00000C02},
  922.     {0x0000050D, 0x00000C02},
  923.     {0x00000511, 0x00000B02},
  924.     {0x00000515, 0x00000C02},
  925.     {0x00000519, 0x00000C02},
  926.     {0x0000051D, 0x00000C02},
  927.     {0x0000052D, 0x00000C02},
  928.     {0x0000052E, 0x00000C02},
  929.     {0x00000535, 0x00000C02},
  930.     {0x00000539, 0x00000C02},
  931.     {0x0000053D, 0x00000C02} 
  932. };
  933. static unsigned nv10TablePRAMIN_32BPP[][2] =
  934. {
  935.     /*           0xXXXXXX01 For  MSB mono format */
  936.     /*           0xXXXXXX02 For  LSB mono format */
  937.     {0x00000509, 0x00000E02},
  938.     {0x0000050D, 0x00000E02},
  939.     {0x00000511, 0x00000D02},
  940.     {0x00000515, 0x00000E02},
  941.     {0x00000519, 0x00000E02},
  942.     {0x0000051D, 0x00000E02},
  943.     {0x0000052D, 0x00000E02},
  944.     {0x0000052E, 0x00000E02},
  945.     {0x00000535, 0x00000E02},
  946.     {0x00000539, 0x00000E02},
  947.     {0x0000053D, 0x00000E02} 
  948. };