riva_tbl.h 30 KB

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