300vtbl.h 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965
  1. /* $XFree86$ */
  2. /* $XdotOrg$ */
  3. /*
  4. * Register settings for SiS 300 series
  5. *
  6. * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria
  7. *
  8. * If distributed as part of the Linux kernel, the following license terms
  9. * apply:
  10. *
  11. * * This program is free software; you can redistribute it and/or modify
  12. * * it under the terms of the GNU General Public License as published by
  13. * * the Free Software Foundation; either version 2 of the named License,
  14. * * or any later version.
  15. * *
  16. * * This program is distributed in the hope that it will be useful,
  17. * * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * * GNU General Public License for more details.
  20. * *
  21. * * You should have received a copy of the GNU General Public License
  22. * * along with this program; if not, write to the Free Software
  23. * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
  24. *
  25. * Otherwise, the following license terms apply:
  26. *
  27. * * Redistribution and use in source and binary forms, with or without
  28. * * modification, are permitted provided that the following conditions
  29. * * are met:
  30. * * 1) Redistributions of source code must retain the above copyright
  31. * * notice, this list of conditions and the following disclaimer.
  32. * * 2) Redistributions in binary form must reproduce the above copyright
  33. * * notice, this list of conditions and the following disclaimer in the
  34. * * documentation and/or other materials provided with the distribution.
  35. * * 3) The name of the author may not be used to endorse or promote products
  36. * * derived from this software without specific prior written permission.
  37. * *
  38. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  39. * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  40. * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  41. * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  42. * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  43. * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  44. * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  45. * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  46. * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  47. * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  48. *
  49. * Author: Thomas Winischhofer <thomas@winischhofer.net>
  50. *
  51. */
  52. static const SiS_StStruct SiS300_SModeIDTable[] =
  53. {
  54. {0x01,0x9208,0x01,0x00,0x00,0x00,0x00,0x00, 0},
  55. {0x01,0x1210,0x14,0x01,0x01,0x00,0x00,0x00, 0},
  56. {0x01,0x1010,0x17,0x02,0x02,0x00,0x00,0x00, 0},
  57. {0x03,0x8208,0x03,0x00,0x00,0x00,0x00,0x00, 0},
  58. {0x03,0x0210,0x16,0x01,0x01,0x00,0x00,0x00, 0},
  59. {0x03,0x0010,0x18,0x02,0x02,0x00,0x00,0x00, 0},
  60. {0x05,0x9209,0x05,0x00,0x00,0x00,0x00,0x00, 0},
  61. {0x06,0x8209,0x06,0x00,0x00,0x00,0x00,0x00, 0},
  62. {0x07,0x0000,0x07,0x03,0x03,0x00,0x00,0x00, 0},
  63. {0x07,0x0000,0x19,0x02,0x02,0x00,0x00,0x00, 0},
  64. {0x0d,0x920a,0x0d,0x00,0x00,0x00,0x00,0x00, 0},
  65. {0x0e,0x820a,0x0e,0x00,0x00,0x00,0x00,0x00, 0},
  66. {0x0f,0x0202,0x11,0x01,0x01,0x00,0x00,0x00, 0},
  67. {0x10,0x0212,0x12,0x01,0x01,0x00,0x00,0x00, 0},
  68. {0x11,0x0212,0x1a,0x04,0x04,0x00,0x00,0x00, 0},
  69. {0x12,0x0212,0x1b,0x04,0x04,0x00,0x00,0x00, 0},
  70. {0x13,0x021b,0x1c,0x00,0x00,0x00,0x00,0x00, 0},
  71. {0x12,0x0010,0x18,0x02,0x02,0x00,0x00,0x00, 0},
  72. {0x12,0x0210,0x18,0x01,0x01,0x00,0x00,0x00, 0},
  73. {0xff, 0, 0, 0, 0, 0, 0, 0, 0}
  74. };
  75. static const SiS_ExtStruct SiS300_EModeIDTable[] =
  76. {
  77. {0x6a,0x2212,0x0102,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x? */
  78. {0x2e,0x0a1b,0x0101,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1},
  79. {0x2f,0x021b,0x0100,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x8 */
  80. {0x30,0x2a1b,0x0103,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1},
  81. {0x31,0x4a1b,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x8 */
  82. {0x32,0x6a1b,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x8 */
  83. {0x33,0x4a1d,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x16 */
  84. {0x34,0x6a1d,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x16 */
  85. {0x35,0x4a1f,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x32 */
  86. {0x36,0x6a1f,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x32 */
  87. {0x37,0x0212,0x0104,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, /* 1024x768x? */
  88. {0x38,0x0a1b,0x0105,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, /* 1024x768x8 */
  89. {0x3a,0x0e3b,0x0107,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1}, /* 1280x1024x8 */
  90. {0x3c,0x063b,0x0130,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1},
  91. {0x3d,0x067d,0x0131,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1},
  92. {0x40,0x921c,0x010d,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x15 */
  93. {0x41,0x921d,0x010e,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x16 */
  94. {0x43,0x0a1c,0x0110,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1},
  95. {0x44,0x0a1d,0x0111,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1},
  96. {0x46,0x2a1c,0x0113,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x15 */
  97. {0x47,0x2a1d,0x0114,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x16 */
  98. {0x49,0x0a3c,0x0116,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1},
  99. {0x4a,0x0a3d,0x0117,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1},
  100. {0x4c,0x0e7c,0x0119,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1},
  101. {0x4d,0x0e7d,0x011a,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1},
  102. {0x50,0x921b,0x0132,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x8 */
  103. {0x51,0xb21b,0x0133,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x8 */
  104. {0x52,0x921b,0x0134,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x8 */
  105. {0x56,0x921d,0x0135,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x16 */
  106. {0x57,0xb21d,0x0136,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x16 */
  107. {0x58,0x921d,0x0137,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x16 */
  108. {0x59,0x921b,0x0138,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x8 */
  109. {0x5c,0x921f,0x0000,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x32 */
  110. {0x5d,0x021d,0x0139,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x16 */
  111. {0x5e,0x021f,0x0000,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x32 */
  112. {0x62,0x0a3f,0x013a,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1},
  113. {0x63,0x2a3f,0x013b,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x32 */
  114. {0x64,0x0a7f,0x013c,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1},
  115. {0x65,0x0eff,0x013d,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1},
  116. {0x66,0x06ff,0x013e,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1},
  117. {0x68,0x067b,0x013f,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1},
  118. {0x69,0x06fd,0x0140,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1},
  119. {0x6b,0x07ff,0x0000,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1},
  120. {0x6c,0x067b,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x8 - not in BIOS! */
  121. {0x6d,0x06fd,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x16 - not in BIOS! */
  122. {0x70,0x6a1b,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x8 */
  123. {0x71,0x4a1b,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x8 */
  124. {0x74,0x4a1d,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x16 */
  125. {0x75,0x0e3d,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x16 */
  126. {0x76,0x6a1f,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x32 */
  127. {0x77,0x4a3f,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x32 */
  128. {0x78,0x0eff,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x32 */
  129. {0x79,0x0e3b,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x8 */
  130. {0x7a,0x6a1d,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x16 */
  131. {0x7c,0x0a3b,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x8 */
  132. {0x7d,0x0a7d,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x16 */
  133. {0x7e,0x0aff,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x32 */
  134. {0x20,0x4a1b,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1}, /* 1024x600 */
  135. {0x21,0x4a3d,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1},
  136. {0x22,0x4a7f,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1},
  137. {0x23,0x4a1b,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1}, /* 1152x768 */
  138. {0x24,0x4a3d,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1},
  139. {0x25,0x4a7f,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1},
  140. {0x29,0x4e1b,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1}, /* 1152x864 */
  141. {0x2a,0x4e3d,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1},
  142. {0x2b,0x4e7f,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1},
  143. {0x39,0x6a1b,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1}, /* 848x480 */
  144. {0x3b,0x6a3d,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1},
  145. {0x3e,0x6a7f,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1},
  146. {0x3f,0x6a1b,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1}, /* 856x480 */
  147. {0x42,0x6a3d,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1},
  148. {0x45,0x6a7f,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1},
  149. {0x48,0x6a3b,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1}, /* 1360x768 */
  150. {0x4b,0x6a7d,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1},
  151. {0x4e,0x6aff,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1},
  152. {0x4f,0x921f,0x0000,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x32 */
  153. {0x53,0x921f,0x0000,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x32 */
  154. {0x54,0xb21f,0x0000,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x32 */
  155. {0x55,0x2e3b,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1}, /* 1280x768 */
  156. {0x5a,0x2e7d,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1},
  157. {0x5b,0x2eff,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1},
  158. {0x5f,0x6a1b,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x8 */
  159. {0x60,0x6a1d,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x16 */
  160. {0x61,0x6a1f,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x32 */
  161. {0x67,0x6e3b,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x8 (BARCO) */
  162. {0x6f,0x6e7d,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x16 (BARCO) */
  163. {0x72,0x6eff,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x32 (BARCO) */
  164. {0xff,0x0000,0xffff,0, 0x00,0x00,0x00,0x00,0x00}
  165. };
  166. static const SiS_Ext2Struct SiS300_RefIndex[] =
  167. {
  168. {0x085f,0x0d,0x03,0x05,0x05,0x6a, 800, 600, 0}, /* 00 */
  169. {0x0467,0x0e,0x44,0x05,0x05,0x6a, 800, 600, 0}, /* 01 */
  170. {0x0067,0x0f,0x07,0x48,0x05,0x6a, 800, 600, 0}, /* 02 - CRT1CRTC was 0x4f */
  171. {0x0067,0x10,0x06,0x8b,0x05,0x6a, 800, 600, 0}, /* 03 */
  172. {0x0147,0x11,0x08,0x00,0x05,0x6a, 800, 600, 0}, /* 04 */
  173. {0x0147,0x12,0x0c,0x00,0x05,0x6a, 800, 600, 0}, /* 05 */
  174. {0x0047,0x11,0x4e,0x00,0x05,0x6a, 800, 600, 0}, /* 06 - CRT1CRTC was 0x51 */
  175. {0x0047,0x11,0x13,0x00,0x05,0x6a, 800, 600, 0}, /* 07 */
  176. {0xc85f,0x05,0x00,0x04,0x04,0x2e, 640, 480, 0}, /* 08 */
  177. {0xc067,0x06,0x02,0x04,0x04,0x2e, 640, 480, 0}, /* 09 */
  178. {0xc067,0x07,0x02,0x47,0x04,0x2e, 640, 480, 0}, /* 0a */
  179. {0xc067,0x08,0x03,0x8a,0x04,0x2e, 640, 480, 0}, /* 0b */
  180. {0xc047,0x09,0x05,0x00,0x04,0x2e, 640, 480, 0}, /* 0c */
  181. {0xc047,0x0a,0x08,0x00,0x04,0x2e, 640, 480, 0}, /* 0d */
  182. {0xc047,0x0b,0x0a,0x00,0x04,0x2e, 640, 480, 0}, /* 0e */
  183. {0xc047,0x0c,0x10,0x00,0x04,0x2e, 640, 480, 0}, /* 0f */
  184. {0x487f,0x04,0x00,0x00,0x00,0x2f, 640, 400, 0}, /* 10 */
  185. {0xc06f,0x31,0x01,0x06,0x13,0x31, 720, 480, 0}, /* 11 */
  186. {0x006f,0x32,0x03,0x06,0x14,0x32, 720, 576, 0}, /* 12 */
  187. {0x0187,0x15,0x05,0x00,0x06,0x37,1024, 768, 0}, /* 13 */
  188. {0xc877,0x16,0x09,0x06,0x06,0x37,1024, 768, 0}, /* 14 */
  189. {0xc067,0x17,0x0b,0x49,0x06,0x37,1024, 768, 0}, /* 15 - CRT1CRTC was 0x97 */
  190. {0x0267,0x18,0x0d,0x00,0x06,0x37,1024, 768, 0}, /* 16 */
  191. {0x0047,0x19,0x11,0x8c,0x06,0x37,1024, 768, 0}, /* 17 - CRT1CRTC was 0x59 */
  192. {0x0047,0x1a,0x52,0x00,0x06,0x37,1024, 768, 0}, /* 18 */
  193. {0x0007,0x1b,0x16,0x00,0x06,0x37,1024, 768, 0}, /* 19 - CRT1CRTC was 0x5b */
  194. {0x0387,0x1c,0x4d,0x00,0x07,0x3a,1280,1024, 0}, /* 1a - CRT1CRTC was 0x5c */
  195. {0x0077,0x1d,0x14,0x07,0x07,0x3a,1280,1024, 0}, /* 1b */
  196. {0x0047,0x1e,0x17,0x00,0x07,0x3a,1280,1024, 0}, /* 1c */
  197. {0x0007,0x1f,0x98,0x00,0x07,0x3a,1280,1024, 0}, /* 1d */
  198. {0x0007,0x20,0x59,0x00,0x00,0x3c,1600,1200, 0}, /* 1e - CRT1CRTC was 0x60 */
  199. {0x0007,0x21,0x5a,0x00,0x00,0x3c,1600,1200, 0}, /* 1f */
  200. {0x0007,0x22,0x1b,0x00,0x00,0x3c,1600,1200, 0}, /* 20 */
  201. {0x0007,0x23,0x1d,0x00,0x00,0x3c,1600,1200, 0}, /* 21 - CRT1CRTC was 0x63 */
  202. {0x0007,0x24,0x1e,0x00,0x00,0x3c,1600,1200, 0}, /* 22 */
  203. {0x407f,0x00,0x00,0x00,0x00,0x40, 320, 200, 0}, /* 23 */
  204. {0xc07f,0x01,0x00,0x04,0x04,0x50, 320, 240, 0}, /* 24 */
  205. {0x0077,0x02,0x04,0x05,0x05,0x51, 400, 300, 0}, /* 25 */
  206. {0xc877,0x03,0x09,0x06,0x06,0x52, 512, 384, 0}, /* 26 */ /* was c077 */
  207. {0x8207,0x25,0x1f,0x00,0x00,0x68,1920,1440, 0}, /* 27 */
  208. {0x0007,0x26,0x20,0x00,0x00,0x6c,2048,1536, 0}, /* 28 */
  209. {0x0067,0x27,0x14,0x08,0x0a,0x6e,1280, 960, 0}, /* 29 - 1280x960-60 */
  210. {0x0027,0x45,0x3c,0x08,0x0a,0x6e,1280, 960, 0}, /* 2a - 1280x960-85 */
  211. {0xc077,0x33,0x09,0x06,0x00,0x20,1024, 600, 0}, /* 2b */
  212. {0xc077,0x34,0x0b,0x06,0x00,0x23,1152, 768, 0}, /* 2c */ /* VCLK 0x09 */
  213. {0x0077,0x35,0x27,0x08,0x18,0x70, 800, 480, 0}, /* 2d */
  214. {0x0047,0x36,0x37,0x08,0x18,0x70, 800, 480, 0}, /* 2e */
  215. {0x0047,0x37,0x08,0x08,0x18,0x70, 800, 480, 0}, /* 2f */
  216. {0x0077,0x38,0x09,0x09,0x19,0x71,1024, 576, 0}, /* 30 */
  217. {0x0047,0x39,0x38,0x09,0x19,0x71,1024, 576, 0}, /* 31 */
  218. {0x0047,0x3a,0x11,0x09,0x19,0x71,1024, 576, 0}, /* 32 */
  219. {0x0077,0x3b,0x39,0x0a,0x0c,0x75,1280, 720, 0}, /* 33 */
  220. {0x0047,0x3c,0x3a,0x0a,0x0c,0x75,1280, 720, 0}, /* 34 */
  221. {0x0007,0x3d,0x3b,0x0a,0x0c,0x75,1280, 720, 0}, /* 35 */
  222. {0x0067,0x49,0x35,0x06,0x1a,0x29,1152, 864, 0}, /* 36 1152x864-60Hz */
  223. {0x0067,0x3e,0x34,0x06,0x1a,0x29,1152, 864, 0}, /* 37 1152x864-75Hz */
  224. {0x0047,0x44,0x3a,0x06,0x1a,0x29,1152, 864, 0}, /* 38 1152x864-85Hz */
  225. {0x00c7,0x3f,0x28,0x00,0x16,0x39, 848, 480, 0}, /* 39 848x480-38Hzi */
  226. {0xc067,0x40,0x3d,0x0b,0x16,0x39, 848, 480, 0}, /* 3a 848x480-60Hz */
  227. {0x00c7,0x41,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3b 856x480-38Hzi */
  228. {0xc047,0x42,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3c 856x480-60Hz */
  229. {0x0067,0x43,0x3e,0x0c,0x1b,0x48,1360, 768, 0}, /* 3d 1360x768-60Hz */
  230. {0x0077,0x46,0x3f,0x08,0x08,0x55,1280, 768, 0}, /* 3e 1280x768-60Hz */
  231. {0x006f,0x47,0x03,0x06,0x15,0x5f, 768, 576, 0}, /* 3f 768x576 */
  232. {0x0027,0x48,0x13,0x08,0x00,0x67,1360,1024, 0}, /* 40 1360x1024-59Hz (BARCO1366 only) */
  233. {0xffff, 0, 0, 0, 0, 0, 0, 0, 0}
  234. };
  235. static const SiS_VBModeStruct SiS300_VBModeIDTable[] =
  236. {
  237. {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  238. {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01},
  239. {0x01,0x00,0x00,0x00,0x01,0x00,0x01,0x02},
  240. {0x03,0x00,0x00,0x00,0x02,0x00,0x02,0x00},
  241. {0x03,0x00,0x00,0x00,0x02,0x00,0x02,0x01},
  242. {0x03,0x00,0x00,0x00,0x03,0x00,0x03,0x02},
  243. {0x05,0x00,0x00,0x01,0x04,0x00,0x00,0x00},
  244. {0x06,0x00,0x00,0x01,0x05,0x00,0x02,0x00},
  245. {0x07,0x00,0x00,0x00,0x03,0x00,0x03,0x01},
  246. {0x07,0x00,0x00,0x00,0x03,0x00,0x03,0x02},
  247. {0x0d,0x00,0x00,0x01,0x04,0x00,0x00,0x00},
  248. {0x0e,0x00,0x00,0x01,0x05,0x00,0x02,0x00},
  249. {0x0f,0x00,0x00,0x01,0x05,0x00,0x02,0x01},
  250. {0x10,0x00,0x00,0x01,0x05,0x00,0x02,0x01},
  251. {0x11,0x00,0x00,0x01,0x05,0x00,0x02,0x03},
  252. {0x12,0x00,0x00,0x01,0x05,0x00,0x02,0x03},
  253. {0x13,0x00,0x00,0x01,0x04,0x00,0x04,0x00},
  254. {0x6a,0x00,0x00,0x01,0x07,0x00,0x08,0x0a},
  255. {0x2e,0x00,0x00,0x01,0x05,0x00,0x06,0x08},
  256. {0x2f,0x00,0x00,0x01,0x05,0x00,0x06,0x06},
  257. {0x30,0x00,0x00,0x01,0x07,0x00,0x08,0x0a},
  258. {0x31,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  259. {0x32,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  260. {0x33,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  261. {0x34,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  262. {0x35,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  263. {0x36,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  264. {0x37,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c},
  265. {0x38,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c},
  266. {0x3a,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  267. {0x40,0x00,0x00,0x01,0x04,0x00,0x05,0x05},
  268. {0x41,0x00,0x00,0x01,0x04,0x00,0x05,0x05},
  269. {0x43,0x00,0x00,0x01,0x05,0x00,0x06,0x08},
  270. {0x44,0x00,0x00,0x01,0x05,0x00,0x06,0x08},
  271. {0x46,0x00,0x00,0x01,0x07,0x00,0x08,0x0a},
  272. {0x47,0x00,0x00,0x01,0x07,0x00,0x08,0x0a},
  273. {0x49,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c},
  274. {0x4a,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c},
  275. {0x4c,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  276. {0x4d,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  277. {0x4f,0x00,0x00,0x01,0x04,0x00,0x05,0x05},
  278. {0x50,0x00,0x00,0x01,0x04,0x00,0x05,0x07},
  279. {0x51,0x00,0x00,0x01,0x07,0x00,0x07,0x09},
  280. {0x52,0x00,0x00,0x01,0x00,0x00,0x09,0x0b},
  281. {0x53,0x00,0x00,0x01,0x04,0x00,0x05,0x07},
  282. {0x54,0x00,0x00,0x01,0x07,0x00,0x07,0x09},
  283. {0x56,0x00,0x00,0x01,0x04,0x00,0x05,0x07},
  284. {0x57,0x00,0x00,0x01,0x07,0x00,0x07,0x09},
  285. {0x58,0x00,0x00,0x01,0x00,0x00,0x09,0x0b},
  286. {0x59,0x00,0x00,0x01,0x04,0x00,0x05,0x05},
  287. {0x5c,0x00,0x00,0x01,0x00,0x00,0x09,0x0b},
  288. {0x5d,0x00,0x00,0x01,0x05,0x00,0x06,0x06},
  289. {0x5e,0x00,0x00,0x01,0x05,0x00,0x06,0x06},
  290. {0x5f,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  291. {0x60,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  292. {0x61,0x00,0x00,0x01,0x06,0x00,0x00,0x00},
  293. {0x62,0x00,0x00,0x01,0x05,0x00,0x06,0x08},
  294. {0x63,0x00,0x00,0x01,0x07,0x00,0x08,0x0a},
  295. {0x64,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c},
  296. {0x65,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  297. {0x6c,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  298. {0x6d,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d},
  299. {0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
  300. };
  301. static const SiS_CRT1TableStruct SiS300_CRT1Table[] =
  302. {
  303. #if 1
  304. {{0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f, /* 0x00 - 320x200 */
  305. 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */
  306. 0x00}},
  307. #endif
  308. #if 0
  309. {{0x2d,0x27,0x27,0x91,0x2c,0x92,0xbf,0x1f, /* 0x00 - corrected 320x200-72 - does not work */
  310. 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x04,
  311. 0x00}},
  312. #endif
  313. {{0x2d,0x27,0x28,0x90,0x2c,0x80,0x0b,0x3e, /* 0x01 */
  314. 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */
  315. 0x00}},
  316. #if 0
  317. {{0x2d,0x27,0x27,0x91,0x2c,0x92,0x0b,0x3e, /* 0x01 - corrected 320x240-60 - does not work */
  318. 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x04,
  319. 0x00}},
  320. #endif
  321. {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0, /* 0x02 */
  322. 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05,
  323. 0x01}},
  324. #if 0
  325. {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0, /* 0x02 - corrected 400x300-60 */
  326. 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05,
  327. 0x01}},
  328. #endif
  329. {{0x4f,0x3f,0x3f,0x93,0x45,0x0d,0x24,0xf5,
  330. 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x01,
  331. 0x01}},
  332. {{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
  333. 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x05,
  334. 0x00}},
  335. #if 0
  336. {{0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e, /* 0x05 */
  337. 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05,
  338. 0x00}},
  339. #endif
  340. {{0x5f,0x4f,0x4f,0x83,0x55,0x81,0x0b,0x3e, /* 0x05 - corrected 640x480-60 */
  341. 0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05,
  342. 0x00}},
  343. #if 0
  344. {{0x63,0x4f,0x50,0x86,0x56,0x9b,0x06,0x3e, /* 0x06 */
  345. 0xe8,0x8b,0xdf,0xe7,0xff,0x10,0x00,0x01,
  346. 0x00}},
  347. #endif
  348. {{0x63,0x4f,0x4f,0x87,0x56,0x9b,0x06,0x3e, /* 0x06 - corrected 640x480-72 */
  349. 0xe8,0x8a,0xdf,0xe7,0x07,0x00,0x00,0x01,
  350. 0x00}},
  351. {{0x64,0x4f,0x4f,0x88,0x55,0x9d,0xf2,0x1f,
  352. 0xe0,0x83,0xdf,0xdf,0xf3,0x10,0x00,0x01,
  353. 0x00}},
  354. {{0x63,0x4f,0x4f,0x87,0x5a,0x81,0xfb,0x1f,
  355. 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05,
  356. 0x00}},
  357. #if 0
  358. {{0x66,0x4f,0x4f,0x86,0x56,0x9e,0x03,0x3e, /* 0x09 */
  359. 0xe4,0x87,0xdf,0xdf,0x04,0x00,0x00,0x01,
  360. 0x00}},
  361. #endif
  362. {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x09 - corrected 640x480-100 */
  363. 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05,
  364. 0x00}},
  365. #if 0
  366. {{0x6c,0x4f,0x4f,0x83,0x59,0x9e,0x00,0x3e, /* 0x0a */
  367. 0xe5,0x8d,0xdf,0xdf,0x01,0x00,0x00,0x01,
  368. 0x00}},
  369. #endif
  370. {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x0a - corrected 640x480-120 */
  371. 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05,
  372. 0x00}},
  373. {{0x63,0x4f,0x4f,0x87,0x56,0x9d,0xfb,0x1f,
  374. 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x01,
  375. 0x00}},
  376. {{0x65,0x4f,0x4f,0x89,0x57,0x9f,0xfb,0x1f,
  377. 0xe6,0x8a,0xdf,0xdf,0xfc,0x10,0x00,0x01, /* Corrected VDE, VBE */
  378. 0x00}},
  379. {{0x7b,0x63,0x63,0x9f,0x6a,0x93,0x6f,0xf0,
  380. 0x58,0x8a,0x57,0x57,0x70,0x20,0x00,0x05,
  381. 0x01}},
  382. {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xf0,
  383. 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x06,
  384. 0x01}},
  385. {{0x7d,0x63,0x63,0x81,0x6e,0x1d,0x98,0xf0,
  386. 0x7c,0x82,0x57,0x57,0x99,0x00,0x00,0x06,
  387. 0x01}},
  388. {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xf0,
  389. 0x58,0x8b,0x57,0x57,0x70,0x20,0x00,0x06,
  390. 0x01}},
  391. {{0x7e,0x63,0x63,0x82,0x6b,0x13,0x75,0xf0,
  392. 0x58,0x8b,0x57,0x57,0x76,0x20,0x00,0x06,
  393. 0x01}},
  394. {{0x8c,0x63,0x63,0x87,0x72,0x16,0x7e,0xf0,
  395. 0x59,0x8d,0x57,0x57,0x7f,0x00,0x00,0x06,
  396. 0x01}},
  397. {{0x7e,0x63,0x63,0x82,0x6c,0x14,0x75,0xe0,
  398. 0x58,0x0b,0x57,0x57,0x76,0x20,0x00,0x06,
  399. 0x01}},
  400. {{0x7e,0x63,0x63,0x82,0x6c,0x14,0x75,0xe0, /* 0x14 */
  401. 0x58,0x0b,0x57,0x57,0x76,0x20,0x00,0x06,
  402. 0x01}},
  403. {{0x99,0x7f,0x7f,0x9d,0x84,0x1a,0x96,0x1f,
  404. 0x7f,0x83,0x7f,0x7f,0x97,0x10,0x00,0x02,
  405. 0x00}},
  406. {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf5,
  407. 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
  408. 0x01}},
  409. {{0xa1,0x7f,0x7f,0x85,0x86,0x97,0x24,0xf5,
  410. 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
  411. 0x01}},
  412. {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf5,
  413. 0x00,0x83,0xff,0xff,0x1f,0x10,0x00,0x02,
  414. 0x01}},
  415. {{0xa7,0x7f,0x7f,0x8b,0x89,0x95,0x26,0xf5,
  416. 0x00,0x83,0xff,0xff,0x27,0x10,0x00,0x02,
  417. 0x01}},
  418. {{0x9f,0x7f,0x7f,0x83,0x83,0x93,0x1e,0xf5, /* 0x1a */
  419. 0x00,0x84,0xff,0xff,0x1f,0x10,0x00,0x02,
  420. 0x01}},
  421. {{0xa2,0x7f,0x7f,0x86,0x84,0x94,0x37,0xf5,
  422. 0x0b,0x82,0xff,0xff,0x38,0x10,0x00,0x02,
  423. 0x01}},
  424. {{0xcf,0x9f,0x9f,0x93,0xb2,0x01,0x14,0xba,
  425. 0x00,0x83,0xff,0xff,0x15,0x00,0x00,0x03,
  426. 0x00}},
  427. {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0x5a,
  428. 0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07,
  429. 0x01}},
  430. {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0x5a, /* 0x1e */
  431. 0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07,
  432. 0x01}},
  433. {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0x5a,
  434. 0x00,0x83,0xff,0xff,0x2f,0x09,0x00,0x07,
  435. 0x01}},
  436. {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
  437. 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
  438. 0x00}},
  439. {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
  440. 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
  441. 0x00}},
  442. {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
  443. 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
  444. 0x00}},
  445. {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
  446. 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
  447. 0x00}},
  448. {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, /* 36: 1600x1200x85Hz */
  449. 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
  450. 0x00}},
  451. {{0x3f,0xef,0xef,0x83,0xfd,0x1a,0xda,0x1f, /* 37: 1920x1440x60Hz */
  452. 0xa0,0x84,0x9f,0x9f,0xdb,0x1f,0x01,0x01,
  453. 0x00}},
  454. {{0x55,0xff,0xff,0x99,0x0d,0x0c,0x3e,0xba,
  455. 0x00,0x84,0xff,0xff,0x3f,0x0f,0x41,0x05,
  456. 0x00}},
  457. #if 0
  458. {{0xdc,0x9f,0x9f,0x00,0xab,0x19,0xe6,0xef, /* 0x27: 1280x960-70 - invalid! */
  459. 0xc0,0xc3,0xbf,0xbf,0xe7,0x10,0x00,0x07,
  460. 0x01}},
  461. #endif
  462. {{0xdc,0x9f,0x9f,0x80,0xaf,0x9d,0xe6,0xff, /* 0x27: 1280x960-60 - correct */
  463. 0xc0,0x83,0xbf,0xbf,0xe7,0x10,0x00,0x07,
  464. 0x01}},
  465. {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xba, /* 0x28 */
  466. 0x27,0x8b,0xdf,0xdf,0x73,0x00,0x00,0x06,
  467. 0x01}},
  468. {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xba,
  469. 0x26,0x89,0xdf,0xdf,0x6f,0x00,0x00,0x06,
  470. 0x01}},
  471. {{0x7f,0x63,0x63,0x82,0x6b,0x13,0x75,0xba,
  472. 0x29,0x8c,0xdf,0xdf,0x75,0x00,0x00,0x06,
  473. 0x01}},
  474. {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf1,
  475. 0xaf,0x85,0x3f,0x3f,0x25,0x30,0x00,0x02,
  476. 0x01}},
  477. {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf1,
  478. 0xad,0x81,0x3f,0x3f,0x1f,0x30,0x00,0x02,
  479. 0x01}},
  480. {{0xa7,0x7f,0x7f,0x88,0x89,0x15,0x26,0xf1,
  481. 0xb1,0x85,0x3f,0x3f,0x27,0x30,0x00,0x02,
  482. 0x01}},
  483. {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xc4,
  484. 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
  485. 0x01}},
  486. {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xd4,
  487. 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
  488. 0x01}},
  489. {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xd4,
  490. 0x7d,0x81,0xcf,0xcf,0x2f,0x21,0x00,0x07,
  491. 0x01}},
  492. {{0x6b,0x59,0x59,0x8f,0x5e,0x8c,0x0b,0x3e,
  493. 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05,
  494. 0x00}},
  495. {{0x7b,0x59,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 0x32 */
  496. 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05,
  497. 0x01}},
  498. {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x1e,0xf1, /* 0x33 - 1024x600 */
  499. 0xae,0x85,0x57,0x57,0x1f,0x30,0x00,0x02,
  500. 0x01}},
  501. {{0xa3,0x8f,0x8f,0x97,0x96,0x97,0x24,0xf5, /* 0x34 - 1152x768 - corrected */
  502. 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
  503. 0x01}},
  504. {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xba, /* 0x35 */
  505. 0x27,0x8b,0xdf,0xdf,0x73,0x00,0x00,0x06,
  506. 0x01}}, /* 0x35 */
  507. {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xba,
  508. 0x26,0x89,0xdf,0xdf,0x6f,0x00,0x00,0x06,
  509. 0x01}}, /* 0x36 */
  510. {{0x7f,0x63,0x63,0x82,0x6b,0x13,0x75,0xba,
  511. 0x29,0x8c,0xdf,0xdf,0x75,0x00,0x00,0x06,
  512. 0x01}}, /* 0x37 */
  513. {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf1,
  514. 0xaf,0x85,0x3f,0x3f,0x25,0x30,0x00,0x02,
  515. 0x01}}, /* 0x38 */
  516. {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf1,
  517. 0xad,0x81,0x3f,0x3f,0x1f,0x30,0x00,0x02,
  518. 0x01}}, /* 0x39 */
  519. {{0xa7,0x7f,0x7f,0x88,0x89,0x95,0x26,0xf1, /* 95 was 15 - illegal HBE! */
  520. 0xb1,0x85,0x3f,0x3f,0x27,0x30,0x00,0x02,
  521. 0x01}}, /* 0x3a */
  522. {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xc4,
  523. 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
  524. 0x01}}, /* 0x3b */
  525. {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xd4,
  526. 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
  527. 0x01}}, /* 0x3c */
  528. {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xd4,
  529. 0x7d,0x81,0xcf,0xcf,0x2f,0x21,0x00,0x07,
  530. 0x01}}, /* 0x3d */
  531. {{0xc3,0x8f,0x8f,0x87,0x9b,0x0b,0x82,0xef, /* 1152x864-75 */
  532. 0x60,0x83,0x5f,0x5f,0x83,0x10,0x00,0x07,
  533. 0x01}}, /* 0x3e */
  534. {{0x86,0x69,0x69,0x8A,0x74,0x06,0x8C,0x15, /* 848x480-38i */
  535. 0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02,
  536. 0x00}}, /* 0x3f */
  537. {{0x83,0x69,0x69,0x87,0x6f,0x1d,0x03,0x3E, /* 848x480-60 */
  538. 0xE5,0x8d,0xDF,0xe4,0x04,0x00,0x00,0x06,
  539. 0x00}}, /* 0x40 */
  540. {{0x86,0x6A,0x6A,0x8A,0x74,0x06,0x8C,0x15, /* 856x480-38i */
  541. 0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02,
  542. 0x00}}, /* 0x41 */
  543. {{0x81,0x6A,0x6A,0x85,0x70,0x00,0x0F,0x3E, /* 856x480-60 */
  544. 0xEB,0x8E,0xDF,0xDF,0x10,0x00,0x00,0x02,
  545. 0x00}}, /* 0x42 */
  546. {{0xdd,0xa9,0xa9,0x81,0xb4,0x97,0x26,0xfd, /* 1360x768-60 */
  547. 0x01,0x8d,0xff,0x00,0x27,0x10,0x00,0x03,
  548. 0x01}}, /* 0x43 */
  549. {{0xd9,0x8f,0x8f,0x9d,0xba,0x0a,0x8a,0xff, /* 1152x864-84 */
  550. 0x60,0x8b,0x5f,0x5f,0x8b,0x10,0x00,0x03,
  551. 0x01}}, /* 0x44 */
  552. {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0xf1,0xff, /* 1280x960-85 */
  553. 0xc0,0x83,0xbf,0xbf,0xf2,0x10,0x00,0x07,
  554. 0x01}}, /* 0x45 */
  555. {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x20,0xf5, /* 1280x768-60 */
  556. 0x03,0x88,0xff,0xff,0x21,0x10,0x00,0x07,
  557. 0x01}}, /* 0x46 */
  558. {{0x7b,0x5f,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 768x576 */
  559. 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05,
  560. 0x01}}, /* 0x47 */
  561. {{0xce,0xa9,0xa9,0x92,0xb1,0x07,0x28,0x52, /* 1360x1024 (Barco iQ Pro R300) */
  562. 0x02,0x8e,0xff,0x00,0x29,0x0d,0x00,0x03,
  563. 0x00}}, /* 0x48 */
  564. {{0xcd,0x8f,0x8f,0x91,0x9b,0x1b,0x7a,0xff, /* 1152x864-60 */
  565. 0x64,0x8c,0x5f,0x62,0x7b,0x10,0x00,0x07,
  566. 0x41}} /* 0x49 */
  567. };
  568. static const SiS_MCLKDataStruct SiS300_MCLKData_630[] =
  569. {
  570. { 0x5a,0x64,0x80, 66},
  571. { 0xb3,0x45,0x80, 83},
  572. { 0x37,0x61,0x80,100},
  573. { 0x37,0x22,0x80,133},
  574. { 0x37,0x61,0x80,100},
  575. { 0x37,0x61,0x80,100},
  576. { 0x37,0x61,0x80,100},
  577. { 0x37,0x61,0x80,100}
  578. };
  579. static const SiS_MCLKDataStruct SiS300_MCLKData_300[] =
  580. {
  581. { 0x68,0x43,0x80,125},
  582. { 0x68,0x43,0x80,125},
  583. { 0x68,0x43,0x80,125},
  584. { 0x37,0x61,0x80,100},
  585. { 0x37,0x61,0x80,100},
  586. { 0x37,0x61,0x80,100},
  587. { 0x37,0x61,0x80,100},
  588. { 0x37,0x61,0x80,100}
  589. };
  590. static SiS_VCLKDataStruct SiS300_VCLKData[] =
  591. {
  592. { 0x1b,0xe1, 25}, /* 0x00 */
  593. { 0x4e,0xe4, 28}, /* 0x01 */
  594. { 0x57,0xe4, 32}, /* 0x02 */
  595. { 0xc3,0xc8, 36}, /* 0x03 */
  596. { 0x42,0xc3, 40}, /* 0x04 */
  597. { 0x5d,0xc4, 45}, /* 0x05 */
  598. { 0x52,0x65, 50}, /* 0x06 */
  599. { 0x53,0x65, 50}, /* 0x07 */
  600. { 0x6d,0x66, 56}, /* 0x08 */
  601. { 0x5a,0x64, 65}, /* 0x09 */
  602. { 0x46,0x44, 68}, /* 0x0a */
  603. { 0x3e,0x43, 75}, /* 0x0b */
  604. { 0x6d,0x46, 76}, /* 0x0c */ /* 800x600 | LVDS_2(CH), MITAC(CH); - 730, A901(301B): 0xb1,0x46, 76 */
  605. { 0x41,0x43, 79}, /* 0x0d */
  606. { 0x31,0x42, 79}, /* 0x0e */
  607. { 0x46,0x25, 85}, /* 0x0f */
  608. { 0x78,0x29, 87}, /* 0x10 */
  609. { 0x62,0x44, 95}, /* 0x11 */
  610. { 0x2b,0x22,105}, /* 0x12 */
  611. { 0x49,0x24,106}, /* 0x13 */
  612. { 0xc3,0x28,108}, /* 0x14 */
  613. { 0x3c,0x23,109}, /* 0x15 */
  614. { 0xf7,0x2c,132}, /* 0x16 */
  615. { 0xd4,0x28,136}, /* 0x17 */
  616. { 0x41,0x05,158}, /* 0x18 */
  617. { 0x43,0x05,162}, /* 0x19 */
  618. { 0xe1,0x0f,175}, /* 0x1a */
  619. { 0xfc,0x12,189}, /* 0x1b */
  620. { 0xde,0x26,194}, /* 0x1c */
  621. { 0x54,0x05,203}, /* 0x1d */
  622. { 0x3f,0x03,230}, /* 0x1e */
  623. { 0x30,0x02,234}, /* 0x1f */
  624. { 0x24,0x01,266}, /* 0x20 */
  625. { 0x52,0x2a, 54}, /* 0x21 */ /* 301 TV */
  626. { 0x52,0x6a, 27}, /* 0x22 */ /* 301 TV */
  627. { 0x62,0x24, 70}, /* 0x23 */ /* 301 TV */
  628. { 0x62,0x64, 70}, /* 0x24 */ /* 301 TV */
  629. { 0xa8,0x4c, 30}, /* 0x25 */ /* 301 TV */
  630. { 0x20,0x26, 33}, /* 0x26 */ /* 301 TV */
  631. { 0x31,0xc2, 39}, /* 0x27 */
  632. { 0xbf,0xc8, 35}, /* 0x28 */ /* 856x480 */
  633. { 0x60,0x36, 30}, /* 0x29 */ /* CH/UNTSC TEXT | LVDS_2(CH) - 730, A901(301B), Mitac(CH): 0xe0, 0xb6, 30 */
  634. { 0x40,0x4a, 28}, /* 0x2a */ /* CH-TV */
  635. { 0x9f,0x46, 44}, /* 0x2b */ /* CH-TV */
  636. { 0x97,0x2c, 26}, /* 0x2c */ /* CH-TV */
  637. { 0x44,0xe4, 25}, /* 0x2d */ /* CH-TV */
  638. { 0x7e,0x32, 47}, /* 0x2e */ /* CH-TV */
  639. { 0x8a,0x24, 31}, /* 0x2f */ /* CH/PAL TEXT | LVDS_2(CH), Mitac(CH) - 730, A901(301B): 0x57, 0xe4, 31 */
  640. { 0x97,0x2c, 26}, /* 0x30 */ /* CH-TV */
  641. { 0xce,0x3c, 39}, /* 0x31 */ /* CH-TV */
  642. { 0x52,0x4a, 36}, /* 0x32 */ /* CH/PAL 800x600 5/6 */
  643. { 0x34,0x61, 95}, /* 0x33 */
  644. { 0x78,0x27,108}, /* 0x34 */ /* Replacement for index 0x14 for 630 (?) */
  645. { 0x70,0x28, 90}, /* 0x35 */ /* 1152x864@60 */
  646. { 0x45,0x6b, 21}, /* 0x36 */ /* Chrontel SuperOverscan */
  647. { 0x52,0xe2, 49}, /* 0x37 */ /* 16:9 modes */
  648. { 0x2b,0x61, 78}, /* 0x38 */ /* 16:9 modes */
  649. { 0x70,0x44,108}, /* 0x39 */ /* 16:9 modes */
  650. { 0x54,0x42,135}, /* 0x3a */ /* 16:9 modes */
  651. { 0x41,0x22,157}, /* 0x3b */ /* 16:9 modes */
  652. { 0x52,0x07,149}, /* 0x3c */ /* 1280x960-85 */
  653. { 0x62,0xc6, 34}, /* 0x3d */ /* 848x480-60 */
  654. { 0x30,0x23, 88}, /* 0x3e */ /* 1360x768-60 */
  655. { 0x70,0x29, 81}, /* 0x3f */ /* 1280x768-60 */
  656. { 0x72,0x2a, 76}, /* 0x40 */ /* test for SiS730 --- LIMIT for table (&0x3f) */
  657. { 0x15,0x21, 79}, /* 0x41 */ /* test for SiS730 */
  658. { 0xa1,0x42,108}, /* 0x42 */ /* 1280x960 LCD */
  659. { 0x37,0x61,100}, /* 0x43 */ /* 1280x960 LCD */
  660. { 0xe3,0x9a,106}, /* 0x44 */ /* 1360x1024 - special for Barco iQ R300 */
  661. { 0xe2,0x46,135}, /* 0x45 */ /* 1280x1024-75, better clock for VGA2 */
  662. { 0x70,0x29, 81}, /* 0x46 */ /* unused */
  663. { 0, 0, 0}, /* 0x47 custom (will be filled out) */
  664. { 0xce,0x25,189} /* 0x48 */ /* Replacement for index 0x1b for 730 (and 540?) */
  665. };
  666. #ifdef LINUX_KERNEL
  667. static UCHAR SiS300_SR07 = 0x10;
  668. #endif
  669. static const DRAM4Type SiS300_SR15[8] =
  670. {
  671. {0x01,0x09,0xa3,0x00},
  672. {0x43,0x43,0x43,0x00},
  673. {0x1e,0x1e,0x1e,0x00},
  674. {0x2a,0x2a,0x2a,0x00},
  675. {0x06,0x06,0x06,0x00},
  676. {0x00,0x00,0x00,0x00},
  677. {0x00,0x00,0x00,0x00},
  678. {0x00,0x00,0x00,0x00}
  679. };
  680. #ifdef LINUX_KERNEL
  681. static UCHAR SiS300_SR1F = 0x00;
  682. static UCHAR SiS300_SR21 = 0x16;
  683. static UCHAR SiS300_SR22 = 0xb2;
  684. static UCHAR SiS300_SR23 = 0xf6;
  685. static UCHAR SiS300_SR24 = 0x0d;
  686. static UCHAR SiS300_SR25[] = {0x0,0x0};
  687. static UCHAR SiS300_SR31 = 0x00;
  688. static UCHAR SiS300_SR32 = 0x11;
  689. static UCHAR SiS300_SR33 = 0x00;
  690. static UCHAR SiS300_CRT2Data_1_2 = 0x40;
  691. static UCHAR SiS300_CRT2Data_4_D = 0x00;
  692. static UCHAR SiS300_CRT2Data_4_E = 0x00;
  693. static UCHAR SiS300_CRT2Data_4_10 = 0x80;
  694. static const USHORT SiS300_RGBSenseData = 0xd1;
  695. static const USHORT SiS300_VideoSenseData = 0xb3;
  696. static const USHORT SiS300_YCSenseData = 0xb9;
  697. static const USHORT SiS300_RGBSenseData2 = 0x0190;
  698. static const USHORT SiS300_VideoSenseData2 = 0x0174;
  699. static const USHORT SiS300_YCSenseData2 = 0x016b;
  700. static const DRAM4Type SiS300_CR40[5];
  701. static UCHAR SiS300_CR49[2];
  702. #endif
  703. static const SiS_PanelDelayTblStruct SiS300_PanelDelayTbl[] =
  704. {
  705. {{0x05,0xaa}},
  706. {{0x05,0x14}},
  707. {{0x05,0x36}},
  708. {{0x05,0x14}},
  709. {{0x05,0x14}},
  710. {{0x05,0x14}},
  711. {{0x05,0x90}},
  712. {{0x05,0x90}},
  713. {{0x05,0x14}},
  714. {{0x05,0x14}},
  715. {{0x05,0x14}},
  716. {{0x05,0x14}},
  717. {{0x20,0x80}},
  718. {{0x05,0x14}},
  719. {{0x05,0x40}},
  720. {{0x05,0x60}}
  721. };
  722. #if 0
  723. static const SiS_PanelDelayTblStruct SiS300_PanelDelayTblLVDS[] =
  724. {
  725. {{0x05,0xaa}},
  726. {{0x05,0x14}},
  727. {{0x05,0x36}},
  728. {{0x05,0x14}},
  729. {{0x05,0x14}},
  730. {{0x05,0x14}},
  731. {{0x05,0x90}},
  732. {{0x05,0x90}},
  733. {{0x05,0x14}},
  734. {{0x05,0x14}},
  735. {{0x05,0x14}},
  736. {{0x05,0x14}}, /* 2.07a (JVC): 14,96 */
  737. {{0x05,0x28}}, /* 2.04.5c: 20, 80 - Clevo (2.04.2c): 05, 28 */
  738. {{0x05,0x14}},
  739. {{0x05,0x14}}, /* Some BIOSes: 05, 40 */
  740. {{0x05,0x60}}
  741. };
  742. #endif
  743. /**************************************************************/
  744. /* SIS VIDEO BRIDGE ----------------------------------------- */
  745. /**************************************************************/
  746. static const SiS_LCDDataStruct SiS300_St2LCD1024x768Data[] =
  747. {
  748. { 62, 25, 800, 546,1344, 806},
  749. { 32, 15, 930, 546,1344, 806},
  750. { 32, 15, 930, 546,1344, 806},
  751. { 104, 45, 945, 496,1344, 806},
  752. { 62, 25, 800, 546,1344, 806},
  753. { 31, 18,1008, 624,1344, 806},
  754. { 1, 1,1344, 806,1344, 806}
  755. };
  756. static const SiS_LCDDataStruct SiS300_ExtLCD1024x768Data[] =
  757. {
  758. { 12, 5, 896, 512,1344, 806},
  759. { 12, 5, 896, 510,1344, 806},
  760. { 32, 15,1008, 505,1344, 806},
  761. { 32, 15,1008, 514,1344, 806},
  762. { 12, 5, 896, 500,1344, 806},
  763. { 42, 25,1024, 625,1344, 806},
  764. { 1, 1,1344, 806,1344, 806},
  765. { 12, 5, 896, 500,1344, 806},
  766. { 42, 25,1024, 625,1344, 806},
  767. { 1, 1,1344, 806,1344, 806},
  768. { 12, 5, 896, 500,1344, 806},
  769. { 42, 25,1024, 625,1344, 806},
  770. { 1, 1,1344, 806,1344, 806}
  771. };
  772. static const SiS_LCDDataStruct SiS300_St2LCD1280x1024Data[] =
  773. {
  774. { 22, 5, 800, 510,1650,1088},
  775. { 22, 5, 800, 510,1650,1088},
  776. { 176, 45, 900, 510,1650,1088},
  777. { 176, 45, 900, 510,1650,1088},
  778. { 22, 5, 800, 510,1650,1088},
  779. { 13, 5,1024, 675,1560,1152},
  780. { 16, 9,1266, 804,1688,1072},
  781. { 1, 1,1688,1066,1688,1066}
  782. };
  783. static const SiS_LCDDataStruct SiS300_ExtLCD1280x1024Data[] =
  784. {
  785. { 211, 60,1024, 501,1688,1066},
  786. { 211, 60,1024, 508,1688,1066},
  787. { 211, 60,1024, 501,1688,1066},
  788. { 211, 60,1024, 508,1688,1066},
  789. { 211, 60,1024, 500,1688,1066},
  790. { 211, 75,1024, 625,1688,1066},
  791. { 211, 120,1280, 798,1688,1066},
  792. { 1, 1,1688,1066,1688,1066}
  793. };
  794. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_1[] =
  795. { /* VESA Timing */
  796. {{0x21,0x12,0xbf,0xe4,0xc0,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}},
  797. {{0x2c,0x12,0x9a,0xae,0x88,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}},
  798. {{0x21,0x12,0xbf,0xe4,0xc0,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}},
  799. {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
  800. {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}},
  801. {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}},
  802. {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}}
  803. };
  804. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_2[] =
  805. { /* Non-VESA */
  806. {{0x28,0x12,0xa3,0xd0,0xaa,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  807. {{0x2c,0x12,0x9a,0xae,0x88,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  808. {{0x28,0x12,0xa3,0xd0,0xaa,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  809. {{0x2c,0x12,0x9a,0xae,0x88,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  810. {{0x28,0x13,0xe7,0x0b,0xe8,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  811. {{0x38,0x18,0x16,0x00,0x00,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
  812. {{0x36,0x13,0x13,0x25,0xff,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}
  813. };
  814. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_3[] =
  815. {
  816. {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
  817. };
  818. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_1[] =
  819. {
  820. {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
  821. };
  822. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_2[] =
  823. {
  824. {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
  825. };
  826. static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_3[] =
  827. {
  828. {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
  829. };
  830. /**************************************************************/
  831. /* LVDS/Chrontel -------------------------------------------- */
  832. /**************************************************************/
  833. static const SiS_LVDSDataStruct SiS300_CHTVUPALData[] =
  834. {
  835. {1008, 625,1008, 625},
  836. {1008, 625,1008, 625},
  837. {1008, 625,1008, 625},
  838. {1008, 625,1008, 625},
  839. { 840, 750, 840, 750},
  840. { 936, 836, 936, 836}
  841. };
  842. static const SiS_LVDSDataStruct SiS300_CHTVOPALData[] =
  843. {
  844. {1008, 625,1008, 625},
  845. {1008, 625,1008, 625},
  846. {1008, 625,1008, 625},
  847. {1008, 625,1008, 625},
  848. { 840, 625, 840, 625},
  849. { 960, 750, 960, 750}
  850. };
  851. static const SiS_LVDSDataStruct SiS300_CHTVSOPALData[] =
  852. {
  853. {1008, 625,1008, 625},
  854. {1008, 625,1008, 625},
  855. {1008, 625,1008, 625},
  856. {1008, 625,1008, 625},
  857. { 840, 500, 840, 500},
  858. { 944, 625, 944, 625}
  859. };
  860. static const SiS_LVDSDesStruct SiS300_PanelType00_1[] =
  861. {
  862. { 1059, 626 }, /* 2.08 */
  863. { 1059, 624 },
  864. { 1059, 626 },
  865. { 1059, 624 },
  866. { 1059, 624 },
  867. { 0, 627 },
  868. { 0, 627 },
  869. { 0, 0 },
  870. { 0, 0 }
  871. #if 0
  872. {0, 626},
  873. {0, 624},
  874. {0, 626},
  875. {0, 624},
  876. {0, 624},
  877. {0, 627},
  878. {0, 627},
  879. {0, 0},
  880. {0, 0}
  881. #endif
  882. };
  883. static const SiS_LVDSDesStruct SiS300_PanelType01_1[] =
  884. {
  885. { 0, 0 }, /* 2.08 */
  886. { 0, 0 },
  887. { 0, 0 },
  888. { 0, 0 },
  889. { 0, 0 },
  890. { 0, 0 },
  891. { 0, 0 },
  892. { 0, 0 },
  893. { 0, 0 }
  894. #if 0
  895. {1343, 798},
  896. {1343, 794},
  897. {1343, 798},
  898. {1343, 794},
  899. {1343, 0},
  900. {1343, 0},
  901. { 0, 805},
  902. { 0, 794},
  903. { 0, 0}
  904. #endif
  905. };
  906. static const SiS_LVDSDesStruct SiS300_PanelType02_1[] =
  907. {
  908. { 1059, 626 }, /* 2.08 */
  909. { 1059, 624 },
  910. { 1059, 626 },
  911. { 1059, 624 },
  912. { 1059, 624 },
  913. { 0, 627 },
  914. { 0, 627 },
  915. { 0, 0 },
  916. { 0, 0 }
  917. #if 0
  918. {0, 626},
  919. {0, 624},
  920. {0, 626},
  921. {0, 624},
  922. {0, 624},
  923. {0, 627},
  924. {0, 627},
  925. {0, 0},
  926. {0, 0}
  927. #endif
  928. };
  929. static const SiS_LVDSDesStruct SiS300_PanelType03_1[] =
  930. {
  931. { 8, 436},
  932. { 8, 440},
  933. { 8, 436},
  934. { 8, 440},
  935. { 8, 512},
  936. {1343, 798},
  937. {1343, 794},
  938. {1343, 798},
  939. {1343, 794}
  940. };
  941. static const SiS_LVDSDesStruct SiS300_PanelType04_1[] = /* 1280x1024 */
  942. {
  943. {1343, 798},
  944. {1343, 794},
  945. {1343, 798},
  946. {1343, 794},
  947. {1343, 0},
  948. {1343, 0},
  949. { 0, 805},
  950. { 0, 794},
  951. { 0, 0}
  952. };
  953. static const SiS_LVDSDesStruct SiS300_PanelType05_1[] =
  954. {
  955. {1343, 798},
  956. {1343, 794},
  957. {1343, 798},
  958. {1343, 794},
  959. {1343, 0},
  960. {1343, 0},
  961. { 0, 805},
  962. { 0, 794},
  963. { 0, 0}
  964. };
  965. static const SiS_LVDSDesStruct SiS300_PanelType06_1[] = /* Clevo Trumpion 1024x768 */
  966. {
  967. {1343, 798},
  968. {1343, 794},
  969. {1343, 798},
  970. {1343, 794},
  971. {1343, 0},
  972. {1343, 0},
  973. { 0, 805},
  974. { 0, 794},
  975. { 0, 0}
  976. };
  977. static const SiS_LVDSDesStruct SiS300_PanelType07_1[] =
  978. {
  979. {1343, 798},
  980. {1343, 794},
  981. {1343, 798},
  982. {1343, 794},
  983. {1343, 0},
  984. {1343, 0},
  985. { 0, 805},
  986. { 0, 794},
  987. { 0, 0}
  988. };
  989. static const SiS_LVDSDesStruct SiS300_PanelType08_1[] =
  990. {
  991. {1059, 626},
  992. {1059, 624},
  993. {1059, 626},
  994. {1059, 624},
  995. {1059, 624},
  996. { 0, 627},
  997. { 0, 627},
  998. { 0, 0},
  999. { 0, 0}
  1000. };
  1001. static const SiS_LVDSDesStruct SiS300_PanelType09_1[] =
  1002. {
  1003. {1343, 798},
  1004. {1343, 794},
  1005. {1343, 798},
  1006. {1343, 794},
  1007. {1343, 0},
  1008. {1343, 0},
  1009. { 0, 805},
  1010. { 0, 794},
  1011. { 0, 0}
  1012. };
  1013. static const SiS_LVDSDesStruct SiS300_PanelType0a_1[] =
  1014. {
  1015. {1059, 626},
  1016. {1059, 624},
  1017. {1059, 626},
  1018. {1059, 624},
  1019. {1059, 624},
  1020. { 0, 627},
  1021. { 0, 627},
  1022. { 0, 0},
  1023. { 0, 0}
  1024. };
  1025. static const SiS_LVDSDesStruct SiS300_PanelType0b_1[] =
  1026. {
  1027. {1343, 0},
  1028. {1343, 0},
  1029. {1343, 0},
  1030. {1343, 0},
  1031. {1343, 0},
  1032. {1343, 0},
  1033. { 0, 799},
  1034. { 0, 0},
  1035. { 0, 0}
  1036. };
  1037. static const SiS_LVDSDesStruct SiS300_PanelType0c_1[] =
  1038. {
  1039. {1343, 798},
  1040. {1343, 794},
  1041. {1343, 798},
  1042. {1343, 794},
  1043. {1343, 0},
  1044. {1343, 0},
  1045. { 0, 805},
  1046. { 0, 794},
  1047. { 0, 0}
  1048. };
  1049. static const SiS_LVDSDesStruct SiS300_PanelType0d_1[] =
  1050. {
  1051. {1343, 798},
  1052. {1343, 794},
  1053. {1343, 798},
  1054. {1343, 794},
  1055. {1343, 0},
  1056. {1343, 0},
  1057. { 0, 805},
  1058. { 0, 794},
  1059. { 0, 0}
  1060. };
  1061. static const SiS_LVDSDesStruct SiS300_PanelType0e_1[] =
  1062. {
  1063. {1343, 798},
  1064. {1343, 794},
  1065. {1343, 798},
  1066. {1343, 794},
  1067. {1343, 0}, /* 640x480 */
  1068. {1343, 0}, /* 800x600 */
  1069. { 0, 805}, /* 1024x768 */
  1070. { 0, 794}, /* 1280x1024 */
  1071. { 0, 0} /* 1280x960 - not applicable */
  1072. };
  1073. static const SiS_LVDSDesStruct SiS300_PanelType0f_1[] =
  1074. {
  1075. {1343, 798},
  1076. {1343, 794},
  1077. {1343, 798},
  1078. {1343, 794},
  1079. {1343, 0},
  1080. {1343, 0},
  1081. { 0, 805},
  1082. { 0, 794},
  1083. { 0, 0}
  1084. };
  1085. static const SiS_LVDSDesStruct SiS300_PanelType00_2[] =
  1086. {
  1087. {976, 527},
  1088. {976, 502},
  1089. {976, 527},
  1090. {976, 502},
  1091. {976, 567},
  1092. { 0, 627},
  1093. { 0, 627},
  1094. { 0, 0},
  1095. { 0, 0}
  1096. };
  1097. static const SiS_LVDSDesStruct SiS300_PanelType01_2[] =
  1098. {
  1099. {1152, 622},
  1100. {1152, 597},
  1101. {1152, 622},
  1102. {1152, 597},
  1103. {1152, 662},
  1104. {1232, 722},
  1105. { 0, 805},
  1106. { 0, 794},
  1107. { 0, 0}
  1108. };
  1109. static const SiS_LVDSDesStruct SiS300_PanelType02_2[] =
  1110. {
  1111. {976, 527},
  1112. {976, 502},
  1113. {976, 527},
  1114. {976, 502},
  1115. {976, 567},
  1116. { 0, 627},
  1117. { 0, 627},
  1118. { 0, 0},
  1119. { 0, 0}
  1120. };
  1121. static const SiS_LVDSDesStruct SiS300_PanelType03_2[] =
  1122. {
  1123. {1152, 622},
  1124. {1152, 597},
  1125. {1152, 622},
  1126. {1152, 597},
  1127. {1152, 662},
  1128. {1232, 722},
  1129. { 0, 805},
  1130. {1152, 622},
  1131. {1152, 597}
  1132. };
  1133. static const SiS_LVDSDesStruct SiS300_PanelType04_2[] =
  1134. {
  1135. {1152, 622},
  1136. {1152, 597},
  1137. {1152, 622},
  1138. {1152, 597},
  1139. {1152, 662},
  1140. {1232, 722},
  1141. { 0, 805},
  1142. { 0, 794},
  1143. { 0, 0}
  1144. };
  1145. static const SiS_LVDSDesStruct SiS300_PanelType05_2[] =
  1146. {
  1147. {1152, 622},
  1148. {1152, 597},
  1149. {1152, 622},
  1150. {1152, 597},
  1151. {1152, 662},
  1152. {1232, 722},
  1153. { 0, 805},
  1154. { 0, 794},
  1155. { 0, 0}
  1156. };
  1157. static const SiS_LVDSDesStruct SiS300_PanelType06_2[] =
  1158. {
  1159. {1152, 622},
  1160. {1152, 597},
  1161. {1152, 622},
  1162. {1152, 597},
  1163. {1152, 662},
  1164. {1232, 722},
  1165. { 0, 805},
  1166. { 0, 794},
  1167. { 0, 0}
  1168. };
  1169. static const SiS_LVDSDesStruct SiS300_PanelType07_2[] =
  1170. {
  1171. {1152, 622},
  1172. {1152, 597},
  1173. {1152, 622},
  1174. {1152, 597},
  1175. {1152, 662},
  1176. {1232, 722},
  1177. { 0, 805},
  1178. { 0, 794},
  1179. { 0, 0}
  1180. };
  1181. static const SiS_LVDSDesStruct SiS300_PanelType08_2[] =
  1182. {
  1183. {976, 527},
  1184. {976, 502},
  1185. {976, 527},
  1186. {976, 502},
  1187. {976, 567},
  1188. { 0, 627},
  1189. { 0, 627},
  1190. { 0, 0},
  1191. { 0, 0}
  1192. };
  1193. static const SiS_LVDSDesStruct SiS300_PanelType09_2[] =
  1194. {
  1195. {1152, 622},
  1196. {1152, 597},
  1197. {1152, 622},
  1198. {1152, 597},
  1199. {1152, 662},
  1200. {1232, 722},
  1201. { 0, 805},
  1202. { 0, 794},
  1203. { 0, 0}
  1204. };
  1205. static const SiS_LVDSDesStruct SiS300_PanelType0a_2[] =
  1206. {
  1207. {976, 527},
  1208. {976, 502},
  1209. {976, 527},
  1210. {976, 502},
  1211. {976, 567},
  1212. { 0, 627},
  1213. { 0, 627},
  1214. { 0, 0},
  1215. { 0, 0}
  1216. };
  1217. static const SiS_LVDSDesStruct SiS300_PanelType0b_2[] =
  1218. {
  1219. { 1152, 700},
  1220. { 1152, 675},
  1221. { 1152, 700},
  1222. { 1152, 675},
  1223. { 1152, 740},
  1224. { 1232, 799},
  1225. { 0, 799},
  1226. { 0, 0},
  1227. { 0, 0}
  1228. };
  1229. static const SiS_LVDSDesStruct SiS300_PanelType0c_2[] =
  1230. {
  1231. {1152, 622},
  1232. {1152, 597},
  1233. {1152, 622},
  1234. {1152, 597},
  1235. {1152, 662},
  1236. {1232, 722},
  1237. { 0, 805},
  1238. { 0, 794},
  1239. { 0, 0}
  1240. };
  1241. static const SiS_LVDSDesStruct SiS300_PanelType0d_2[] =
  1242. {
  1243. {1152, 622},
  1244. {1152, 597},
  1245. {1152, 622},
  1246. {1152, 597},
  1247. {1152, 662},
  1248. {1232, 722},
  1249. { 0, 805},
  1250. { 0, 794},
  1251. { 0, 0}
  1252. };
  1253. static const SiS_LVDSDesStruct SiS300_PanelType0e_2[] =
  1254. {
  1255. {1152, 622},
  1256. {1152, 597},
  1257. {1152, 622},
  1258. {1152, 597},
  1259. {1152, 662},
  1260. {1232, 722},
  1261. { 0, 805},
  1262. { 0, 794},
  1263. { 0, 0}
  1264. };
  1265. static const SiS_LVDSDesStruct SiS300_PanelType0f_2[] =
  1266. {
  1267. {1152, 622},
  1268. {1152, 597},
  1269. {1152, 622},
  1270. {1152, 597},
  1271. {1152, 662},
  1272. {1232, 722},
  1273. { 0, 805},
  1274. { 0, 794},
  1275. { 0, 0}
  1276. };
  1277. static const SiS_LVDSDesStruct SiS300_PanelTypeNS_1[]=
  1278. {
  1279. { 0, 0},
  1280. { 0, 0},
  1281. { 0, 0},
  1282. { 0, 0},
  1283. { 0, 0},
  1284. { 0, 0},
  1285. { 0, 805},
  1286. { 0, 0},
  1287. { 0, 0},
  1288. { 0, 0}
  1289. };
  1290. static const SiS_LVDSDesStruct SiS300_PanelTypeNS_2[] =
  1291. {
  1292. { 0 , 0},
  1293. { 0 , 0},
  1294. { 0 , 0},
  1295. { 0 , 0},
  1296. { 0 , 0},
  1297. { 0 , 0},
  1298. { 0 , 0},
  1299. { 0 , 0},
  1300. { 0 , 0},
  1301. { 0 , 0}
  1302. };
  1303. /* Custom data for Barco iQ R200/300/400 (BIOS 2.00.07) */
  1304. static const SiS_LVDSDesStruct SiS300_PanelType04_1a[] = /* 1280x1024 (1366x1024) */
  1305. {
  1306. {1330, 798}, /* 320x200 */
  1307. {1330, 794},
  1308. {1330, 798},
  1309. {1330, 794},
  1310. {1330, 0}, /* 640x480 / 320x240 */
  1311. {1343, 0}, /* 800x600 / 400x300 */
  1312. { 0, 805}, /* 1024x768 / 512x384 */
  1313. {1688,1066}, /* 1280x1024 */
  1314. { 0, 0} /* 1360x1024 */
  1315. };
  1316. static const SiS_LVDSDesStruct SiS300_PanelType04_2a[] =
  1317. {
  1318. {1152, 622},
  1319. {1152, 597},
  1320. {1152, 622},
  1321. {1152, 597},
  1322. {1152, 662},
  1323. {1232, 722},
  1324. { 0, 805},
  1325. {1688,1066},
  1326. { 0, 0}
  1327. };
  1328. /* Custom data for Barco iQ G200/300/400 (BIOS 2.00.07) */
  1329. static const SiS_LVDSDesStruct SiS300_PanelType04_1b[] = /* 1024x768 */
  1330. {
  1331. {1330, 798}, /* 320x200 */
  1332. {1330, 794},
  1333. {1330, 798},
  1334. {1330, 794},
  1335. {1330, 0}, /* 640x480 / 320x240 */
  1336. {1343, 0}, /* 800x600 / 400x300 */
  1337. { 0, 805} /* 1024x768 / 512x384 */
  1338. };
  1339. static const SiS_LVDSDesStruct SiS300_PanelType04_2b[] =
  1340. {
  1341. {1152, 622},
  1342. {1152, 597},
  1343. {1152, 622},
  1344. {1152, 597},
  1345. {1152, 662},
  1346. {1232, 722},
  1347. { 0, 805}
  1348. };
  1349. /* CRT1 CRTC for slave modes */
  1350. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_1[] =
  1351. {
  1352. {{0x65,0x4f,0x89,0x56,0x83,0xaf,0x1f,
  1353. 0x90,0x85,0x8f,0xab,0x30,0x00,0x05,
  1354. 0x00 }},
  1355. {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
  1356. 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
  1357. 0x00 }},
  1358. {{0x65,0x4f,0x89,0x56,0x83,0xaf,0x1f,
  1359. 0x90,0x85,0x8f,0xab,0x30,0x00,0x05,
  1360. 0x00 }},
  1361. {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
  1362. 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
  1363. 0x00 }},
  1364. {{0x65,0x4f,0x89,0x56,0x83,0x04,0x3e,
  1365. 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x05,
  1366. 0x00 }},
  1367. {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
  1368. 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
  1369. 0x01 }}
  1370. };
  1371. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_1_H[] =
  1372. {
  1373. {{0x30,0x27,0x94,0x2c,0x92,0xaf,0x1f,
  1374. 0x90,0x85,0x8f,0xab,0x30,0x00,0x04,
  1375. 0x00 }},
  1376. {{0x30,0x27,0x94,0x2c,0x92,0x83,0x1f,
  1377. 0x5e,0x83,0x5d,0x79,0x10,0x00,0x04,
  1378. 0x00 }},
  1379. {{0x30,0x27,0x94,0x2c,0x92,0xaf,0x1f,
  1380. 0x90,0x85,0x8f,0xab,0x30,0x00,0x04,
  1381. 0x00 }},
  1382. {{0x30,0x27,0x94,0x2c,0x92,0x83,0x1f,
  1383. 0x5e,0x83,0x5d,0x79,0x10,0x00,0x04,
  1384. 0x00 }},
  1385. {{0x30,0x27,0x94,0x2c,0x92,0x04,0x3e,
  1386. 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x04,
  1387. 0x00 }},
  1388. {{0x3d,0x31,0x81,0x37,0x1f,0x72,0xf0,
  1389. 0x58,0x8c,0x57,0x73,0x20,0x00,0x05,
  1390. 0x01 }}
  1391. };
  1392. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_1[] =
  1393. {
  1394. {{0x64,0x4f,0x88,0x54,0x9f,0xc4,0x1f,
  1395. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
  1396. 0x00}},
  1397. {{0x64,0x4f,0x88,0x54,0x9f,0x97,0x1f,
  1398. 0x60,0x87,0x5d,0x83,0x10,0x00,0x01,
  1399. 0x00}},
  1400. {{0x64,0x4f,0x88,0x54,0x9f,0xc4,0x1f,
  1401. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
  1402. 0x00}},
  1403. {{0x64,0x4f,0x88,0x54,0x9f,0x97,0x1f,
  1404. 0x60,0x87,0x5d,0x83,0x10,0x00,0x01,
  1405. 0x00}},
  1406. {{0x64,0x4f,0x88,0x54,0x9f,0x04,0x3e,
  1407. 0xe2,0x89,0xdf,0x05,0x00,0x00,0x01,
  1408. 0x00}},
  1409. {{0x7e,0x63,0x82,0x68,0x15,0x7c,0xf0,
  1410. 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x26,
  1411. 0x01}},
  1412. {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5,
  1413. 0x02,0x88,0xff,0x25,0x10,0x00,0x02,
  1414. 0x01}}
  1415. };
  1416. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_1_H[] =
  1417. {
  1418. {{0x2f,0x27,0x93,0x2b,0x90,0xc4,0x1f,
  1419. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44,
  1420. 0x00 }},
  1421. {{0x2f,0x27,0x93,0x2b,0x90,0x97,0x1f,
  1422. 0x60,0x87,0x5D,0x83,0x10,0x00,0x44,
  1423. 0x00}},
  1424. {{0x2f,0x27,0x93,0x2b,0x90,0xc4,0x1f,
  1425. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44,
  1426. 0x00}},
  1427. {{0x2f,0x27,0x93,0x2b,0x90,0x97,0x1f,
  1428. 0x60,0x87,0x5D,0x83,0x10,0x00,0x44,
  1429. 0x00}},
  1430. {{0x2f,0x27,0x93,0x2b,0x90,0x04,0x3e,
  1431. 0xE2,0x89,0xdf,0x05,0x00,0x00,0x44,
  1432. 0x00}},
  1433. {{0x3c,0x31,0x80,0x35,0x1c,0x7c,0xf0,
  1434. 0x5A,0x8F,0x57,0x7D,0x20,0x00,0x55,
  1435. 0x01}},
  1436. {{0x4f,0x3F,0x93,0x45,0x0D,0x24,0xf5,
  1437. 0x02,0x88,0xff,0x25,0x10,0x00,0x01,
  1438. 0x01 }}
  1439. #if 0
  1440. {{0x37,0x27,0x9B,0x2b,0x94,0xc4,0x1f,
  1441. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44,
  1442. 0x00 }},
  1443. {{0x37,0x27,0x9B,0x2b,0x94,0x97,0x1f,
  1444. 0x60,0x87,0x5D,0x83,0x01,0x00,0x44,
  1445. 0x00}},
  1446. {{0x37,0x27,0x9B,0x2b,0x94,0xc4,0x1f,
  1447. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44,
  1448. 0x00}},
  1449. {{0x37,0x27,0x9B,0x2b,0x94,0x97,0x1f,
  1450. 0x60,0x87,0x5D,0x83,0x01,0x00,0x44,
  1451. 0x00}},
  1452. {{0x37,0x27,0x9B,0x2b,0x94,0x04,0x3e,
  1453. 0xE2,0x89,0xDf,0x05,0x00,0x00,0x44,
  1454. 0x00}},
  1455. {{0x41,0x31,0x85,0x35,0x1d,0x7c,0xf0,
  1456. 0x5A,0x8F,0x57,0x7D,0x20,0x00,0x55,
  1457. 0x01}},
  1458. {{0x4f,0x3F,0x93,0x45,0x0D,0x24,0xf5,
  1459. 0x02,0x88,0xFf,0x25,0x10,0x00,0x01,
  1460. 0x01 }}
  1461. #endif
  1462. };
  1463. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_1[] =
  1464. {
  1465. {{0x63,0x4f,0x87,0x54,0x9f,0xb4,0x1f,
  1466. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
  1467. 0x00 }},
  1468. {{0x63,0x4f,0x87,0x54,0x9f,0x82,0x1f,
  1469. 0x60,0x87,0x5d,0x83,0x10,0x00,0x01,
  1470. 0x00 }},
  1471. {{0x63,0x4f,0x87,0x54,0x9f,0xb4,0x1f,
  1472. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
  1473. 0x00 }},
  1474. {{0x63,0x4f,0x87,0x54,0x9f,0x82,0x1f,
  1475. 0x60,0x87,0x5d,0x83,0x10,0x00,0x01,
  1476. 0x00 }},
  1477. {{0x63,0x4f,0x87,0x54,0x9f,0x04,0x3e,
  1478. 0xe2,0x89,0xdf,0x05,0x00,0x00,0x01,
  1479. 0x00 }},
  1480. {{0x7e,0x63,0x82,0x68,0x15,0x7c,0xf0,
  1481. 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x26,
  1482. 0x01 }},
  1483. {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5,
  1484. 0x02,0x88,0xff,0x25,0x10,0x00,0x02,
  1485. 0x01 }}
  1486. };
  1487. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_1_H[] =
  1488. {
  1489. {{0x2f,0x27,0x93,0x2b,0x90,0xb4,0x1f,
  1490. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x04,
  1491. 0x00 }},
  1492. {{0x2f,0x27,0x93,0x2b,0x90,0x82,0x1f,
  1493. 0x60,0x87,0x5d,0x83,0x10,0x00,0x04,
  1494. 0x00 }},
  1495. {{0x2f,0x27,0x93,0x2b,0x90,0xb4,0x1f,
  1496. 0x92,0x89,0x8f,0xb5,0x30,0x00,0x04,
  1497. 0x00 }},
  1498. {{0x2f,0x27,0x93,0x2b,0x90,0x82,0x1f,
  1499. 0x60,0x87,0x5d,0x83,0x10,0x00,0x04,
  1500. 0x00 }},
  1501. {{0x2f,0x27,0x93,0x2b,0x90,0x04,0x3e,
  1502. 0xe2,0x89,0xdf,0x05,0x00,0x00,0x04,
  1503. 0x00 }},
  1504. {{0x3c,0x31,0x80,0x35,0x1c,0x7c,0xf0,
  1505. 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x55,
  1506. 0x01 }},
  1507. {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5,
  1508. 0x02,0x88,0xff,0x25,0x10,0x00,0x01,
  1509. 0x01 }}
  1510. };
  1511. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_2[] =
  1512. {
  1513. {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e,
  1514. 0xf4,0x88,0x8f,0x73,0x20,0x00,0x06,
  1515. 0x00 }},
  1516. {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e,
  1517. 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x06,
  1518. 0x00 }},
  1519. {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e,
  1520. 0xf4,0x88,0x8f,0x73,0x20,0x00,0x06,
  1521. 0x00 }},
  1522. {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e,
  1523. 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x06,
  1524. 0x00 }},
  1525. {{0x7f,0x4f,0x83,0x62,0x12,0x72,0xba,
  1526. 0x1c,0x80,0xdf,0x73,0x00,0x00,0x06,
  1527. 0x00 }},
  1528. {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
  1529. 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
  1530. 0x01 }}
  1531. };
  1532. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_2_H[] =
  1533. {
  1534. {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e,
  1535. 0xf4,0x88,0x8f,0x73,0x20,0x00,0x05,
  1536. 0x00 }},
  1537. {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e,
  1538. 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x05,
  1539. 0x00 }},
  1540. {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e,
  1541. 0xf4,0x88,0x8f,0x73,0x20,0x00,0x05,
  1542. 0x00 }},
  1543. {{0x3d,0x27,0x81,0x3a,0x1a,0x72,0x3e,
  1544. 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x05,
  1545. 0x00 }},
  1546. {{0x3d,0x27,0x81,0x32,0x1a,0x72,0xba,
  1547. 0x1c,0x80,0xdf,0x73,0x00,0x00,0x05,
  1548. 0x00 }},
  1549. {{0x3d,0x31,0x81,0x37,0x1f,0x72,0xf0,
  1550. 0x58,0x8c,0x57,0x73,0x20,0x00,0x05,
  1551. 0x01 }}
  1552. };
  1553. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_2[] =
  1554. {
  1555. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1556. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06,
  1557. 0x00 }},
  1558. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1559. 0x31,0x87,0x5d,0x25,0x30,0x00,0x06,
  1560. 0x00 }},
  1561. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1562. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06,
  1563. 0x00 }},
  1564. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1565. 0x31,0x87,0x5d,0x25,0x30,0x00,0x06,
  1566. 0x00 }},
  1567. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1568. 0x72,0x88,0xdf,0x25,0x30,0x00,0x06,
  1569. 0x00 }},
  1570. {{0xa3,0x63,0x87,0x78,0x89,0x24,0xf1,
  1571. 0xae,0x84,0x57,0x25,0x30,0x00,0x02,
  1572. 0x01 }},
  1573. {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5,
  1574. 0x02,0x88,0xff,0x25,0x10,0x00,0x02,
  1575. 0x01 }}
  1576. };
  1577. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_2_H[] =
  1578. {
  1579. {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb,
  1580. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01,
  1581. 0x00 }},
  1582. {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb,
  1583. 0x31,0x87,0x5d,0x25,0x30,0x00,0x01,
  1584. 0x00 }},
  1585. {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb,
  1586. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01,
  1587. 0x00 }},
  1588. {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb,
  1589. 0x31,0x87,0x5d,0x25,0x30,0x00,0x01,
  1590. 0x00 }},
  1591. {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb,
  1592. 0x72,0x88,0xdf,0x25,0x30,0x00,0x01,
  1593. 0x00 }},
  1594. {{0x4f,0x31,0x93,0x3e,0x06,0x24,0xf1,
  1595. 0xae,0x84,0x57,0x25,0x30,0x00,0x01,
  1596. 0x01 }},
  1597. {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5,
  1598. 0x02,0x88,0xff,0x25,0x10,0x00,0x01,
  1599. 0x01 }}
  1600. };
  1601. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_2[] =
  1602. {
  1603. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1604. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06,
  1605. 0x00 }},
  1606. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1607. 0x31,0x87,0x5d,0x25,0x30,0x00,0x06,
  1608. 0x00 }},
  1609. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1610. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06,
  1611. 0x00 }},
  1612. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1613. 0x31,0x87,0x5d,0x25,0x30,0x00,0x06,
  1614. 0x00 }},
  1615. {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb,
  1616. 0x72,0x88,0xdf,0x25,0x30,0x00,0x06,
  1617. 0x00 }},
  1618. {{0xa3,0x63,0x87,0x78,0x89,0x24,0xf1,
  1619. 0xae,0x84,0x57,0x25,0x30,0x00,0x02,
  1620. 0x01 }},
  1621. {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5,
  1622. 0x02,0x88,0xff,0x25,0x10,0x00,0x02,
  1623. 0x01 }}
  1624. };
  1625. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_2_H[] =
  1626. {
  1627. {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb,
  1628. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01,
  1629. 0x00 }},
  1630. {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb,
  1631. 0x31,0x87,0x5d,0x25,0x30,0x00,0x01,
  1632. 0x00 }},
  1633. {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb,
  1634. 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01,
  1635. 0x00 }},
  1636. {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb,
  1637. 0x31,0x87,0x5d,0x25,0x30,0x00,0x01,
  1638. 0x00 }},
  1639. {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb,
  1640. 0x72,0x88,0xdf,0x25,0x30,0x00,0x01,
  1641. 0x00 }},
  1642. {{0x4f,0x31,0x93,0x3e,0x86,0x24,0xf1,
  1643. 0xae,0x84,0x57,0x25,0x30,0x00,0x01,
  1644. 0x01 }},
  1645. {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5,
  1646. 0x02,0x88,0xff,0x25,0x10,0x00,0x01,
  1647. 0x01}}
  1648. };
  1649. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1XXXxXXX_1[] =
  1650. {
  1651. {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f,
  1652. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05,
  1653. 0x00}},
  1654. {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f,
  1655. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05,
  1656. 0x00}},
  1657. {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f,
  1658. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05,
  1659. 0x00}},
  1660. {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f,
  1661. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05,
  1662. 0x00}},
  1663. {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
  1664. 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x05,
  1665. 0x00}},
  1666. {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
  1667. 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
  1668. 0x01}},
  1669. {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5,
  1670. 0x02,0x88,0xff,0x25,0x10,0x00,0x02,
  1671. 0x01}},
  1672. {{0xce,0x9f,0x92,0xa8,0x14,0x28,0x5a,
  1673. 0x00,0x84,0xff,0x29,0x09,0x00,0x07,
  1674. 0x01}},
  1675. {{0xce,0x9f,0x92,0xa9,0x17,0x24,0xf5,
  1676. 0x02,0x88,0xff,0x25,0x10,0x00,0x07,
  1677. 0x01}}
  1678. };
  1679. static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1XXXxXXX_1_H[] =
  1680. {
  1681. {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f,
  1682. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00,
  1683. 0x00}},
  1684. {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f,
  1685. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00,
  1686. 0x00}},
  1687. {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f,
  1688. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00,
  1689. 0x00}},
  1690. {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f,
  1691. 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00,
  1692. 0x00}},
  1693. {{0x38,0x27,0x9c,0x2c,0x80,0x0b,0x3e,
  1694. 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
  1695. 0x00}},
  1696. {{0x4d,0x31,0x91,0x3b,0x03,0x72,0xf0,
  1697. 0x58,0x8c,0x57,0x73,0x20,0x00,0x01,
  1698. 0x01}},
  1699. {{0x63,0x3f,0x87,0x4a,0x92,0x24,0xf5,
  1700. 0x02,0x88,0xff,0x25,0x10,0x00,0x01,
  1701. 0x01}}
  1702. };
  1703. static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UNTSC[] =
  1704. {
  1705. {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
  1706. 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01,
  1707. 0x00 }},
  1708. {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
  1709. 0xd0,0x82,0x5d,0x57,0x00,0x00,0x01,
  1710. 0x00 }},
  1711. {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
  1712. 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01,
  1713. 0x00 }},
  1714. {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
  1715. 0xd0,0x82,0x5d,0x57,0x00,0x00,0x01,
  1716. 0x00 }},
  1717. {{0x5d,0x4f,0x81,0x53,0x9c,0x56,0xba,
  1718. 0x18,0x84,0xdf,0x57,0x00,0x00,0x01,
  1719. 0x00 }},
  1720. {{0x80,0x63,0x84,0x6c,0x17,0xec,0xf0,
  1721. 0x90,0x8c,0x57,0xed,0x20,0x00,0x06,
  1722. 0x01 }}
  1723. };
  1724. static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1ONTSC[] =
  1725. {
  1726. {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e,
  1727. 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01,
  1728. 0x00 }},
  1729. {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e,
  1730. 0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01,
  1731. 0x00 }},
  1732. {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e,
  1733. 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01,
  1734. 0x00 }},
  1735. {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e,
  1736. 0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01,
  1737. 0x00 }},
  1738. {{0x5d,0x4f,0x81,0x56,0x9c,0x0b,0x3e,
  1739. 0xe8,0x84,0xdf,0x0c,0x00,0x00,0x01,
  1740. 0x00 }},
  1741. {{0x7d,0x63,0x81,0x6a,0x16,0xba,0xf0,
  1742. 0x7f,0x86,0x57,0xbb,0x00,0x00,0x06,
  1743. 0x01 }}
  1744. };
  1745. static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UPAL[] =
  1746. {
  1747. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1748. 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05,
  1749. 0x00 }},
  1750. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1751. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1752. 0x00 }},
  1753. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1754. 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05,
  1755. 0x00 }},
  1756. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1757. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1758. 0x00 }},
  1759. {{0x64,0x4f,0x88,0x55,0x80,0xec,0xba,
  1760. 0x50,0x84,0xdf,0xed,0x00,0x00,0x05,
  1761. 0x00 }},
  1762. {{0x70,0x63,0x94,0x68,0x8d,0x42,0xf1,
  1763. 0xc8,0x8c,0x57,0xe9,0x20,0x00,0x05,
  1764. 0x01 }}
  1765. };
  1766. static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1OPAL[] =
  1767. {
  1768. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1769. 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
  1770. 0x00 }},
  1771. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1772. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1773. 0x00 }},
  1774. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1775. 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
  1776. 0x00 }},
  1777. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1778. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1779. 0x00 }},
  1780. {{0x64,0x4f,0x88,0x55,0x80,0x6f,0xba,
  1781. 0x20,0x83,0xdf,0x70,0x00,0x00,0x05,
  1782. 0x00 }},
  1783. {{0x73,0x63,0x97,0x69,0x8e,0xec,0xf0,
  1784. 0x90,0x8c,0x57,0xed,0x20,0x00,0x05,
  1785. 0x01 }}
  1786. };
  1787. static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1SOPAL[] =
  1788. {
  1789. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1790. 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
  1791. 0x00 }},
  1792. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1793. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1794. 0x00 }},
  1795. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1796. 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
  1797. 0x00 }},
  1798. {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
  1799. 0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
  1800. 0x00 }},
  1801. {{0x64,0x4f,0x88,0x55,0x80,0x6f,0xba, /* TODO */
  1802. 0x20,0x83,0xdf,0x70,0x00,0x00,0x05,
  1803. 0x00 }},
  1804. {{0x73,0x63,0x97,0x69,0x8e,0xec,0xf0, /* TODO */
  1805. 0x90,0x8c,0x57,0xed,0x20,0x00,0x05,
  1806. 0x01 }}
  1807. };
  1808. static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UNTSC[] =
  1809. {
  1810. {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1811. {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1812. {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1813. {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1814. {{0x6a,0x6a,0x00,0x2d,0xfa,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 17: 640x480 NTSC 7/8 */
  1815. {{0x8d,0xc4,0x00,0x3b,0xfb,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 24: 800x600 NTSC 7/10 */
  1816. };
  1817. static const SiS_CHTVRegDataStruct SiS300_CHTVReg_ONTSC[] =
  1818. {
  1819. {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1820. {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1821. {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1822. {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}},
  1823. {{0x69,0x6a,0x00,0x1e,0xfd,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 16: 640x480 NTSC 1/1 */
  1824. {{0x8c,0xb4,0x00,0x32,0xf9,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 23: 800x600 NTSC 3/4 */
  1825. };
  1826. static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UPAL[] =
  1827. {
  1828. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}},
  1829. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1830. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}},
  1831. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1832. {{0x63,0x94,0x01,0x50,0x30,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 15: 640x480 PAL 5/6 */
  1833. {{0x84,0x64,0x01,0x4e,0x2f,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 21: 800x600 PAL 3/4 */
  1834. };
  1835. static const SiS_CHTVRegDataStruct SiS300_CHTVReg_OPAL[] =
  1836. {
  1837. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */
  1838. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1839. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}},
  1840. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1841. {{0x61,0x94,0x01,0x36,0x30,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 14: 640x480 PAL 1/1 */
  1842. {{0x83,0x76,0x01,0x40,0x31,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 20: 800x600 PAL 5/6 */
  1843. };
  1844. static const SiS_CHTVRegDataStruct SiS300_CHTVReg_SOPAL[] =
  1845. {
  1846. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */
  1847. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1848. {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}},
  1849. {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}},
  1850. {{0x60,0x30,0x00,0x10,0x00,0,0,0,0,0,0,0,0,0,0,0}}, /* TW: Mode 13: 640x480 PAL 5/4 */
  1851. {{0x81,0x50,0x00,0x1b,0x00,0,0,0,0,0,0,0,0,0,0,0}} /* TW: Mode 19: 800x600 PAL 1/1 */
  1852. };
  1853. static const UCHAR SiS300_CHTVVCLKUNTSC[] = {0x29,0x29,0x29,0x29,0x2a,0x2e};
  1854. static const UCHAR SiS300_CHTVVCLKONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b};
  1855. static const UCHAR SiS300_CHTVVCLKSONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b};
  1856. static const UCHAR SiS300_CHTVVCLKUPAL[] = {0x2f,0x2f,0x2f,0x2f,0x2f,0x31};
  1857. static const UCHAR SiS300_CHTVVCLKOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x30,0x32};
  1858. static const UCHAR SiS300_CHTVVCLKSOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x36,0x29};