18c2ecf20Sopenharmony_ci/* $XFree86$ */
28c2ecf20Sopenharmony_ci/* $XdotOrg$ */
38c2ecf20Sopenharmony_ci/*
48c2ecf20Sopenharmony_ci * Register settings for SiS 315/330/340 series
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * If distributed as part of the Linux kernel, the following license terms
98c2ecf20Sopenharmony_ci * apply:
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * * This program is free software; you can redistribute it and/or modify
128c2ecf20Sopenharmony_ci * * it under the terms of the GNU General Public License as published by
138c2ecf20Sopenharmony_ci * * the Free Software Foundation; either version 2 of the named License,
148c2ecf20Sopenharmony_ci * * or any later version.
158c2ecf20Sopenharmony_ci * *
168c2ecf20Sopenharmony_ci * * This program is distributed in the hope that it will be useful,
178c2ecf20Sopenharmony_ci * * but WITHOUT ANY WARRANTY; without even the implied warranty of
188c2ecf20Sopenharmony_ci * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
198c2ecf20Sopenharmony_ci * * GNU General Public License for more details.
208c2ecf20Sopenharmony_ci * *
218c2ecf20Sopenharmony_ci * * You should have received a copy of the GNU General Public License
228c2ecf20Sopenharmony_ci * * along with this program; if not, write to the Free Software
238c2ecf20Sopenharmony_ci * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
248c2ecf20Sopenharmony_ci *
258c2ecf20Sopenharmony_ci * Otherwise, the following license terms apply:
268c2ecf20Sopenharmony_ci *
278c2ecf20Sopenharmony_ci * * Redistribution and use in source and binary forms, with or without
288c2ecf20Sopenharmony_ci * * modification, are permitted provided that the following conditions
298c2ecf20Sopenharmony_ci * * are met:
308c2ecf20Sopenharmony_ci * * 1) Redistributions of source code must retain the above copyright
318c2ecf20Sopenharmony_ci * *    notice, this list of conditions and the following disclaimer.
328c2ecf20Sopenharmony_ci * * 2) Redistributions in binary form must reproduce the above copyright
338c2ecf20Sopenharmony_ci * *    notice, this list of conditions and the following disclaimer in the
348c2ecf20Sopenharmony_ci * *    documentation and/or other materials provided with the distribution.
358c2ecf20Sopenharmony_ci * * 3) The name of the author may not be used to endorse or promote products
368c2ecf20Sopenharmony_ci * *    derived from this software without specific prior written permission.
378c2ecf20Sopenharmony_ci * *
388c2ecf20Sopenharmony_ci * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
398c2ecf20Sopenharmony_ci * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
408c2ecf20Sopenharmony_ci * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
418c2ecf20Sopenharmony_ci * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
428c2ecf20Sopenharmony_ci * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
438c2ecf20Sopenharmony_ci * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
448c2ecf20Sopenharmony_ci * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
458c2ecf20Sopenharmony_ci * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
468c2ecf20Sopenharmony_ci * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
478c2ecf20Sopenharmony_ci * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
488c2ecf20Sopenharmony_ci *
498c2ecf20Sopenharmony_ci * Author: 	Thomas Winischhofer <thomas@winischhofer.net>
508c2ecf20Sopenharmony_ci *
518c2ecf20Sopenharmony_ci */
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_cistatic const struct SiS_Ext SiS310_EModeIDTable[] =
548c2ecf20Sopenharmony_ci{
558c2ecf20Sopenharmony_ci	{0x6a,0x2212,0x0102,SIS_RI_800x600,  0x00,0x00,0x07,0x06,0x00, 3}, /* 800x600x? */
568c2ecf20Sopenharmony_ci	{0x2e,0x0a1b,0x0101,SIS_RI_640x480,  0x00,0x00,0x05,0x05,0x08, 2}, /* 640x480x8 */
578c2ecf20Sopenharmony_ci	{0x2f,0x0a1b,0x0100,SIS_RI_640x400,  0x00,0x00,0x05,0x05,0x10, 0}, /* 640x400x8 */
588c2ecf20Sopenharmony_ci	{0x30,0x2a1b,0x0103,SIS_RI_800x600,  0x00,0x00,0x07,0x06,0x00, 3}, /* 800x600x8 */
598c2ecf20Sopenharmony_ci	{0x31,0x4a1b,0x0000,SIS_RI_720x480,  0x00,0x00,0x06,0x06,0x11,-1}, /* 720x480x8 */
608c2ecf20Sopenharmony_ci	{0x32,0x4a1b,0x0000,SIS_RI_720x576,  0x00,0x00,0x06,0x06,0x12,-1}, /* 720x576x8 */
618c2ecf20Sopenharmony_ci	{0x33,0x4a1d,0x0000,SIS_RI_720x480,  0x00,0x00,0x06,0x06,0x11,-1}, /* 720x480x16 */
628c2ecf20Sopenharmony_ci	{0x34,0x6a1d,0x0000,SIS_RI_720x576,  0x00,0x00,0x06,0x06,0x12,-1}, /* 720x576x16 */
638c2ecf20Sopenharmony_ci	{0x35,0x4a1f,0x0000,SIS_RI_720x480,  0x00,0x00,0x06,0x06,0x11,-1}, /* 720x480x32 */
648c2ecf20Sopenharmony_ci	{0x36,0x6a1f,0x0000,SIS_RI_720x576,  0x00,0x00,0x06,0x06,0x12,-1}, /* 720x576x32 */
658c2ecf20Sopenharmony_ci	{0x37,0x0212,0x0104,SIS_RI_1024x768, 0x00,0x00,0x08,0x07,0x13, 4}, /* 1024x768x? */
668c2ecf20Sopenharmony_ci	{0x38,0x0a1b,0x0105,SIS_RI_1024x768, 0x00,0x00,0x08,0x07,0x13, 4}, /* 1024x768x8 */
678c2ecf20Sopenharmony_ci	{0x3a,0x0e3b,0x0107,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a, 8}, /* 1280x1024x8 */
688c2ecf20Sopenharmony_ci	{0x3c,0x0e3b,0x0130,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,10}, /* 1600x1200x8 */
698c2ecf20Sopenharmony_ci	{0x3d,0x0e7d,0x0131,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,10}, /* 1600x1200x16 */
708c2ecf20Sopenharmony_ci	{0x40,0x9a1c,0x010d,SIS_RI_320x200,  0x00,0x00,0x04,0x04,0x25, 0}, /* 320x200x15 */
718c2ecf20Sopenharmony_ci	{0x41,0x9a1d,0x010e,SIS_RI_320x200,  0x00,0x00,0x04,0x04,0x25, 0}, /* 320x200x16 */
728c2ecf20Sopenharmony_ci	{0x43,0x0a1c,0x0110,SIS_RI_640x480,  0x00,0x00,0x05,0x05,0x08, 2},
738c2ecf20Sopenharmony_ci	{0x44,0x0a1d,0x0111,SIS_RI_640x480,  0x00,0x00,0x05,0x05,0x08, 2}, /* 640x480x16 */
748c2ecf20Sopenharmony_ci	{0x46,0x2a1c,0x0113,SIS_RI_800x600,  0x00,0x00,0x07,0x06,0x00, 3},
758c2ecf20Sopenharmony_ci	{0x47,0x2a1d,0x0114,SIS_RI_800x600,  0x00,0x00,0x07,0x06,0x00, 3}, /* 800x600x16 */
768c2ecf20Sopenharmony_ci	{0x49,0x0a3c,0x0116,SIS_RI_1024x768, 0x00,0x00,0x00,0x07,0x13, 4},
778c2ecf20Sopenharmony_ci	{0x4a,0x0a3d,0x0117,SIS_RI_1024x768, 0x00,0x00,0x08,0x07,0x13, 4}, /* 1024x768x16 */
788c2ecf20Sopenharmony_ci	{0x4c,0x0e7c,0x0119,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a, 8},
798c2ecf20Sopenharmony_ci	{0x4d,0x0e7d,0x011a,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a, 8}, /* 1280x1024x16 */
808c2ecf20Sopenharmony_ci	{0x50,0x9a1b,0x0132,SIS_RI_320x240,  0x00,0x00,0x04,0x04,0x26, 2}, /* 320x240x8  */
818c2ecf20Sopenharmony_ci	{0x51,0xba1b,0x0133,SIS_RI_400x300,  0x00,0x00,0x07,0x07,0x27, 3}, /* 400x300x8  */
828c2ecf20Sopenharmony_ci	{0x52,0xba1b,0x0134,SIS_RI_512x384,  0x00,0x00,0x00,0x00,0x28, 4}, /* 512x384x8  */
838c2ecf20Sopenharmony_ci	{0x56,0x9a1d,0x0135,SIS_RI_320x240,  0x00,0x00,0x04,0x04,0x26, 2}, /* 320x240x16 */
848c2ecf20Sopenharmony_ci	{0x57,0xba1d,0x0136,SIS_RI_400x300,  0x00,0x00,0x07,0x07,0x27, 3}, /* 400x300x16 */
858c2ecf20Sopenharmony_ci	{0x58,0xba1d,0x0137,SIS_RI_512x384,  0x00,0x00,0x00,0x00,0x28, 4}, /* 512x384x16 */
868c2ecf20Sopenharmony_ci	{0x59,0x9a1b,0x0138,SIS_RI_320x200,  0x00,0x00,0x04,0x04,0x25, 0}, /* 320x200x8  */
878c2ecf20Sopenharmony_ci	{0x5a,0x021b,0x0138,SIS_RI_320x240,  0x00,0x00,0x00,0x00,0x3f, 2}, /* 320x240x8  fstn */
888c2ecf20Sopenharmony_ci	{0x5b,0x0a1d,0x0135,SIS_RI_320x240,  0x00,0x00,0x00,0x00,0x3f, 2}, /* 320x240x16 fstn */
898c2ecf20Sopenharmony_ci	{0x5c,0xba1f,0x0000,SIS_RI_512x384,  0x00,0x00,0x00,0x00,0x28, 4}, /* 512x384x32 */
908c2ecf20Sopenharmony_ci	{0x5d,0x0a1d,0x0139,SIS_RI_640x400,  0x00,0x00,0x05,0x07,0x10, 0},
918c2ecf20Sopenharmony_ci	{0x5e,0x0a1f,0x0000,SIS_RI_640x400,  0x00,0x00,0x05,0x07,0x10, 0}, /* 640x400x32 */
928c2ecf20Sopenharmony_ci	{0x62,0x0a3f,0x013a,SIS_RI_640x480,  0x00,0x00,0x05,0x05,0x08, 2}, /* 640x480x32 */
938c2ecf20Sopenharmony_ci	{0x63,0x2a3f,0x013b,SIS_RI_800x600,  0x00,0x00,0x07,0x06,0x00, 3}, /* 800x600x32 */
948c2ecf20Sopenharmony_ci	{0x64,0x0a7f,0x013c,SIS_RI_1024x768, 0x00,0x00,0x08,0x07,0x13, 4}, /* 1024x768x32 */
958c2ecf20Sopenharmony_ci	{0x65,0x0eff,0x013d,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a, 8}, /* 1280x1024x32 */
968c2ecf20Sopenharmony_ci	{0x66,0x0eff,0x013e,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,10}, /* 1600x1200x32 */
978c2ecf20Sopenharmony_ci	{0x68,0x067b,0x013f,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x29,-1}, /* 1920x1440x8 */
988c2ecf20Sopenharmony_ci	{0x69,0x06fd,0x0140,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x29,-1}, /* 1920x1440x16 */
998c2ecf20Sopenharmony_ci	{0x6b,0x07ff,0x0141,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x29,-1}, /* 1920x1440x32 */
1008c2ecf20Sopenharmony_ci	{0x6c,0x067b,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x2f,-1}, /* 2048x1536x8 */
1018c2ecf20Sopenharmony_ci	{0x6d,0x06fd,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x2f,-1}, /* 2048x1536x16 */
1028c2ecf20Sopenharmony_ci	{0x6e,0x07ff,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x2f,-1}, /* 2048x1536x32 */
1038c2ecf20Sopenharmony_ci	{0x70,0x6a1b,0x0000,SIS_RI_800x480,  0x00,0x00,0x07,0x07,0x34,-1}, /* 800x480x8 */
1048c2ecf20Sopenharmony_ci	{0x71,0x4a1b,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x37,-1}, /* 1024x576x8 */
1058c2ecf20Sopenharmony_ci	{0x74,0x4a1d,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x37,-1}, /* 1024x576x16 */
1068c2ecf20Sopenharmony_ci	{0x75,0x0a3d,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x3a, 5}, /* 1280x720x16 */
1078c2ecf20Sopenharmony_ci	{0x76,0x6a1f,0x0000,SIS_RI_800x480,  0x00,0x00,0x07,0x07,0x34,-1}, /* 800x480x32 */
1088c2ecf20Sopenharmony_ci	{0x77,0x4a1f,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x37,-1}, /* 1024x576x32 */
1098c2ecf20Sopenharmony_ci	{0x78,0x0a3f,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x3a, 5}, /* 1280x720x32 */
1108c2ecf20Sopenharmony_ci	{0x79,0x0a3b,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x3a, 5}, /* 1280x720x8 */
1118c2ecf20Sopenharmony_ci	{0x7a,0x6a1d,0x0000,SIS_RI_800x480,  0x00,0x00,0x07,0x07,0x34,-1}, /* 800x480x16 */
1128c2ecf20Sopenharmony_ci	{0x7c,0x0e3b,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x3d,-1}, /* 1280x960x8 */
1138c2ecf20Sopenharmony_ci	{0x7d,0x0e7d,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x3d,-1}, /* 1280x960x16 */
1148c2ecf20Sopenharmony_ci	{0x7e,0x0eff,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x3d,-1}, /* 1280x960x32 */
1158c2ecf20Sopenharmony_ci	{0x23,0x0e3b,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x40, 6}, /* 1280x768x8 */
1168c2ecf20Sopenharmony_ci	{0x24,0x0e7d,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x40, 6}, /* 1280x768x16 */
1178c2ecf20Sopenharmony_ci	{0x25,0x0eff,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x40, 6}, /* 1280x768x32 */
1188c2ecf20Sopenharmony_ci	{0x26,0x0e3b,0x0000,SIS_RI_1400x1050,0x00,0x00,0x00,0x00,0x43, 9}, /* 1400x1050x8 */
1198c2ecf20Sopenharmony_ci	{0x27,0x0e7d,0x0000,SIS_RI_1400x1050,0x00,0x00,0x00,0x00,0x43, 9}, /* 1400x1050x16 */
1208c2ecf20Sopenharmony_ci	{0x28,0x0eff,0x0000,SIS_RI_1400x1050,0x00,0x00,0x00,0x00,0x43, 9}, /* 1400x1050x32*/
1218c2ecf20Sopenharmony_ci	{0x29,0x4e1b,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x45,-1}, /* 1152x864 */
1228c2ecf20Sopenharmony_ci	{0x2a,0x4e3d,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x45,-1},
1238c2ecf20Sopenharmony_ci	{0x2b,0x4e7f,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x45,-1},
1248c2ecf20Sopenharmony_ci	{0x39,0x6a1b,0x0000,SIS_RI_848x480,  0x00,0x00,0x00,0x00,0x48,-1}, /* 848x480 */
1258c2ecf20Sopenharmony_ci	{0x3b,0x6a3d,0x0000,SIS_RI_848x480,  0x00,0x00,0x00,0x00,0x48,-1},
1268c2ecf20Sopenharmony_ci	{0x3e,0x6a7f,0x0000,SIS_RI_848x480,  0x00,0x00,0x00,0x00,0x48,-1},
1278c2ecf20Sopenharmony_ci	{0x3f,0x6a1b,0x0000,SIS_RI_856x480,  0x00,0x00,0x00,0x00,0x4a,-1}, /* 856x480 */
1288c2ecf20Sopenharmony_ci	{0x42,0x6a3d,0x0000,SIS_RI_856x480,  0x00,0x00,0x00,0x00,0x4a,-1},
1298c2ecf20Sopenharmony_ci	{0x45,0x6a7f,0x0000,SIS_RI_856x480,  0x00,0x00,0x00,0x00,0x4a,-1},
1308c2ecf20Sopenharmony_ci	{0x48,0x6a3b,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x4c,-1}, /* 1360x768 */
1318c2ecf20Sopenharmony_ci	{0x4b,0x6a7d,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x4c,-1},
1328c2ecf20Sopenharmony_ci	{0x4e,0x6aff,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x4c,-1},
1338c2ecf20Sopenharmony_ci	{0x4f,0x9a1f,0x0000,SIS_RI_320x200,  0x00,0x00,0x04,0x04,0x25, 0}, /* 320x200x32 */
1348c2ecf20Sopenharmony_ci	{0x53,0x9a1f,0x0000,SIS_RI_320x240,  0x00,0x00,0x04,0x04,0x26, 2}, /* 320x240x32 */
1358c2ecf20Sopenharmony_ci	{0x54,0xba1f,0x0000,SIS_RI_400x300,  0x00,0x00,0x07,0x07,0x27, 3}, /* 400x300x32 */
1368c2ecf20Sopenharmony_ci	{0x5f,0x6a1b,0x0000,SIS_RI_768x576,  0x00,0x00,0x06,0x06,0x4d,-1}, /* 768x576 */
1378c2ecf20Sopenharmony_ci	{0x60,0x6a1d,0x0000,SIS_RI_768x576,  0x00,0x00,0x06,0x06,0x4d,-1},
1388c2ecf20Sopenharmony_ci	{0x61,0x6a3f,0x0000,SIS_RI_768x576,  0x00,0x00,0x06,0x06,0x4d,-1},
1398c2ecf20Sopenharmony_ci	{0x14,0x0e3b,0x0000,SIS_RI_1280x800, 0x00,0x00,0x00,0x00,0x4e, 7}, /* 1280x800 */
1408c2ecf20Sopenharmony_ci	{0x15,0x0e7d,0x0000,SIS_RI_1280x800, 0x00,0x00,0x00,0x00,0x4e, 7},
1418c2ecf20Sopenharmony_ci	{0x16,0x0eff,0x0000,SIS_RI_1280x800, 0x00,0x00,0x00,0x00,0x4e, 7},
1428c2ecf20Sopenharmony_ci	{0x17,0x0e3b,0x0000,SIS_RI_1680x1050,0x00,0x00,0x00,0x00,0x51, 9}, /* 1680x1050 */
1438c2ecf20Sopenharmony_ci	{0x18,0x0e7d,0x0000,SIS_RI_1680x1050,0x00,0x00,0x00,0x00,0x51, 9},
1448c2ecf20Sopenharmony_ci	{0x19,0x0eff,0x0000,SIS_RI_1680x1050,0x00,0x00,0x00,0x00,0x51, 9},
1458c2ecf20Sopenharmony_ci	{0x2c,0x267b,0x0000,SIS_RI_1920x1080,0x00,0x00,0x00,0x00,0x52,-1}, /* 1920x1080(i) */
1468c2ecf20Sopenharmony_ci	{0x2d,0x26fd,0x0000,SIS_RI_1920x1080,0x00,0x00,0x00,0x00,0x52,-1},
1478c2ecf20Sopenharmony_ci	{0x73,0x27ff,0x0000,SIS_RI_1920x1080,0x00,0x00,0x00,0x00,0x52,-1},
1488c2ecf20Sopenharmony_ci	{0x1d,0x6a1b,0x0000,SIS_RI_960x540,  0x00,0x00,0x00,0x00,0x53,-1}, /* 960x540 */
1498c2ecf20Sopenharmony_ci	{0x1e,0x6a3d,0x0000,SIS_RI_960x540,  0x00,0x00,0x00,0x00,0x53,-1},
1508c2ecf20Sopenharmony_ci	{0x1f,0x6a7f,0x0000,SIS_RI_960x540,  0x00,0x00,0x00,0x00,0x53,-1},
1518c2ecf20Sopenharmony_ci	{0x20,0x6a1b,0x0000,SIS_RI_960x600,  0x00,0x00,0x00,0x00,0x54,-1}, /* 960x600 */
1528c2ecf20Sopenharmony_ci	{0x21,0x6a3d,0x0000,SIS_RI_960x600,  0x00,0x00,0x00,0x00,0x54,-1},
1538c2ecf20Sopenharmony_ci	{0x22,0x6a7f,0x0000,SIS_RI_960x600,  0x00,0x00,0x00,0x00,0x54,-1},
1548c2ecf20Sopenharmony_ci	{0x1a,0x0e3b,0x0000,SIS_RI_1280x854, 0x00,0x00,0x00,0x00,0x55, 8}, /* 1280x854 */
1558c2ecf20Sopenharmony_ci	{0x1b,0x0e7d,0x0000,SIS_RI_1280x854, 0x00,0x00,0x00,0x00,0x55, 8},
1568c2ecf20Sopenharmony_ci	{0x1c,0x0eff,0x0000,SIS_RI_1280x854, 0x00,0x00,0x00,0x00,0x55, 8},
1578c2ecf20Sopenharmony_ci	{0xff,0x0000,0x0000,0,               0x00,0x00,0x00,0x00,0x00,-1}
1588c2ecf20Sopenharmony_ci};
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_cistatic const struct SiS_Ext2 SiS310_RefIndex[] =
1618c2ecf20Sopenharmony_ci{
1628c2ecf20Sopenharmony_ci	{0x085f,0x0d,0x03,0x05,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x0 */
1638c2ecf20Sopenharmony_ci	{0x0067,0x0e,0x04,0x05,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1 */
1648c2ecf20Sopenharmony_ci	{0x0067,0x0f,0x08,0x48,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2 */
1658c2ecf20Sopenharmony_ci	{0x0067,0x10,0x07,0x8b,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x3 */
1668c2ecf20Sopenharmony_ci	{0x0047,0x11,0x0a,0x00,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x4 */
1678c2ecf20Sopenharmony_ci	{0x0047,0x12,0x0d,0x00,0x05,0x6a, 800, 600, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x5 */
1688c2ecf20Sopenharmony_ci	{0x0047,0x13,0x13,0x00,0x05,0x6a, 800, 600, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x6 */
1698c2ecf20Sopenharmony_ci	{0x0107,0x14,0x1c,0x00,0x05,0x6a, 800, 600, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x7 */
1708c2ecf20Sopenharmony_ci	{0xc85f,0x05,0x00,0x04,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x8 */
1718c2ecf20Sopenharmony_ci	{0xc067,0x06,0x02,0x04,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x9 */
1728c2ecf20Sopenharmony_ci	{0xc067,0x07,0x02,0x47,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xa */
1738c2ecf20Sopenharmony_ci	{0xc067,0x08,0x03,0x8a,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xb */
1748c2ecf20Sopenharmony_ci	{0xc047,0x09,0x05,0x00,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xc */
1758c2ecf20Sopenharmony_ci	{0xc047,0x0a,0x09,0x00,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xd */
1768c2ecf20Sopenharmony_ci	{0xc047,0x0b,0x0e,0x00,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xe */
1778c2ecf20Sopenharmony_ci	{0xc047,0x0c,0x15,0x00,0x04,0x2e, 640, 480, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0xf */
1788c2ecf20Sopenharmony_ci	{0x487f,0x04,0x00,0x00,0x00,0x2f, 640, 400, 0x30, 0x55, 0x6e, 0x00, 0x00, 0x00, 0x00}, /* 0x10 */
1798c2ecf20Sopenharmony_ci	{0xc06f,0x3c,0x01,0x06,0x13,0x31, 720, 480, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x11 */
1808c2ecf20Sopenharmony_ci	{0x006f,0x3d,0x6f,0x06,0x14,0x32, 720, 576, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x12 (6f was 03) */
1818c2ecf20Sopenharmony_ci	{0x0087,0x15,0x06,0x00,0x06,0x37,1024, 768, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x13 */
1828c2ecf20Sopenharmony_ci	{0xc877,0x16,0x0b,0x06,0x06,0x37,1024, 768, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x14 */
1838c2ecf20Sopenharmony_ci	{0xc067,0x17,0x0f,0x49,0x06,0x37,1024, 768, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x15 */
1848c2ecf20Sopenharmony_ci	{0x0067,0x18,0x11,0x00,0x06,0x37,1024, 768, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x16 */
1858c2ecf20Sopenharmony_ci	{0x0047,0x19,0x16,0x8c,0x06,0x37,1024, 768, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x17 */
1868c2ecf20Sopenharmony_ci	{0x0107,0x1a,0x1b,0x00,0x06,0x37,1024, 768, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x18 */
1878c2ecf20Sopenharmony_ci	{0x0107,0x1b,0x1f,0x00,0x06,0x37,1024, 768, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x19 */
1888c2ecf20Sopenharmony_ci	{0x0087,0x1c,0x11,0x00,0x07,0x3a,1280,1024, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1a */
1898c2ecf20Sopenharmony_ci	{0x0137,0x1d,0x19,0x07,0x07,0x3a,1280,1024, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1b */
1908c2ecf20Sopenharmony_ci	{0x0107,0x1e,0x1e,0x00,0x07,0x3a,1280,1024, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1c */
1918c2ecf20Sopenharmony_ci	{0x0207,0x1f,0x20,0x00,0x07,0x3a,1280,1024, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1d */
1928c2ecf20Sopenharmony_ci	{0x0227,0x20,0x21,0x09,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1e */
1938c2ecf20Sopenharmony_ci	{0x0407,0x21,0x22,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x1f */
1948c2ecf20Sopenharmony_ci	{0x0407,0x22,0x23,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x20 */
1958c2ecf20Sopenharmony_ci	{0x0407,0x23,0x25,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x21 */
1968c2ecf20Sopenharmony_ci	{0x0007,0x24,0x26,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x22 */
1978c2ecf20Sopenharmony_ci	{0x0007,0x25,0x2c,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x23 */
1988c2ecf20Sopenharmony_ci	{0x0007,0x26,0x34,0x00,0x09,0x3c,1600,1200, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x24 */
1998c2ecf20Sopenharmony_ci	{0x407f,0x00,0x00,0x00,0x00,0x40, 320, 200, 0x30, 0x56, 0x4e, 0x00, 0x00, 0x00, 0x00}, /* 0x25 */
2008c2ecf20Sopenharmony_ci	{0xc07f,0x01,0x00,0x04,0x04,0x50, 320, 240, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x26 */
2018c2ecf20Sopenharmony_ci	{0x007f,0x02,0x04,0x05,0x05,0x51, 400, 300, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x27 */
2028c2ecf20Sopenharmony_ci	{0xc077,0x03,0x0b,0x06,0x06,0x52, 512, 384, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x28 */
2038c2ecf20Sopenharmony_ci	{0x8007,0x27,0x27,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x29 */
2048c2ecf20Sopenharmony_ci	{0x4007,0x28,0x29,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2a */
2058c2ecf20Sopenharmony_ci	{0x4007,0x29,0x2e,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2b */
2068c2ecf20Sopenharmony_ci	{0x4007,0x2a,0x30,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2c */
2078c2ecf20Sopenharmony_ci	{0x4007,0x2b,0x35,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2d */
2088c2ecf20Sopenharmony_ci	{0x4005,0x2c,0x39,0x00,0x00,0x68,1920,1440, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2e */
2098c2ecf20Sopenharmony_ci	{0x4007,0x2d,0x2b,0x00,0x00,0x6c,2048,1536, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x2f */
2108c2ecf20Sopenharmony_ci	{0x4007,0x2e,0x31,0x00,0x00,0x6c,2048,1536, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x30 */
2118c2ecf20Sopenharmony_ci	{0x4007,0x2f,0x33,0x00,0x00,0x6c,2048,1536, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x31 */
2128c2ecf20Sopenharmony_ci	{0x4007,0x30,0x37,0x00,0x00,0x6c,2048,1536, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x32 */
2138c2ecf20Sopenharmony_ci	{0x4005,0x31,0x38,0x00,0x00,0x6c,2048,1536, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x33 */
2148c2ecf20Sopenharmony_ci	{0x2077,0x32,0x40,0x08,0x18,0x70, 800, 480, 0x30, 0x00, 0x00, 0x32, 0x40, 0x5e, 0x73}, /* 0x34 */
2158c2ecf20Sopenharmony_ci	{0x2047,0x33,0x07,0x08,0x18,0x70, 800, 480, 0x30, 0x00, 0x00, 0x33, 0x07, 0xff, 0xff}, /* 0x35 */
2168c2ecf20Sopenharmony_ci	{0x2047,0x34,0x0a,0x08,0x18,0x70, 800, 480, 0x30, 0x00, 0x00, 0x34, 0x0a, 0xff, 0xff}, /* 0x36 */
2178c2ecf20Sopenharmony_ci	{0x2077,0x35,0x0b,0x09,0x19,0x71,1024, 576, 0x30, 0x00, 0x00, 0x35, 0x0b, 0x5f, 0x74}, /* 0x37 */
2188c2ecf20Sopenharmony_ci	{0x2047,0x36,0x11,0x09,0x19,0x71,1024, 576, 0x30, 0x00, 0x00, 0x36, 0x11, 0xff, 0xff}, /* 0x38 */
2198c2ecf20Sopenharmony_ci	{0x2047,0x37,0x16,0x09,0x19,0x71,1024, 576, 0x30, 0x00, 0x00, 0x37, 0x16, 0xff, 0xff}, /* 0x39 */
2208c2ecf20Sopenharmony_ci	{0x3137,0x38,0x19,0x0a,0x0c,0x75,1280, 720, 0x30, 0x00, 0x00, 0x38, 0x19, 0x60, 0x75}, /* 0x3a */
2218c2ecf20Sopenharmony_ci	{0x3107,0x39,0x1e,0x0a,0x0c,0x75,1280, 720, 0x30, 0x00, 0x00, 0x39, 0x1e, 0xff, 0xff}, /* 0x3b */
2228c2ecf20Sopenharmony_ci	{0x3307,0x3a,0x20,0x0a,0x0c,0x75,1280, 720, 0x30, 0x00, 0x00, 0x3a, 0x20, 0xff, 0xff}, /* 0x3c */
2238c2ecf20Sopenharmony_ci	{0x0127,0x3b,0x19,0x08,0x0a,0x7c,1280, 960, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x3d */
2248c2ecf20Sopenharmony_ci	{0x0227,0x4c,0x59,0x08,0x0a,0x7c,1280, 960, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x3e */
2258c2ecf20Sopenharmony_ci	{0xc07f,0x4e,0x00,0x06,0x04,0x5a, 320, 240, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x3f */    /* FSTN 320x240 */
2268c2ecf20Sopenharmony_ci	{0x2077,0x42,0x5b,0x08,0x11,0x23,1280, 768, 0x30, 0x00, 0x00, 0x58, 0x19, 0x42, 0x5b}, /* 0x40 */    /* 0x5b was 0x12 */
2278c2ecf20Sopenharmony_ci	{0x2077,0x42,0x5b,0x08,0x11,0x23,1280, 768, 0x30, 0x00, 0x00, 0x59, 0x1e, 0xff, 0xff}, /* 0x41 */
2288c2ecf20Sopenharmony_ci	{0x2077,0x42,0x5b,0x08,0x11,0x23,1280, 768, 0x30, 0x00, 0x00, 0x5a, 0x20, 0xff, 0xff}, /* 0x42 */
2298c2ecf20Sopenharmony_ci	{0x0127,0x43,0x4d,0x08,0x0b,0x26,1400,1050, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x43 */
2308c2ecf20Sopenharmony_ci	{0x0207,0x4b,0x5a,0x08,0x0b,0x26,1400,1050, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x44 1400x1050-75Hz */
2318c2ecf20Sopenharmony_ci	{0x0127,0x54,0x6d,0x00,0x1a,0x29,1152, 864, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x45 1152x864-60Hz  */
2328c2ecf20Sopenharmony_ci	{0x0127,0x44,0x19,0x00,0x1a,0x29,1152, 864, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x46 1152x864-75Hz  */
2338c2ecf20Sopenharmony_ci	{0x0127,0x4a,0x1e,0x00,0x1a,0x29,1152, 864, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x47 1152x864-85Hz  */
2348c2ecf20Sopenharmony_ci	{0x0087,0x45,0x57,0x00,0x16,0x39, 848, 480, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x48 848x480-38Hzi  */
2358c2ecf20Sopenharmony_ci	{0xc067,0x46,0x55,0x0b,0x16,0x39, 848, 480, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x49 848x480-60Hz   */
2368c2ecf20Sopenharmony_ci	{0x0087,0x47,0x57,0x00,0x17,0x3f, 856, 480, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x4a 856x480-38Hzi  */
2378c2ecf20Sopenharmony_ci	{0xc067,0x48,0x57,0x00,0x17,0x3f, 856, 480, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x4b 856x480-60Hz   */
2388c2ecf20Sopenharmony_ci	{0x0067,0x49,0x58,0x0c,0x1b,0x48,1360, 768, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x4c 1360x768-60Hz  */
2398c2ecf20Sopenharmony_ci	{0x006f,0x4d,0x71,0x06,0x15,0x5f, 768, 576, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x4d 768x576-56Hz   */
2408c2ecf20Sopenharmony_ci	{0x2067,0x4f,0x5c,0x08,0x0d,0x14,1280, 800, 0x30, 0x00, 0x00, 0x5b, 0x19, 0x4f, 0x5c}, /* 0x4e 1280x800-60Hz  */
2418c2ecf20Sopenharmony_ci	{0x2067,0x4f,0x5c,0x08,0x0d,0x14,1280, 800, 0x30, 0x00, 0x00, 0x5c, 0x1e, 0xff, 0xff}, /* 0x4f 1280x800-75Hz  */
2428c2ecf20Sopenharmony_ci	{0x2067,0x4f,0x5c,0x08,0x0d,0x14,1280, 800, 0x30, 0x00, 0x00, 0x5d, 0x20, 0xff, 0xff}, /* 0x50 1280x800-85Hz  */
2438c2ecf20Sopenharmony_ci	{0x0067,0x50,0x5d,0x0c,0x0e,0x17,1680,1050, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x51 1680x1050-60Hz */
2448c2ecf20Sopenharmony_ci	{0x0087,0x51,0x69,0x00,0x00,0x2c,1920,1080, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x52 1920x1080 60Hzi */
2458c2ecf20Sopenharmony_ci	{0x0067,0x52,0x6a,0x00,0x1c,0x1d, 960, 540, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x53 960x540 60Hz */
2468c2ecf20Sopenharmony_ci	{0x0077,0x53,0x6b,0x0b,0x1d,0x20, 960, 600, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* 0x54 960x600 60Hz */
2478c2ecf20Sopenharmony_ci	{0x2067,0x61,0x76,0x0d,0x22,0x1a,1280, 854, 0x30, 0x00, 0x00, 0x62, 0x19, 0x61, 0x76}, /* 0x55 1280x854-60Hz  */
2488c2ecf20Sopenharmony_ci	{0x2067,0x61,0x76,0x0d,0x22,0x1a,1280, 854, 0x30, 0x00, 0x00, 0x63, 0x1e, 0xff, 0xff}, /* 0x56 1280x854-75Hz  */
2498c2ecf20Sopenharmony_ci	{0x2067,0x61,0x76,0x0d,0x22,0x1a,1280, 854, 0x30, 0x00, 0x00, 0x64, 0x20, 0xff, 0xff}, /* 0x57 1280x854-85Hz  */
2508c2ecf20Sopenharmony_ci	{0xffff,0x00,0x00,0x00,0x00,0x00,   0,   0,    0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
2518c2ecf20Sopenharmony_ci};
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_cistatic const struct SiS_CRT1Table SiS310_CRT1Table[] =
2548c2ecf20Sopenharmony_ci{
2558c2ecf20Sopenharmony_ci {{0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f,
2568c2ecf20Sopenharmony_ci   0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x00,
2578c2ecf20Sopenharmony_ci   0x00}},  /* 0x0 */
2588c2ecf20Sopenharmony_ci {{0x2d,0x27,0x28,0x90,0x2c,0x80,0x0b,0x3e,
2598c2ecf20Sopenharmony_ci   0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x00,
2608c2ecf20Sopenharmony_ci   0x00}},  /* 0x1 */
2618c2ecf20Sopenharmony_ci {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0,
2628c2ecf20Sopenharmony_ci   0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05,
2638c2ecf20Sopenharmony_ci   0x01}},  /* 0x2 */
2648c2ecf20Sopenharmony_ci {{0x4f,0x3f,0x3f,0x93,0x45,0x0d,0x24,0xf5,
2658c2ecf20Sopenharmony_ci   0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x01,
2668c2ecf20Sopenharmony_ci   0x01}},  /* 0x3 */
2678c2ecf20Sopenharmony_ci {{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
2688c2ecf20Sopenharmony_ci   0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x05,
2698c2ecf20Sopenharmony_ci   0x00}},  /* 0x4 */
2708c2ecf20Sopenharmony_ci {{0x5f,0x4f,0x4f,0x83,0x55,0x81,0x0b,0x3e,    /* corrected 640x480-60 */
2718c2ecf20Sopenharmony_ci   0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05,
2728c2ecf20Sopenharmony_ci   0x00}},  /* 0x5 */
2738c2ecf20Sopenharmony_ci {{0x63,0x4f,0x4f,0x87,0x56,0x9b,0x06,0x3e,    /* corrected 640x480-72 */
2748c2ecf20Sopenharmony_ci   0xe8,0x8a,0xdf,0xe7,0x07,0x00,0x00,0x01,
2758c2ecf20Sopenharmony_ci   0x00}},  /* 0x6 */
2768c2ecf20Sopenharmony_ci {{0x64,0x4f,0x4f,0x88,0x55,0x9d,0xf2,0x1f,
2778c2ecf20Sopenharmony_ci   0xe0,0x83,0xdf,0xdf,0xf3,0x10,0x00,0x01,
2788c2ecf20Sopenharmony_ci   0x00}},  /* 0x7 */
2798c2ecf20Sopenharmony_ci {{0x63,0x4f,0x4f,0x87,0x5a,0x81,0xfb,0x1f,
2808c2ecf20Sopenharmony_ci   0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05,
2818c2ecf20Sopenharmony_ci   0x00}},  /* 0x8 */
2828c2ecf20Sopenharmony_ci {{0x65,0x4f,0x4f,0x89,0x58,0x80,0xfb,0x1f,
2838c2ecf20Sopenharmony_ci   0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05,  /* Corrected VBE */
2848c2ecf20Sopenharmony_ci   0x61}},  /* 0x9 */
2858c2ecf20Sopenharmony_ci {{0x65,0x4f,0x4f,0x89,0x58,0x80,0x01,0x3e,
2868c2ecf20Sopenharmony_ci   0xe0,0x83,0xdf,0xdf,0x02,0x00,0x00,0x05,
2878c2ecf20Sopenharmony_ci   0x61}},  /* 0xa */
2888c2ecf20Sopenharmony_ci {{0x67,0x4f,0x4f,0x8b,0x58,0x81,0x0d,0x3e,
2898c2ecf20Sopenharmony_ci   0xe0,0x83,0xdf,0xdf,0x0e,0x00,0x00,0x05,  /* Corrected VBE */
2908c2ecf20Sopenharmony_ci   0x61}},  /* 0xb */
2918c2ecf20Sopenharmony_ci {{0x65,0x4f,0x4f,0x89,0x57,0x9f,0xfb,0x1f,
2928c2ecf20Sopenharmony_ci   0xe6,0x8a,0xdf,0xdf,0xfc,0x10,0x00,0x01,  /* Corrected VDE, VBE */
2938c2ecf20Sopenharmony_ci   0x00}},  /* 0xc */
2948c2ecf20Sopenharmony_ci {{0x7b,0x63,0x63,0x9f,0x6a,0x93,0x6f,0xf0,
2958c2ecf20Sopenharmony_ci   0x58,0x8a,0x57,0x57,0x70,0x20,0x00,0x05,
2968c2ecf20Sopenharmony_ci   0x01}},  /* 0xd */
2978c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xf0,
2988c2ecf20Sopenharmony_ci   0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x06,
2998c2ecf20Sopenharmony_ci   0x01}},  /* 0xe */
3008c2ecf20Sopenharmony_ci {{0x7d,0x63,0x63,0x81,0x6e,0x1d,0x98,0xf0,
3018c2ecf20Sopenharmony_ci   0x7c,0x82,0x57,0x57,0x99,0x00,0x00,0x06,
3028c2ecf20Sopenharmony_ci   0x01}},  /* 0xf */
3038c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xf0,
3048c2ecf20Sopenharmony_ci   0x58,0x8b,0x57,0x57,0x70,0x20,0x00,0x06,
3058c2ecf20Sopenharmony_ci   0x01}},  /* 0x10 */
3068c2ecf20Sopenharmony_ci {{0x7e,0x63,0x63,0x82,0x6b,0x13,0x75,0xf0,
3078c2ecf20Sopenharmony_ci   0x58,0x8b,0x57,0x57,0x76,0x20,0x00,0x06,
3088c2ecf20Sopenharmony_ci   0x01}},  /* 0x11 */
3098c2ecf20Sopenharmony_ci {{0x81,0x63,0x63,0x85,0x6d,0x18,0x7a,0xf0,
3108c2ecf20Sopenharmony_ci   0x58,0x8b,0x57,0x57,0x7b,0x20,0x00,0x06,
3118c2ecf20Sopenharmony_ci   0x61}},  /* 0x12 */
3128c2ecf20Sopenharmony_ci {{0x83,0x63,0x63,0x87,0x6e,0x19,0x81,0xf0,
3138c2ecf20Sopenharmony_ci   0x58,0x8b,0x57,0x57,0x82,0x20,0x00,0x06,
3148c2ecf20Sopenharmony_ci   0x61}},  /* 0x13 */
3158c2ecf20Sopenharmony_ci {{0x85,0x63,0x63,0x89,0x6f,0x1a,0x91,0xf0,
3168c2ecf20Sopenharmony_ci   0x58,0x8b,0x57,0x57,0x92,0x20,0x00,0x06,
3178c2ecf20Sopenharmony_ci   0x61}},  /* 0x14 */
3188c2ecf20Sopenharmony_ci {{0x99,0x7f,0x7f,0x9d,0x84,0x1a,0x96,0x1f,
3198c2ecf20Sopenharmony_ci   0x7f,0x83,0x7f,0x7f,0x97,0x10,0x00,0x02,
3208c2ecf20Sopenharmony_ci   0x00}},  /* 0x15 */
3218c2ecf20Sopenharmony_ci {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf5,
3228c2ecf20Sopenharmony_ci   0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
3238c2ecf20Sopenharmony_ci   0x01}},  /* 0x16 */
3248c2ecf20Sopenharmony_ci {{0xa1,0x7f,0x7f,0x85,0x86,0x97,0x24,0xf5,
3258c2ecf20Sopenharmony_ci   0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
3268c2ecf20Sopenharmony_ci   0x01}},  /* 0x17 */
3278c2ecf20Sopenharmony_ci {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf5,
3288c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x1f,0x10,0x00,0x02,
3298c2ecf20Sopenharmony_ci   0x01}},  /* 0x18 */
3308c2ecf20Sopenharmony_ci {{0xa7,0x7f,0x7f,0x8b,0x89,0x95,0x26,0xf5,
3318c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x27,0x10,0x00,0x02,
3328c2ecf20Sopenharmony_ci   0x01}},  /* 0x19 */
3338c2ecf20Sopenharmony_ci {{0xa9,0x7f,0x7f,0x8d,0x8c,0x9a,0x2c,0xf5,
3348c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x2d,0x14,0x00,0x02,
3358c2ecf20Sopenharmony_ci   0x62}},  /* 0x1a */
3368c2ecf20Sopenharmony_ci {{0xab,0x7f,0x7f,0x8f,0x8d,0x9b,0x35,0xf5,
3378c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x36,0x14,0x00,0x02,
3388c2ecf20Sopenharmony_ci   0x62}},  /* 0x1b */
3398c2ecf20Sopenharmony_ci {{0xcf,0x9f,0x9f,0x93,0xb2,0x01,0x14,0xba,
3408c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x15,0x00,0x00,0x03,
3418c2ecf20Sopenharmony_ci   0x00}},  /* 0x1c */
3428c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0x5a,
3438c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07,
3448c2ecf20Sopenharmony_ci   0x01}},  /* 0x1d */
3458c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0x5a,
3468c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07,
3478c2ecf20Sopenharmony_ci   0x01}},  /* 0x1e */
3488c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0x5a,
3498c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x2f,0x09,0x00,0x07,
3508c2ecf20Sopenharmony_ci   0x01}},  /* 0x1f */
3518c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3528c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3538c2ecf20Sopenharmony_ci   0x00}},  /* 0x20 */
3548c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3558c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3568c2ecf20Sopenharmony_ci   0x00}},  /* 0x21 */
3578c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3588c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3598c2ecf20Sopenharmony_ci   0x00}},  /* 0x22 */
3608c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3618c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3628c2ecf20Sopenharmony_ci   0x00}},  /* 0x23 */
3638c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3648c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3658c2ecf20Sopenharmony_ci   0x00}},  /* 0x24 */
3668c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3678c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3688c2ecf20Sopenharmony_ci   0x00}},  /* 0x25 */
3698c2ecf20Sopenharmony_ci {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10,
3708c2ecf20Sopenharmony_ci   0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04,
3718c2ecf20Sopenharmony_ci   0x00}},  /* 0x26 */
3728c2ecf20Sopenharmony_ci {{0x40,0xef,0xef,0x84,0x03,0x1d,0xda,0x1f,
3738c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xdb,0x1f,0x41,0x01,
3748c2ecf20Sopenharmony_ci   0x00}},  /* 0x27 */
3758c2ecf20Sopenharmony_ci {{0x43,0xef,0xef,0x87,0x06,0x00,0xd4,0x1f,
3768c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xd5,0x1f,0x41,0x05,
3778c2ecf20Sopenharmony_ci   0x63}},  /* 0x28 */
3788c2ecf20Sopenharmony_ci {{0x45,0xef,0xef,0x89,0x07,0x01,0xd9,0x1f,
3798c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xda,0x1f,0x41,0x05,
3808c2ecf20Sopenharmony_ci   0x63}},  /* 0x29 */
3818c2ecf20Sopenharmony_ci {{0x40,0xef,0xef,0x84,0x03,0x1d,0xda,0x1f,
3828c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xdb,0x1f,0x41,0x01,
3838c2ecf20Sopenharmony_ci   0x00}},  /* 0x2a */
3848c2ecf20Sopenharmony_ci {{0x40,0xef,0xef,0x84,0x03,0x1d,0xda,0x1f,
3858c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xdb,0x1f,0x41,0x01,
3868c2ecf20Sopenharmony_ci   0x00}},  /* 0x2b */
3878c2ecf20Sopenharmony_ci {{0x40,0xef,0xef,0x84,0x03,0x1d,0xda,0x1f,
3888c2ecf20Sopenharmony_ci   0xa0,0x83,0x9f,0x9f,0xdb,0x1f,0x41,0x01,
3898c2ecf20Sopenharmony_ci   0x00}},  /* 0x2c */
3908c2ecf20Sopenharmony_ci {{0x59,0xff,0xff,0x9d,0x17,0x13,0x33,0xba,
3918c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x34,0x0f,0x41,0x05,
3928c2ecf20Sopenharmony_ci   0x44}},  /* 0x2d */
3938c2ecf20Sopenharmony_ci {{0x5b,0xff,0xff,0x9f,0x18,0x14,0x38,0xba,
3948c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x39,0x0f,0x41,0x05,
3958c2ecf20Sopenharmony_ci   0x44}},  /* 0x2e */
3968c2ecf20Sopenharmony_ci {{0x5b,0xff,0xff,0x9f,0x18,0x14,0x3d,0xba,
3978c2ecf20Sopenharmony_ci   0x00,0x83,0xff,0xff,0x3e,0x0f,0x41,0x05,
3988c2ecf20Sopenharmony_ci   0x44}},  /* 0x2f */
3998c2ecf20Sopenharmony_ci {{0x5d,0xff,0xff,0x81,0x19,0x95,0x41,0xba,
4008c2ecf20Sopenharmony_ci   0x00,0x84,0xff,0xff,0x42,0x0f,0x41,0x05,
4018c2ecf20Sopenharmony_ci   0x44}},  /* 0x30 */
4028c2ecf20Sopenharmony_ci {{0x55,0xff,0xff,0x99,0x0d,0x0c,0x3e,0xba,
4038c2ecf20Sopenharmony_ci   0x00,0x84,0xff,0xff,0x3f,0x0f,0x41,0x05,
4048c2ecf20Sopenharmony_ci   0x00}},  /* 0x31 */
4058c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xba,
4068c2ecf20Sopenharmony_ci   0x27,0x8b,0xdf,0xdf,0x73,0x00,0x00,0x06,
4078c2ecf20Sopenharmony_ci   0x01}},  /* 0x32 */
4088c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xba,
4098c2ecf20Sopenharmony_ci   0x26,0x89,0xdf,0xdf,0x6f,0x00,0x00,0x06,
4108c2ecf20Sopenharmony_ci   0x01}},  /* 0x33 */
4118c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x82,0x6b,0x13,0x75,0xba,
4128c2ecf20Sopenharmony_ci   0x29,0x8c,0xdf,0xdf,0x75,0x00,0x00,0x06,
4138c2ecf20Sopenharmony_ci   0x01}},  /* 0x34 */
4148c2ecf20Sopenharmony_ci {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf1,
4158c2ecf20Sopenharmony_ci   0xaf,0x85,0x3f,0x3f,0x25,0x30,0x00,0x02,
4168c2ecf20Sopenharmony_ci   0x01}},  /* 0x35 */
4178c2ecf20Sopenharmony_ci {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf1,
4188c2ecf20Sopenharmony_ci   0xad,0x81,0x3f,0x3f,0x1f,0x30,0x00,0x02,
4198c2ecf20Sopenharmony_ci   0x01}},  /* 0x36 */
4208c2ecf20Sopenharmony_ci {{0xa7,0x7f,0x7f,0x88,0x89,0x95,0x26,0xf1,   /* 95 was 15 - illegal HBE! */
4218c2ecf20Sopenharmony_ci   0xb1,0x85,0x3f,0x3f,0x27,0x30,0x00,0x02,
4228c2ecf20Sopenharmony_ci   0x01}},  /* 0x37 */
4238c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xc4,
4248c2ecf20Sopenharmony_ci   0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
4258c2ecf20Sopenharmony_ci   0x01}},  /* 0x38 */
4268c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xd4,
4278c2ecf20Sopenharmony_ci   0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07,
4288c2ecf20Sopenharmony_ci   0x01}},  /* 0x39 */
4298c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xd4,
4308c2ecf20Sopenharmony_ci   0x7d,0x81,0xcf,0xcf,0x2f,0x21,0x00,0x07,
4318c2ecf20Sopenharmony_ci   0x01}},  /* 0x3a */
4328c2ecf20Sopenharmony_ci {{0xdc,0x9f,0x9f,0x80,0xaf,0x9d,0xe6,0xff,	/* 1280x960-60 - corrected */
4338c2ecf20Sopenharmony_ci   0xc0,0x83,0xbf,0xbf,0xe7,0x10,0x00,0x07,
4348c2ecf20Sopenharmony_ci   0x01}},  /* 0x3b */
4358c2ecf20Sopenharmony_ci {{0x6b,0x59,0x59,0x8f,0x5e,0x8c,0x0b,0x3e,
4368c2ecf20Sopenharmony_ci   0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05,
4378c2ecf20Sopenharmony_ci   0x00}},  /* 0x3c */
4388c2ecf20Sopenharmony_ci {{0x6d,0x59,0x59,0x91,0x60,0x89,0x53,0xf0,	/* 720x576, corrected to 60Hz */
4398c2ecf20Sopenharmony_ci   0x41,0x84,0x3f,0x3f,0x54,0x00,0x00,0x05,
4408c2ecf20Sopenharmony_ci   0x41}},  /* 0x3d */
4418c2ecf20Sopenharmony_ci {{0x86,0x6a,0x6a,0x8a,0x74,0x06,0x8c,0x15,
4428c2ecf20Sopenharmony_ci   0x4f,0x83,0xef,0xef,0x8d,0x30,0x00,0x02,
4438c2ecf20Sopenharmony_ci   0x00}},  /* 0x3e */
4448c2ecf20Sopenharmony_ci {{0x81,0x6a,0x6a,0x85,0x70,0x00,0x0f,0x3e,
4458c2ecf20Sopenharmony_ci   0xeb,0x8e,0xdf,0xdf,0x10,0x00,0x00,0x02,
4468c2ecf20Sopenharmony_ci   0x00}},  /* 0x3f */
4478c2ecf20Sopenharmony_ci {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x1e,0xf1,
4488c2ecf20Sopenharmony_ci   0xae,0x85,0x57,0x57,0x1f,0x30,0x00,0x02,
4498c2ecf20Sopenharmony_ci   0x01}},  /* 0x40 */
4508c2ecf20Sopenharmony_ci {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf5,
4518c2ecf20Sopenharmony_ci   0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02,
4528c2ecf20Sopenharmony_ci   0x01}},  /* 0x41 */
4538c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x20,0xf5,
4548c2ecf20Sopenharmony_ci   0x03,0x88,0xff,0xff,0x21,0x10,0x00,0x07,
4558c2ecf20Sopenharmony_ci   0x01}},  /* 0x42 */
4568c2ecf20Sopenharmony_ci {{0xe6,0xae,0xae,0x8a,0xbd,0x90,0x3d,0x10,
4578c2ecf20Sopenharmony_ci   0x1a,0x8d,0x19,0x19,0x3e,0x2f,0x00,0x03,
4588c2ecf20Sopenharmony_ci   0x00}},  /* 0x43 */
4598c2ecf20Sopenharmony_ci {{0xc3,0x8f,0x8f,0x87,0x9b,0x0b,0x82,0xef, /* 1152x864-75 */
4608c2ecf20Sopenharmony_ci   0x60,0x83,0x5f,0x5f,0x83,0x10,0x00,0x07,
4618c2ecf20Sopenharmony_ci   0x01}},  /* 0x44 */
4628c2ecf20Sopenharmony_ci {{0x86,0x69,0x69,0x8A,0x74,0x06,0x8C,0x15, /* 848x480-38i */
4638c2ecf20Sopenharmony_ci   0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02,
4648c2ecf20Sopenharmony_ci   0x00}},  /* 0x45 */
4658c2ecf20Sopenharmony_ci {{0x83,0x69,0x69,0x87,0x6f,0x1d,0x03,0x3E, /* 848x480-60 */
4668c2ecf20Sopenharmony_ci   0xE5,0x8d,0xDF,0xe4,0x04,0x00,0x00,0x06,
4678c2ecf20Sopenharmony_ci   0x00}},  /* 0x46 */
4688c2ecf20Sopenharmony_ci {{0x86,0x6A,0x6A,0x8A,0x74,0x06,0x8C,0x15, /* 856x480-38i */
4698c2ecf20Sopenharmony_ci   0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02,
4708c2ecf20Sopenharmony_ci   0x00}},  /* 0x47 */
4718c2ecf20Sopenharmony_ci {{0x81,0x6A,0x6A,0x85,0x70,0x00,0x0F,0x3E, /* 856x480-60 */
4728c2ecf20Sopenharmony_ci   0xEB,0x8E,0xDF,0xDF,0x10,0x00,0x00,0x02,
4738c2ecf20Sopenharmony_ci   0x00}},  /* 0x48 */
4748c2ecf20Sopenharmony_ci {{0xdd,0xa9,0xa9,0x81,0xb4,0x97,0x26,0xfd, /* 1360x768-60 */
4758c2ecf20Sopenharmony_ci   0x01,0x8d,0xff,0x00,0x27,0x10,0x00,0x03,
4768c2ecf20Sopenharmony_ci   0x01}},  /* 0x49 */
4778c2ecf20Sopenharmony_ci {{0xd9,0x8f,0x8f,0x9d,0xba,0x0a,0x8a,0xff, /* 1152x864-84  */
4788c2ecf20Sopenharmony_ci   0x60,0x8b,0x5f,0x5f,0x8b,0x10,0x00,0x03,
4798c2ecf20Sopenharmony_ci   0x01}},  /* 0x4a */
4808c2ecf20Sopenharmony_ci {{0xea,0xae,0xae,0x8e,0xba,0x82,0x40,0x10, /* 1400x1050-75  */
4818c2ecf20Sopenharmony_ci   0x1b,0x87,0x19,0x1a,0x41,0x0f,0x00,0x03,
4828c2ecf20Sopenharmony_ci   0x00}},  /* 0x4b */
4838c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0xf1,0xff, /* 1280x960-85 */
4848c2ecf20Sopenharmony_ci   0xc0,0x83,0xbf,0xbf,0xf2,0x10,0x00,0x07,
4858c2ecf20Sopenharmony_ci   0x01}},  /* 0x4c */
4868c2ecf20Sopenharmony_ci {{0x75,0x5f,0x5f,0x99,0x66,0x90,0x53,0xf0, /* 768x576, corrected to 60Hz */
4878c2ecf20Sopenharmony_ci   0x41,0x84,0x3f,0x3f,0x54,0x00,0x00,0x05,
4888c2ecf20Sopenharmony_ci   0x41}},  /* 0x4d */
4898c2ecf20Sopenharmony_ci {{0x5f,0x27,0x4f,0x83,0x55,0x81,0x0b,0x3e, /* FSTN 320x240 (working) */
4908c2ecf20Sopenharmony_ci   0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05,
4918c2ecf20Sopenharmony_ci   0x00}},  /* 0x4e */
4928c2ecf20Sopenharmony_ci {{0xcd,0x9f,0x9f,0x91,0xab,0x1c,0x3a,0xff, /* 1280x800-60 */
4938c2ecf20Sopenharmony_ci   0x20,0x83,0x1f,0x1f,0x3b,0x10,0x00,0x07,
4948c2ecf20Sopenharmony_ci   0x21}},  /* 0x4f */
4958c2ecf20Sopenharmony_ci {{0x15,0xd1,0xd1,0x99,0xe2,0x19,0x3d,0x10, /* 1680x1050-60 */
4968c2ecf20Sopenharmony_ci   0x1a,0x8d,0x19,0x19,0x3e,0x2f,0x01,0x0c,
4978c2ecf20Sopenharmony_ci   0x20}},  /* 0x50 */
4988c2ecf20Sopenharmony_ci {{0x0e,0xef,0xef,0x92,0xfe,0x03,0x30,0xf0, /* 1920x1080-60i */
4998c2ecf20Sopenharmony_ci   0x1e,0x83,0x1b,0x1c,0x31,0x00,0x01,0x00,
5008c2ecf20Sopenharmony_ci   0x61}},  /* 0x51 */
5018c2ecf20Sopenharmony_ci {{0x85,0x77,0x77,0x89,0x7d,0x01,0x31,0xf0, /* 960x540-60 */
5028c2ecf20Sopenharmony_ci   0x1e,0x84,0x1b,0x1c,0x32,0x00,0x00,0x02,
5038c2ecf20Sopenharmony_ci   0x41}},  /* 0x52 */
5048c2ecf20Sopenharmony_ci {{0x87,0x77,0x77,0x8b,0x81,0x0b,0x68,0xf0, /* 960x600-60 */
5058c2ecf20Sopenharmony_ci   0x5a,0x80,0x57,0x57,0x69,0x00,0x00,0x02,
5068c2ecf20Sopenharmony_ci   0x01}},  /* 0x53 */
5078c2ecf20Sopenharmony_ci {{0xcd,0x8f,0x8f,0x91,0x9b,0x1b,0x7a,0xff, /* 1152x864-60 */
5088c2ecf20Sopenharmony_ci   0x64,0x8c,0x5f,0x62,0x7b,0x10,0x00,0x07,
5098c2ecf20Sopenharmony_ci   0x41}},  /* 0x54 */
5108c2ecf20Sopenharmony_ci {{0x5c,0x4f,0x4f,0x80,0x57,0x80,0xa3,0x1f, /* fake 640x400@60Hz (for LCD and TV, not actually used) */
5118c2ecf20Sopenharmony_ci   0x98,0x8c,0x8f,0x96,0xa4,0x30,0x00,0x05,
5128c2ecf20Sopenharmony_ci   0x40}},  /* 0x55 */
5138c2ecf20Sopenharmony_ci {{0x2c,0x27,0x27,0x90,0x2d,0x92,0xa4,0x1f, /* fake 320x200@60Hz (for LCD and TV, not actually used) */
5148c2ecf20Sopenharmony_ci   0x98,0x8c,0x8f,0x96,0xa5,0x30,0x00,0x04,
5158c2ecf20Sopenharmony_ci   0x00}},  /* 0x56 */
5168c2ecf20Sopenharmony_ci {{0xd7,0xc7,0xc7,0x9b,0xd1,0x15,0xd1,0x10, /* 1600x1200 for LCDA */
5178c2ecf20Sopenharmony_ci   0xb2,0x86,0xaf,0xb0,0xd2,0x2f,0x00,0x03,
5188c2ecf20Sopenharmony_ci   0x00}},  /* 0x57 */
5198c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xdc, /* 1280x768 (1280x1024) 60 Hz */
5208c2ecf20Sopenharmony_ci   0x92,0x86,0xff,0x91,0x29,0x21,0x00,0x07,
5218c2ecf20Sopenharmony_ci   0x01}},  /* 0x58 */
5228c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xdc, /* 1280x768 (1280x1024) 75 Hz */
5238c2ecf20Sopenharmony_ci   0x92,0x86,0xff,0x91,0x29,0x21,0x00,0x07,
5248c2ecf20Sopenharmony_ci   0x01}},  /* 0x59 */
5258c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xdc, /* 1280x768 (1280x1024) 85 Hz */
5268c2ecf20Sopenharmony_ci   0x95,0x89,0xff,0x94,0x2f,0x21,0x00,0x07,
5278c2ecf20Sopenharmony_ci   0x01}},  /* 0x5a */
5288c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xde, /* 1280x800 (1280x1024) 60 Hz */
5298c2ecf20Sopenharmony_ci   0xa2,0x86,0x1f,0xa1,0x29,0x01,0x00,0x07,
5308c2ecf20Sopenharmony_ci   0x01}},  /* 0x5b */
5318c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xde, /* 1280x800 (1280x1024) 75 Hz */
5328c2ecf20Sopenharmony_ci   0xa2,0x86,0x1f,0xa1,0x29,0x01,0x00,0x07,
5338c2ecf20Sopenharmony_ci   0x01}},  /* 0x5c */
5348c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xde, /* 1280x800 (1280x1024) 85 Hz */
5358c2ecf20Sopenharmony_ci   0xa5,0x89,0x1f,0xa4,0x2f,0x01,0x00,0x07,
5368c2ecf20Sopenharmony_ci   0x01}},  /* 0x5d */
5378c2ecf20Sopenharmony_ci {{0x7f,0x63,0x63,0x83,0x6d,0x1d,0x0b,0x3e, /* 800x480 (wide) 60 Hz */
5388c2ecf20Sopenharmony_ci   0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x06,
5398c2ecf20Sopenharmony_ci   0x00}},  /* 0x5e */
5408c2ecf20Sopenharmony_ci {{0xa0,0x7f,0x7f,0x84,0x85,0x97,0x52,0xf0, /* 1024x576 (wide) 60 Hz */
5418c2ecf20Sopenharmony_ci   0x41,0x85,0x3f,0x40,0x53,0x00,0x00,0x02,
5428c2ecf20Sopenharmony_ci   0x01}},  /* 0x5f */
5438c2ecf20Sopenharmony_ci {{0xc9,0x9f,0x9f,0x8d,0xb0,0x15,0xec,0xf0, /* 1280x720 (wide) 60 Hz */
5448c2ecf20Sopenharmony_ci   0xd4,0x89,0xcf,0xd3,0xed,0x20,0x00,0x07,
5458c2ecf20Sopenharmony_ci   0x01}},  /* 0x60 */
5468c2ecf20Sopenharmony_ci {{0xcb,0x9f,0x9f,0x8f,0xa5,0x13,0x5b,0xff, /* 1280x854-60 wide */
5478c2ecf20Sopenharmony_ci   0x56,0x89,0x55,0x55,0x5c,0x30,0x00,0x07,
5488c2ecf20Sopenharmony_ci   0x01}},  /* 0x61 */
5498c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xde, /* 1280x854 (1280x1024) 60 Hz */
5508c2ecf20Sopenharmony_ci   0xbd,0x81,0x55,0xbc,0x29,0x01,0x00,0x07,
5518c2ecf20Sopenharmony_ci   0x41}},  /* 0x62 */
5528c2ecf20Sopenharmony_ci {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xde, /* 1280x854 (1280x1024) 75 Hz */
5538c2ecf20Sopenharmony_ci   0xbd,0x81,0x55,0xbc,0x29,0x01,0x00,0x07,
5548c2ecf20Sopenharmony_ci   0x41}},  /* 0x63 */
5558c2ecf20Sopenharmony_ci {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xde, /* 1280x854 (1280x1024) 85 Hz */
5568c2ecf20Sopenharmony_ci   0xc0,0x84,0x55,0xbf,0x2f,0x01,0x00,0x07,
5578c2ecf20Sopenharmony_ci   0x41}}   /* 0x64 */
5588c2ecf20Sopenharmony_ci};
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_315[] =
5618c2ecf20Sopenharmony_ci{
5628c2ecf20Sopenharmony_ci	{ 0x3b,0x22,0x01,143},
5638c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5648c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5658c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5668c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5678c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5688c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5698c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166}
5708c2ecf20Sopenharmony_ci};
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_650[] =
5738c2ecf20Sopenharmony_ci{
5748c2ecf20Sopenharmony_ci	{ 0x5a,0x64,0x82, 66},
5758c2ecf20Sopenharmony_ci	{ 0xb3,0x45,0x82, 83},
5768c2ecf20Sopenharmony_ci	{ 0x37,0x61,0x82,100},
5778c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
5788c2ecf20Sopenharmony_ci	{ 0x37,0x61,0x82,100},
5798c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
5808c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
5818c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133}
5828c2ecf20Sopenharmony_ci};
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_330[] =
5858c2ecf20Sopenharmony_ci{
5868c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5878c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x01,166},
5888c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
5898c2ecf20Sopenharmony_ci	{ 0x79,0x06,0x01,250},
5908c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
5918c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
5928c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
5938c2ecf20Sopenharmony_ci	{ 0x79,0x06,0x01,250}
5948c2ecf20Sopenharmony_ci};
5958c2ecf20Sopenharmony_ci
5968c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_660[] =
5978c2ecf20Sopenharmony_ci{
5988c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
5998c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6008c2ecf20Sopenharmony_ci	{ 0x37,0x21,0x82,200},
6018c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
6028c2ecf20Sopenharmony_ci	{ 0x29,0x21,0x82,150},
6038c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6048c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6058c2ecf20Sopenharmony_ci	{ 0x37,0x21,0x82,200}
6068c2ecf20Sopenharmony_ci};
6078c2ecf20Sopenharmony_ci
6088c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_760[] =
6098c2ecf20Sopenharmony_ci{
6108c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
6118c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6128c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6138c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x82,200},
6148c2ecf20Sopenharmony_ci	{ 0x29,0x21,0x82,150},
6158c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6168c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6178c2ecf20Sopenharmony_ci	{ 0x37,0x21,0x82,200}
6188c2ecf20Sopenharmony_ci};
6198c2ecf20Sopenharmony_ci
6208c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_761[] =
6218c2ecf20Sopenharmony_ci{
6228c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},  /* Preliminary */
6238c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6248c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6258c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x82,200},
6268c2ecf20Sopenharmony_ci	{ 0x29,0x21,0x82,150},
6278c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6288c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6298c2ecf20Sopenharmony_ci	{ 0x37,0x21,0x82,200}
6308c2ecf20Sopenharmony_ci};
6318c2ecf20Sopenharmony_ci
6328c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_0_340[] =
6338c2ecf20Sopenharmony_ci{
6348c2ecf20Sopenharmony_ci	{ 0x79,0x06,0x01,250},
6358c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
6368c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x80,200},
6378c2ecf20Sopenharmony_ci	{ 0x79,0x06,0x80,250},
6388c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6398c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6408c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6418c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300}
6428c2ecf20Sopenharmony_ci};
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_1[] = /* ECLK */
6458c2ecf20Sopenharmony_ci{
6468c2ecf20Sopenharmony_ci	{ 0x29,0x21,0x82,150},
6478c2ecf20Sopenharmony_ci	{ 0x5c,0x23,0x82,166},
6488c2ecf20Sopenharmony_ci	{ 0x65,0x23,0x82,183},
6498c2ecf20Sopenharmony_ci	{ 0x37,0x21,0x82,200},
6508c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
6518c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
6528c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133},
6538c2ecf20Sopenharmony_ci	{ 0x37,0x22,0x82,133}
6548c2ecf20Sopenharmony_ci};
6558c2ecf20Sopenharmony_ci
6568c2ecf20Sopenharmony_cistatic const struct SiS_MCLKData SiS310_MCLKData_1_340[] =
6578c2ecf20Sopenharmony_ci{
6588c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
6598c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x01,200},
6608c2ecf20Sopenharmony_ci	{ 0x7c,0x08,0x80,200},
6618c2ecf20Sopenharmony_ci	{ 0x79,0x06,0x80,250},
6628c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6638c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6648c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300},
6658c2ecf20Sopenharmony_ci	{ 0x29,0x01,0x81,300}
6668c2ecf20Sopenharmony_ci};
6678c2ecf20Sopenharmony_ci
6688c2ecf20Sopenharmony_cistatic struct SiS_VCLKData SiS310_VCLKData[] =
6698c2ecf20Sopenharmony_ci{
6708c2ecf20Sopenharmony_ci	{ 0x1b,0xe1, 25}, /* 0x00 */
6718c2ecf20Sopenharmony_ci	{ 0x4e,0xe4, 28}, /* 0x01 */
6728c2ecf20Sopenharmony_ci	{ 0x57,0xe4, 31}, /* 0x02 */
6738c2ecf20Sopenharmony_ci	{ 0xc3,0xc8, 36}, /* 0x03 */
6748c2ecf20Sopenharmony_ci	{ 0x42,0xe2, 40}, /* 0x04 */
6758c2ecf20Sopenharmony_ci	{ 0xfe,0xcd, 43}, /* 0x05 */
6768c2ecf20Sopenharmony_ci	{ 0x5d,0xc4, 44}, /* 0x06 */
6778c2ecf20Sopenharmony_ci	{ 0x52,0xe2, 49}, /* 0x07 */
6788c2ecf20Sopenharmony_ci	{ 0x53,0xe2, 50}, /* 0x08 */
6798c2ecf20Sopenharmony_ci	{ 0x74,0x67, 52}, /* 0x09 */
6808c2ecf20Sopenharmony_ci	{ 0x6d,0x66, 56}, /* 0x0a */
6818c2ecf20Sopenharmony_ci	{ 0x5a,0x64, 65}, /* 0x0b */  /* was 6c c3 - WRONG */
6828c2ecf20Sopenharmony_ci	{ 0x46,0x44, 67}, /* 0x0c */
6838c2ecf20Sopenharmony_ci	{ 0xb1,0x46, 68}, /* 0x0d */
6848c2ecf20Sopenharmony_ci	{ 0xd3,0x4a, 72}, /* 0x0e */
6858c2ecf20Sopenharmony_ci	{ 0x29,0x61, 75}, /* 0x0f */
6868c2ecf20Sopenharmony_ci	{ 0x6e,0x46, 76}, /* 0x10 */
6878c2ecf20Sopenharmony_ci	{ 0x2b,0x61, 78}, /* 0x11 */
6888c2ecf20Sopenharmony_ci	{ 0x31,0x42, 79}, /* 0x12 */
6898c2ecf20Sopenharmony_ci	{ 0xab,0x44, 83}, /* 0x13 */
6908c2ecf20Sopenharmony_ci	{ 0x46,0x25, 84}, /* 0x14 */
6918c2ecf20Sopenharmony_ci	{ 0x78,0x29, 86}, /* 0x15 */
6928c2ecf20Sopenharmony_ci	{ 0x62,0x44, 94}, /* 0x16 */
6938c2ecf20Sopenharmony_ci	{ 0x2b,0x41,104}, /* 0x17 */
6948c2ecf20Sopenharmony_ci	{ 0x3a,0x23,105}, /* 0x18 */
6958c2ecf20Sopenharmony_ci	{ 0x70,0x44,108}, /* 0x19 */
6968c2ecf20Sopenharmony_ci	{ 0x3c,0x23,109}, /* 0x1a */
6978c2ecf20Sopenharmony_ci	{ 0x5e,0x43,113}, /* 0x1b */
6988c2ecf20Sopenharmony_ci	{ 0xbc,0x44,116}, /* 0x1c */
6998c2ecf20Sopenharmony_ci	{ 0xe0,0x46,132}, /* 0x1d */
7008c2ecf20Sopenharmony_ci	{ 0x54,0x42,135}, /* 0x1e */
7018c2ecf20Sopenharmony_ci	{ 0xea,0x2a,139}, /* 0x1f */
7028c2ecf20Sopenharmony_ci	{ 0x41,0x22,157}, /* 0x20 */
7038c2ecf20Sopenharmony_ci	{ 0x70,0x24,162}, /* 0x21 */
7048c2ecf20Sopenharmony_ci	{ 0x30,0x21,175}, /* 0x22 */
7058c2ecf20Sopenharmony_ci	{ 0x4e,0x22,189}, /* 0x23 */
7068c2ecf20Sopenharmony_ci	{ 0xde,0x26,194}, /* 0x24 */
7078c2ecf20Sopenharmony_ci	{ 0x62,0x06,202}, /* 0x25 */
7088c2ecf20Sopenharmony_ci	{ 0x3f,0x03,229}, /* 0x26 */
7098c2ecf20Sopenharmony_ci	{ 0xb8,0x06,234}, /* 0x27 */
7108c2ecf20Sopenharmony_ci	{ 0x34,0x02,253}, /* 0x28 */
7118c2ecf20Sopenharmony_ci	{ 0x58,0x04,255}, /* 0x29 */
7128c2ecf20Sopenharmony_ci	{ 0x24,0x01,265}, /* 0x2a */
7138c2ecf20Sopenharmony_ci	{ 0x9b,0x02,267}, /* 0x2b */
7148c2ecf20Sopenharmony_ci	{ 0x70,0x05,270}, /* 0x2c */
7158c2ecf20Sopenharmony_ci	{ 0x25,0x01,272}, /* 0x2d */
7168c2ecf20Sopenharmony_ci	{ 0x9c,0x02,277}, /* 0x2e */
7178c2ecf20Sopenharmony_ci	{ 0x27,0x01,286}, /* 0x2f */
7188c2ecf20Sopenharmony_ci	{ 0x3c,0x02,291}, /* 0x30 */
7198c2ecf20Sopenharmony_ci	{ 0xef,0x0a,292}, /* 0x31 */
7208c2ecf20Sopenharmony_ci	{ 0xf6,0x0a,310}, /* 0x32 */
7218c2ecf20Sopenharmony_ci	{ 0x95,0x01,315}, /* 0x33 */
7228c2ecf20Sopenharmony_ci	{ 0xf0,0x09,324}, /* 0x34 */
7238c2ecf20Sopenharmony_ci	{ 0xfe,0x0a,331}, /* 0x35 */
7248c2ecf20Sopenharmony_ci	{ 0xf3,0x09,332}, /* 0x36 */
7258c2ecf20Sopenharmony_ci	{ 0xea,0x08,340}, /* 0x37 */
7268c2ecf20Sopenharmony_ci	{ 0xe8,0x07,376}, /* 0x38 */
7278c2ecf20Sopenharmony_ci	{ 0xde,0x06,389}, /* 0x39 */
7288c2ecf20Sopenharmony_ci	{ 0x52,0x2a, 54}, /* 0x3a 301 TV */
7298c2ecf20Sopenharmony_ci	{ 0x52,0x6a, 27}, /* 0x3b 301 TV */
7308c2ecf20Sopenharmony_ci	{ 0x62,0x24, 70}, /* 0x3c 301 TV */
7318c2ecf20Sopenharmony_ci	{ 0x62,0x64, 70}, /* 0x3d 301 TV */
7328c2ecf20Sopenharmony_ci	{ 0xa8,0x4c, 30}, /* 0x3e 301 TV */
7338c2ecf20Sopenharmony_ci	{ 0x20,0x26, 33}, /* 0x3f 301 TV */
7348c2ecf20Sopenharmony_ci	{ 0x31,0xc2, 39}, /* 0x40 */
7358c2ecf20Sopenharmony_ci	{ 0x60,0x36, 30}, /* 0x41 Chrontel */
7368c2ecf20Sopenharmony_ci	{ 0x40,0x4a, 28}, /* 0x42 Chrontel */
7378c2ecf20Sopenharmony_ci	{ 0x9f,0x46, 44}, /* 0x43 Chrontel */
7388c2ecf20Sopenharmony_ci	{ 0x97,0x2c, 26}, /* 0x44 */
7398c2ecf20Sopenharmony_ci	{ 0x44,0xe4, 25}, /* 0x45 Chrontel */
7408c2ecf20Sopenharmony_ci	{ 0x7e,0x32, 47}, /* 0x46 Chrontel */
7418c2ecf20Sopenharmony_ci	{ 0x8a,0x24, 31}, /* 0x47 Chrontel */
7428c2ecf20Sopenharmony_ci	{ 0x97,0x2c, 26}, /* 0x48 Chrontel */
7438c2ecf20Sopenharmony_ci	{ 0xce,0x3c, 39}, /* 0x49 */
7448c2ecf20Sopenharmony_ci	{ 0x52,0x4a, 36}, /* 0x4a Chrontel */
7458c2ecf20Sopenharmony_ci	{ 0x34,0x61, 95}, /* 0x4b */
7468c2ecf20Sopenharmony_ci	{ 0x78,0x27,108}, /* 0x4c - was 102 */
7478c2ecf20Sopenharmony_ci	{ 0x66,0x43,123}, /* 0x4d Modes 0x26-0x28 (1400x1050) */
7488c2ecf20Sopenharmony_ci	{ 0x41,0x4e, 21}, /* 0x4e */
7498c2ecf20Sopenharmony_ci	{ 0xa1,0x4a, 29}, /* 0x4f Chrontel */
7508c2ecf20Sopenharmony_ci	{ 0x19,0x42, 42}, /* 0x50 */
7518c2ecf20Sopenharmony_ci	{ 0x54,0x46, 58}, /* 0x51 Chrontel */
7528c2ecf20Sopenharmony_ci	{ 0x25,0x42, 61}, /* 0x52 */
7538c2ecf20Sopenharmony_ci	{ 0x44,0x44, 66}, /* 0x53 Chrontel */
7548c2ecf20Sopenharmony_ci	{ 0x3a,0x62, 70}, /* 0x54 Chrontel */
7558c2ecf20Sopenharmony_ci	{ 0x62,0xc6, 34}, /* 0x55 848x480-60 */
7568c2ecf20Sopenharmony_ci	{ 0x6a,0xc6, 37}, /* 0x56 848x480-75 - TEMP */
7578c2ecf20Sopenharmony_ci	{ 0xbf,0xc8, 35}, /* 0x57 856x480-38i,60 */
7588c2ecf20Sopenharmony_ci	{ 0x30,0x23, 88}, /* 0x58 1360x768-62 (is 60Hz!) */
7598c2ecf20Sopenharmony_ci	{ 0x52,0x07,149}, /* 0x59 1280x960-85 */
7608c2ecf20Sopenharmony_ci	{ 0x56,0x07,156}, /* 0x5a 1400x1050-75 */
7618c2ecf20Sopenharmony_ci	{ 0x70,0x29, 81}, /* 0x5b 1280x768 LCD */
7628c2ecf20Sopenharmony_ci	{ 0x45,0x25, 83}, /* 0x5c 1280x800  */
7638c2ecf20Sopenharmony_ci	{ 0x70,0x0a,147}, /* 0x5d 1680x1050 */
7648c2ecf20Sopenharmony_ci	{ 0x70,0x24,162}, /* 0x5e 1600x1200 */
7658c2ecf20Sopenharmony_ci	{ 0x5a,0x64, 65}, /* 0x5f 1280x720 - temp */
7668c2ecf20Sopenharmony_ci	{ 0x63,0x46, 68}, /* 0x60 1280x768_2 */
7678c2ecf20Sopenharmony_ci	{ 0x31,0x42, 79}, /* 0x61 1280x768_3 - temp */
7688c2ecf20Sopenharmony_ci	{    0,   0,  0}, /* 0x62 - custom (will be filled out at run-time) */
7698c2ecf20Sopenharmony_ci	{ 0x5a,0x64, 65}, /* 0x63 1280x720 (LCD LVDS) */
7708c2ecf20Sopenharmony_ci	{ 0x70,0x28, 90}, /* 0x64 1152x864@60 */
7718c2ecf20Sopenharmony_ci	{ 0x41,0xc4, 32}, /* 0x65 848x480@60 */
7728c2ecf20Sopenharmony_ci	{ 0x5c,0xc6, 32}, /* 0x66 856x480@60 */
7738c2ecf20Sopenharmony_ci	{ 0x76,0xe7, 27}, /* 0x67 720x480@60 */
7748c2ecf20Sopenharmony_ci	{ 0x5f,0xc6, 33}, /* 0x68 720/768x576@60 */
7758c2ecf20Sopenharmony_ci	{ 0x52,0x27, 75}, /* 0x69 1920x1080i 60Hz interlaced */
7768c2ecf20Sopenharmony_ci	{ 0x7c,0x6b, 38}, /* 0x6a 960x540@60 */
7778c2ecf20Sopenharmony_ci	{ 0xe3,0x56, 41}, /* 0x6b 960x600@60 */
7788c2ecf20Sopenharmony_ci	{ 0x45,0x25, 83}, /* 0x6c 1280x800 */
7798c2ecf20Sopenharmony_ci	{ 0x70,0x28, 90}, /* 0x6d 1152x864@60 */
7808c2ecf20Sopenharmony_ci	{ 0x15,0xe1, 20}, /* 0x6e 640x400@60 (fake, not actually used) */
7818c2ecf20Sopenharmony_ci	{ 0x5f,0xc6, 33}, /* 0x6f 720x576@60 */
7828c2ecf20Sopenharmony_ci	{ 0x37,0x5a, 10}, /* 0x70 320x200@60 (fake, not actually used) */
7838c2ecf20Sopenharmony_ci	{ 0x2b,0xc2, 35}, /* 0x71 768x576@60 */
7848c2ecf20Sopenharmony_ci	{ 0xa8,0x42,131}, /* 0x72 1600x1200@60 for LCDA */
7858c2ecf20Sopenharmony_ci	{ 0x1b,0xc1, 34}, /* 0x73 800x480 60Hz (wide) */
7868c2ecf20Sopenharmony_ci	{ 0x41,0x64, 48}, /* 0x74 1024x576 60Hz (wide) */
7878c2ecf20Sopenharmony_ci	{ 0x52,0x27, 75}, /* 0x75 1280x720 60Hz (wide) */
7888c2ecf20Sopenharmony_ci	{ 0x75,0x13, 84}  /* 0x76 1280x854 60Hz (wide) */
7898c2ecf20Sopenharmony_ci};
7908c2ecf20Sopenharmony_ci
7918c2ecf20Sopenharmony_cistatic struct SiS_VBVCLKData SiS310_VBVCLKData[] =
7928c2ecf20Sopenharmony_ci{
7938c2ecf20Sopenharmony_ci	{ 0x1b,0xe1, 25}, /* 0x00 */
7948c2ecf20Sopenharmony_ci	{ 0x4e,0xe4, 28}, /* 0x01 */
7958c2ecf20Sopenharmony_ci	{ 0x57,0xe4, 31}, /* 0x02 */
7968c2ecf20Sopenharmony_ci	{ 0xc3,0xc8, 36}, /* 0x03 */
7978c2ecf20Sopenharmony_ci	{ 0x42,0x47, 40}, /* 0x04 */
7988c2ecf20Sopenharmony_ci	{ 0xfe,0xcd, 43}, /* 0x05 */
7998c2ecf20Sopenharmony_ci	{ 0x5d,0xc4, 44}, /* 0x06 */
8008c2ecf20Sopenharmony_ci	{ 0x52,0x47, 49}, /* 0x07 */
8018c2ecf20Sopenharmony_ci	{ 0x53,0x47, 50}, /* 0x08 */
8028c2ecf20Sopenharmony_ci	{ 0x74,0x67, 52}, /* 0x09 */
8038c2ecf20Sopenharmony_ci	{ 0x6d,0x66, 56}, /* 0x0a */
8048c2ecf20Sopenharmony_ci	{ 0x35,0x62, 65}, /* 0x0b */  /* Was 0x5a,0x64 - 650/LVDS+301: 35,62  */
8058c2ecf20Sopenharmony_ci	{ 0x46,0x44, 67}, /* 0x0c */
8068c2ecf20Sopenharmony_ci	{ 0xb1,0x46, 68}, /* 0x0d */
8078c2ecf20Sopenharmony_ci	{ 0xd3,0x4a, 72}, /* 0x0e */
8088c2ecf20Sopenharmony_ci	{ 0x29,0x61, 75}, /* 0x0f */
8098c2ecf20Sopenharmony_ci	{ 0x6d,0x46, 75}, /* 0x10 */
8108c2ecf20Sopenharmony_ci	{ 0x41,0x43, 78}, /* 0x11 */
8118c2ecf20Sopenharmony_ci	{ 0x31,0x42, 79}, /* 0x12 */
8128c2ecf20Sopenharmony_ci	{ 0xab,0x44, 83}, /* 0x13 */
8138c2ecf20Sopenharmony_ci	{ 0x46,0x25, 84}, /* 0x14 */
8148c2ecf20Sopenharmony_ci	{ 0x78,0x29, 86}, /* 0x15 */
8158c2ecf20Sopenharmony_ci	{ 0x62,0x44, 94}, /* 0x16 */
8168c2ecf20Sopenharmony_ci	{ 0x2b,0x22,104}, /* 0x17 */
8178c2ecf20Sopenharmony_ci	{ 0x49,0x24,105}, /* 0x18 */
8188c2ecf20Sopenharmony_ci	{ 0xf8,0x2f,108}, /* 0x19 */  /* 1400x1050 LCD */
8198c2ecf20Sopenharmony_ci	{ 0x3c,0x23,109}, /* 0x1a */
8208c2ecf20Sopenharmony_ci	{ 0x5e,0x43,113}, /* 0x1b */
8218c2ecf20Sopenharmony_ci	{ 0xbc,0x44,116}, /* 0x1c */
8228c2ecf20Sopenharmony_ci	{ 0xe0,0x46,132}, /* 0x1d */
8238c2ecf20Sopenharmony_ci	{ 0xe2,0x46,135}, /* 0x1e */  /* 1280x1024-75, better clock for VGA2 */
8248c2ecf20Sopenharmony_ci	{ 0xe5,0x46,139}, /* 0x1f */  /* 1024x768-120, better clock for VGA2 */
8258c2ecf20Sopenharmony_ci	{ 0x15,0x01,157}, /* 0x20 */  /* 1280x1024-85, better clock for VGA2 */
8268c2ecf20Sopenharmony_ci	{ 0x70,0x09,162}, /* 0x21 */  /* 1600x1200-60, better clock for VGA2 */
8278c2ecf20Sopenharmony_ci	{ 0x30,0x21,175}, /* 0x22 */
8288c2ecf20Sopenharmony_ci	{ 0x4e,0x22,189}, /* 0x23 */
8298c2ecf20Sopenharmony_ci	{ 0xde,0x26,194}, /* 0x24 */
8308c2ecf20Sopenharmony_ci	{ 0x70,0x07,202}, /* 0x25 */
8318c2ecf20Sopenharmony_ci	{ 0x3f,0x03,229}, /* 0x26 */
8328c2ecf20Sopenharmony_ci	{ 0xb8,0x06,234}, /* 0x27 */
8338c2ecf20Sopenharmony_ci	{ 0x34,0x02,253}, /* 0x28 */
8348c2ecf20Sopenharmony_ci	{ 0x58,0x04,255}, /* 0x29 */
8358c2ecf20Sopenharmony_ci	{ 0x24,0x01,265}, /* 0x2a */
8368c2ecf20Sopenharmony_ci	{ 0x9b,0x02,267}, /* 0x2b */
8378c2ecf20Sopenharmony_ci	{ 0x70,0x05,270}, /* 0x2c */
8388c2ecf20Sopenharmony_ci	{ 0x25,0x01,272}, /* 0x2d */
8398c2ecf20Sopenharmony_ci	{ 0x9c,0x02,277}, /* 0x2e */
8408c2ecf20Sopenharmony_ci	{ 0x27,0x01,286}, /* 0x2f */
8418c2ecf20Sopenharmony_ci	{ 0x3c,0x02,291}, /* 0x30 */
8428c2ecf20Sopenharmony_ci	{ 0xef,0x0a,292}, /* 0x31 */
8438c2ecf20Sopenharmony_ci	{ 0xf6,0x0a,310}, /* 0x32 */
8448c2ecf20Sopenharmony_ci	{ 0x95,0x01,315}, /* 0x33 */
8458c2ecf20Sopenharmony_ci	{ 0xf0,0x09,324}, /* 0x34 */
8468c2ecf20Sopenharmony_ci	{ 0xfe,0x0a,331}, /* 0x35 */
8478c2ecf20Sopenharmony_ci	{ 0xf3,0x09,332}, /* 0x36 */
8488c2ecf20Sopenharmony_ci	{ 0xea,0x08,340}, /* 0x37 */
8498c2ecf20Sopenharmony_ci	{ 0xe8,0x07,376}, /* 0x38 */
8508c2ecf20Sopenharmony_ci	{ 0xde,0x06,389}, /* 0x39 */
8518c2ecf20Sopenharmony_ci	{ 0x52,0x2a, 54}, /* 0x3a 301 TV - start */
8528c2ecf20Sopenharmony_ci	{ 0x52,0x6a, 27}, /* 0x3b 301 TV */
8538c2ecf20Sopenharmony_ci	{ 0x62,0x24, 70}, /* 0x3c 301 TV */
8548c2ecf20Sopenharmony_ci	{ 0x62,0x64, 70}, /* 0x3d 301 TV */
8558c2ecf20Sopenharmony_ci	{ 0xa8,0x4c, 30}, /* 0x3e 301 TV */
8568c2ecf20Sopenharmony_ci	{ 0x20,0x26, 33}, /* 0x3f 301 TV */
8578c2ecf20Sopenharmony_ci	{ 0x31,0xc2, 39}, /* 0x40 */
8588c2ecf20Sopenharmony_ci	{ 0x2e,0x48, 25}, /* 0x41 Replacement for LCD on 315 for index 0 */
8598c2ecf20Sopenharmony_ci	{ 0x24,0x46, 25}, /* 0x42 Replacement for LCD on 315 for modes 0x01, 0x03, 0x0f, 0x10, 0x12 */
8608c2ecf20Sopenharmony_ci	{ 0x26,0x64, 28}, /* 0x43 Replacement for LCD on 315 for index 1 */
8618c2ecf20Sopenharmony_ci	{ 0x37,0x64, 40}, /* 0x44 Replacement for LCD on 315 for index 4 */
8628c2ecf20Sopenharmony_ci	{ 0xa1,0x42,108}, /* 0x45 1280x960 LCD */
8638c2ecf20Sopenharmony_ci	{ 0x37,0x61,100}, /* 0x46 1280x960 LCD */
8648c2ecf20Sopenharmony_ci	{ 0x78,0x27,108}, /* 0x47 */
8658c2ecf20Sopenharmony_ci	{ 0x97,0x2c, 26}, /* 0x48 UNUSED */
8668c2ecf20Sopenharmony_ci	{ 0xce,0x3c, 39}, /* 0x49 UNUSED */
8678c2ecf20Sopenharmony_ci	{ 0x52,0x4a, 36}, /* 0x4a UNUSED */
8688c2ecf20Sopenharmony_ci	{ 0x34,0x61, 95}, /* 0x4b UNUSED */
8698c2ecf20Sopenharmony_ci	{ 0x78,0x27,108}, /* 0x4c UNUSED */
8708c2ecf20Sopenharmony_ci	{ 0x66,0x43,123}, /* 0x4d 1400x1050-60 */
8718c2ecf20Sopenharmony_ci	{ 0x41,0x4e, 21}, /* 0x4e */
8728c2ecf20Sopenharmony_ci	{ 0xa1,0x4a, 29}, /* 0x4f UNUSED */
8738c2ecf20Sopenharmony_ci	{ 0x19,0x42, 42}, /* 0x50 UNUSED */
8748c2ecf20Sopenharmony_ci	{ 0x54,0x46, 58}, /* 0x51 UNUSED */
8758c2ecf20Sopenharmony_ci	{ 0x25,0x42, 61}, /* 0x52 UNUSED */
8768c2ecf20Sopenharmony_ci	{ 0x44,0x44, 66}, /* 0x53 UNUSED */
8778c2ecf20Sopenharmony_ci	{ 0x3a,0x62, 70}, /* 0x54 UNUSED */
8788c2ecf20Sopenharmony_ci	{ 0x62,0xc6, 34}, /* 0x55 848x480-60 */
8798c2ecf20Sopenharmony_ci	{ 0x6a,0xc6, 37}, /* 0x56 848x480-75 - TEMP, UNUSED */
8808c2ecf20Sopenharmony_ci	{ 0xbf,0xc8, 35}, /* 0x57 856x480-38i,60  */
8818c2ecf20Sopenharmony_ci	{ 0x30,0x23, 88}, /* 0x58 1360x768-62 (is 60Hz!) TEMP, UNUSED */
8828c2ecf20Sopenharmony_ci	{ 0x52,0x07,149}, /* 0x59 1280x960-85  */
8838c2ecf20Sopenharmony_ci	{ 0x56,0x07,156}, /* 0x5a 1400x1050-75 */
8848c2ecf20Sopenharmony_ci	{ 0x70,0x29, 81}, /* 0x5b 1280x768 LCD (TMDS) */
8858c2ecf20Sopenharmony_ci	{ 0xce,0x1e, 73}, /* 0x5c 1280x800_2 LCD (SiS LVDS) - (CRT1: 45 25 83) */
8868c2ecf20Sopenharmony_ci	{ 0xbe,0x44,121}, /* 0x5d 1680x1050 LCD */
8878c2ecf20Sopenharmony_ci	{ 0x70,0x24,162}, /* 0x5e 1600x1200 LCD */
8888c2ecf20Sopenharmony_ci	{ 0x52,0x27, 75}, /* 0x5f 1280x720 (TMDS + HDTV) (correct) */
8898c2ecf20Sopenharmony_ci	{ 0xc8,0x48, 77}, /* 0x60 1280x768_2 (SiS LVDS) */
8908c2ecf20Sopenharmony_ci	{ 0x31,0x42, 79}, /* 0x61 1280x768_3 (SiS LVDS) - temp */
8918c2ecf20Sopenharmony_ci	{    0,   0,  0}, /* 0x62 - custom (will be filled out at run-time) */
8928c2ecf20Sopenharmony_ci	{ 0x9c,0x62, 69}, /* 0x63 1280x720 (SiS LVDS) */
8938c2ecf20Sopenharmony_ci	{ 0x70,0x28, 90}, /* 0x64 1152x864@60 */
8948c2ecf20Sopenharmony_ci	{ 0x41,0xc4, 32}, /* 0x65 848x480@60 */
8958c2ecf20Sopenharmony_ci	{ 0x5c,0xc6, 32}, /* 0x66 856x480@60 */
8968c2ecf20Sopenharmony_ci	{ 0x76,0xe7, 27}, /* 0x67 720x480@60 */
8978c2ecf20Sopenharmony_ci	{ 0x5f,0xc6, 33}, /* 0x68 720/768x576@60 */
8988c2ecf20Sopenharmony_ci	{ 0x52,0x27, 75}, /* 0x69 1920x1080i 60Hz interlaced (UNUSED) */
8998c2ecf20Sopenharmony_ci	{ 0x7c,0x6b, 38}, /* 0x6a 960x540@60 */
9008c2ecf20Sopenharmony_ci	{ 0xe3,0x56, 41}, /* 0x6b 960x600@60 */
9018c2ecf20Sopenharmony_ci	{ 0x9c,0x62, 69}, /* 0x6c 1280x800 (SiS TMDS) (special) */
9028c2ecf20Sopenharmony_ci	{ 0x70,0x28, 90}, /* 0x6d 1152x864@60 */
9038c2ecf20Sopenharmony_ci	{ 0x15,0xe1, 20}, /* 0x6e 640x400@60 (fake, not actually used) */
9048c2ecf20Sopenharmony_ci	{ 0x5f,0xc6, 33}, /* 0x6f 720x576@60 */
9058c2ecf20Sopenharmony_ci	{ 0x37,0x5a, 10}, /* 0x70 320x200@60 (fake, not actually used) */
9068c2ecf20Sopenharmony_ci	{ 0x2b,0xc2, 35}, /* 0x71 768@576@60 */
9078c2ecf20Sopenharmony_ci	{ 0xa8,0x42,131}, /* 0x72 1600x1200@60 for LCDA */
9088c2ecf20Sopenharmony_ci	{ 0x1b,0xc1, 34}, /* 0x73 800x480 60Hz (wide) */
9098c2ecf20Sopenharmony_ci	{ 0x41,0x64, 48}, /* 0x74 1024x576 60Hz (wide) */
9108c2ecf20Sopenharmony_ci	{ 0x52,0x27, 75}, /* 0x75 1280x720 60Hz (wide) */
9118c2ecf20Sopenharmony_ci	{ 0x75,0x13, 84}  /* 0x76 1280x854 60Hz (SiS LVDS) LCD */
9128c2ecf20Sopenharmony_ci};
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_cistatic const unsigned char SiS310_SR15[4 * 8] =
9158c2ecf20Sopenharmony_ci{
9168c2ecf20Sopenharmony_ci	0x00,0x04,0x60,0x60,
9178c2ecf20Sopenharmony_ci	0x0f,0x0f,0x0f,0x0f,
9188c2ecf20Sopenharmony_ci	0xba,0xba,0xba,0xba,
9198c2ecf20Sopenharmony_ci	0xa9,0xa9,0xac,0xac,
9208c2ecf20Sopenharmony_ci	0xa0,0xa0,0xa0,0xa8,
9218c2ecf20Sopenharmony_ci	0x00,0x00,0x02,0x02,
9228c2ecf20Sopenharmony_ci	0x30,0x30,0x40,0x40,
9238c2ecf20Sopenharmony_ci	0x00,0xa5,0xfb,0xf6
9248c2ecf20Sopenharmony_ci};
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_cistatic const struct SiS_PanelDelayTbl SiS310_PanelDelayTbl[] =
9278c2ecf20Sopenharmony_ci{
9288c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9298c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9308c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9318c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9328c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9338c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9348c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9358c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9368c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9378c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9388c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9398c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9408c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9418c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9428c2ecf20Sopenharmony_ci	{{0x10,0x40}},
9438c2ecf20Sopenharmony_ci	{{0x10,0x40}}
9448c2ecf20Sopenharmony_ci};
9458c2ecf20Sopenharmony_ci
9468c2ecf20Sopenharmony_cistatic const struct SiS_PanelDelayTbl SiS310_PanelDelayTblLVDS[] =
9478c2ecf20Sopenharmony_ci{
9488c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9498c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9508c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9518c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9528c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9538c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9548c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9558c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9568c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9578c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9588c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9598c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9608c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9618c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9628c2ecf20Sopenharmony_ci	{{0x28,0xc8}},
9638c2ecf20Sopenharmony_ci	{{0x28,0xc8}}
9648c2ecf20Sopenharmony_ci};
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_ci/**************************************************************/
9678c2ecf20Sopenharmony_ci/* SIS VIDEO BRIDGE ----------------------------------------- */
9688c2ecf20Sopenharmony_ci/**************************************************************/
9698c2ecf20Sopenharmony_ci
9708c2ecf20Sopenharmony_cistatic const struct SiS_LCDData SiS310_St2LCD1024x768Data[] =
9718c2ecf20Sopenharmony_ci{
9728c2ecf20Sopenharmony_ci	{   62,  25, 800, 546,1344, 806},
9738c2ecf20Sopenharmony_ci	{   32,  15, 930, 546,1344, 806},
9748c2ecf20Sopenharmony_ci	{   62,  25, 800, 546,1344, 806},
9758c2ecf20Sopenharmony_ci	{  104,  45, 945, 496,1344, 806},
9768c2ecf20Sopenharmony_ci	{   62,  25, 800, 546,1344, 806},
9778c2ecf20Sopenharmony_ci	{   31,  18,1008, 624,1344, 806},
9788c2ecf20Sopenharmony_ci	{    1,   1,1344, 806,1344, 806}
9798c2ecf20Sopenharmony_ci};
9808c2ecf20Sopenharmony_ci
9818c2ecf20Sopenharmony_cistatic const struct SiS_LCDData SiS310_ExtLCD1024x768Data[] =
9828c2ecf20Sopenharmony_ci{
9838c2ecf20Sopenharmony_ci	{   42,  25,1536, 419,1344, 806},
9848c2ecf20Sopenharmony_ci	{   48,  25,1536, 369,1344, 806},
9858c2ecf20Sopenharmony_ci	{   42,  25,1536, 419,1344, 806},
9868c2ecf20Sopenharmony_ci	{   48,  25,1536, 369,1344, 806},
9878c2ecf20Sopenharmony_ci	{   12,   5, 896, 500,1344, 806},
9888c2ecf20Sopenharmony_ci	{   42,  25,1024, 625,1344, 806},
9898c2ecf20Sopenharmony_ci	{    1,   1,1344, 806,1344, 806}
9908c2ecf20Sopenharmony_ci};
9918c2ecf20Sopenharmony_ci
9928c2ecf20Sopenharmony_cistatic const struct SiS_LCDData SiS310_St2LCD1280x1024Data[] =
9938c2ecf20Sopenharmony_ci{
9948c2ecf20Sopenharmony_ci	{   22,   5, 800, 510,1650,1088},
9958c2ecf20Sopenharmony_ci	{   22,   5, 800, 510,1650,1088},
9968c2ecf20Sopenharmony_ci	{  176,  45, 900, 510,1650,1088},
9978c2ecf20Sopenharmony_ci	{  176,  45, 900, 510,1650,1088},
9988c2ecf20Sopenharmony_ci	{   22,   5, 800, 510,1650,1088},
9998c2ecf20Sopenharmony_ci	{   13,   5,1024, 675,1560,1152},
10008c2ecf20Sopenharmony_ci	{   16,   9,1266, 804,1688,1072},
10018c2ecf20Sopenharmony_ci	{    1,   1,1688,1066,1688,1066}
10028c2ecf20Sopenharmony_ci};
10038c2ecf20Sopenharmony_ci
10048c2ecf20Sopenharmony_cistatic const struct SiS_LCDData SiS310_ExtLCD1280x1024Data[] =
10058c2ecf20Sopenharmony_ci{
10068c2ecf20Sopenharmony_ci	{  211,  60,1024, 501,1688,1066},
10078c2ecf20Sopenharmony_ci	{  211,  60,1024, 508,1688,1066},
10088c2ecf20Sopenharmony_ci	{  211,  60,1024, 501,1688,1066},
10098c2ecf20Sopenharmony_ci	{  211,  60,1024, 508,1688,1066},
10108c2ecf20Sopenharmony_ci	{  211,  60,1024, 500,1688,1066},
10118c2ecf20Sopenharmony_ci	{  211,  75,1024, 625,1688,1066},
10128c2ecf20Sopenharmony_ci	{  211, 120,1280, 798,1688,1066},
10138c2ecf20Sopenharmony_ci	{    1,   1,1688,1066,1688,1066}
10148c2ecf20Sopenharmony_ci};
10158c2ecf20Sopenharmony_ci
10168c2ecf20Sopenharmony_cistatic const struct SiS_Part2PortTbl SiS310_CRT2Part2_1024x768_1[] =
10178c2ecf20Sopenharmony_ci{
10188c2ecf20Sopenharmony_ci	{{0x25,0x12,0xc9,0xdc,0xb6,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
10198c2ecf20Sopenharmony_ci	{{0x2c,0x12,0x9a,0xae,0x88,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
10208c2ecf20Sopenharmony_ci	{{0x25,0x12,0xc9,0xdc,0xb6,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
10218c2ecf20Sopenharmony_ci	{{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
10228c2ecf20Sopenharmony_ci	{{0x38,0x13,0x16,0x0c,0xe6,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
10238c2ecf20Sopenharmony_ci	{{0x38,0x18,0x16,0x00,0x00,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
10248c2ecf20Sopenharmony_ci	{{0x36,0x13,0x13,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}}
10258c2ecf20Sopenharmony_ci};
10268c2ecf20Sopenharmony_ci
10278c2ecf20Sopenharmony_ci/**************************************************************/
10288c2ecf20Sopenharmony_ci/* LVDS, CHRONTEL ------------------------------------------- */
10298c2ecf20Sopenharmony_ci/**************************************************************/
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVUPALData[] =
10328c2ecf20Sopenharmony_ci{
10338c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10348c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10358c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10368c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10378c2ecf20Sopenharmony_ci	{ 840, 625, 840, 625},
10388c2ecf20Sopenharmony_ci	{ 960, 750, 960, 750},
10398c2ecf20Sopenharmony_ci	{1400,1000,1400,1000}
10408c2ecf20Sopenharmony_ci};
10418c2ecf20Sopenharmony_ci
10428c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVOPALData[] =
10438c2ecf20Sopenharmony_ci{
10448c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10458c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10468c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10478c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10488c2ecf20Sopenharmony_ci	{ 840, 625, 840, 625},
10498c2ecf20Sopenharmony_ci	{ 944, 625, 944, 625},
10508c2ecf20Sopenharmony_ci	{1400, 875,1400, 875}
10518c2ecf20Sopenharmony_ci};
10528c2ecf20Sopenharmony_ci
10538c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVUPALMData[] =
10548c2ecf20Sopenharmony_ci{
10558c2ecf20Sopenharmony_ci	{ 840, 600, 840, 600},
10568c2ecf20Sopenharmony_ci	{ 840, 600, 840, 600},
10578c2ecf20Sopenharmony_ci	{ 840, 600, 840, 600},
10588c2ecf20Sopenharmony_ci	{ 840, 600, 840, 600},
10598c2ecf20Sopenharmony_ci	{ 784, 600, 784, 600},
10608c2ecf20Sopenharmony_ci	{1064, 750,1064, 750},
10618c2ecf20Sopenharmony_ci	{1160, 945,1160, 945}
10628c2ecf20Sopenharmony_ci};
10638c2ecf20Sopenharmony_ci
10648c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVOPALMData[] =
10658c2ecf20Sopenharmony_ci{
10668c2ecf20Sopenharmony_ci	{ 840, 525, 840, 525},
10678c2ecf20Sopenharmony_ci	{ 840, 525, 840, 525},
10688c2ecf20Sopenharmony_ci	{ 840, 525, 840, 525},
10698c2ecf20Sopenharmony_ci	{ 840, 525, 840, 525},
10708c2ecf20Sopenharmony_ci	{ 784, 525, 784, 525},
10718c2ecf20Sopenharmony_ci	{1040, 700,1040, 700},
10728c2ecf20Sopenharmony_ci	{1160, 840,1160, 840}
10738c2ecf20Sopenharmony_ci};
10748c2ecf20Sopenharmony_ci
10758c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVUPALNData[] =
10768c2ecf20Sopenharmony_ci{
10778c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10788c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10798c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10808c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10818c2ecf20Sopenharmony_ci	{ 840, 625, 840, 625},
10828c2ecf20Sopenharmony_ci	{ 960, 750, 960, 750},
10838c2ecf20Sopenharmony_ci	{1400,1000,1400,1000}
10848c2ecf20Sopenharmony_ci};
10858c2ecf20Sopenharmony_ci
10868c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVOPALNData[] =
10878c2ecf20Sopenharmony_ci{
10888c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10898c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10908c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10918c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
10928c2ecf20Sopenharmony_ci	{ 840, 625, 840, 625},
10938c2ecf20Sopenharmony_ci	{ 944, 625, 944, 625},
10948c2ecf20Sopenharmony_ci	{1400, 875,1400, 875}
10958c2ecf20Sopenharmony_ci};
10968c2ecf20Sopenharmony_ci
10978c2ecf20Sopenharmony_cistatic const struct SiS_LVDSData SiS310_CHTVSOPALData[] =   /* (super overscan - no effect on 7019) */
10988c2ecf20Sopenharmony_ci{
10998c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
11008c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
11018c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
11028c2ecf20Sopenharmony_ci	{1008, 625,1008, 625},
11038c2ecf20Sopenharmony_ci	{ 840, 625, 840, 625},
11048c2ecf20Sopenharmony_ci	{ 944, 625, 944, 625},
11058c2ecf20Sopenharmony_ci        {1400, 875,1400, 875}
11068c2ecf20Sopenharmony_ci};
11078c2ecf20Sopenharmony_ci
11088c2ecf20Sopenharmony_ci/* CRT1 CRTC for Chrontel TV slave modes */
11098c2ecf20Sopenharmony_ci
11108c2ecf20Sopenharmony_cistatic const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1UNTSC[] =
11118c2ecf20Sopenharmony_ci{
11128c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
11138c2ecf20Sopenharmony_ci   0xe8,0x84,0x8f,0x57,0x20,0x00,0x01,
11148c2ecf20Sopenharmony_ci   0x00 }},
11158c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
11168c2ecf20Sopenharmony_ci   0xd0,0x82,0x5d,0x57,0x00,0x00,0x01,
11178c2ecf20Sopenharmony_ci   0x00 }},
11188c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
11198c2ecf20Sopenharmony_ci   0xe8,0x84,0x8f,0x57,0x20,0x00,0x01,
11208c2ecf20Sopenharmony_ci   0x00 }},
11218c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e,
11228c2ecf20Sopenharmony_ci   0xd0,0x82,0x5d,0x57,0x00,0x00,0x01,
11238c2ecf20Sopenharmony_ci   0x00 }},
11248c2ecf20Sopenharmony_ci {{0x5d,0x4f,0x81,0x56,0x99,0x56,0xba,
11258c2ecf20Sopenharmony_ci   0x0a,0x84,0xdf,0x57,0x00,0x00,0x01,
11268c2ecf20Sopenharmony_ci   0x00 }},
11278c2ecf20Sopenharmony_ci {{0x80,0x63,0x84,0x6d,0x0f,0xec,0xf0,
11288c2ecf20Sopenharmony_ci   0x7a,0x8f,0x57,0xed,0x20,0x00,0x06,
11298c2ecf20Sopenharmony_ci   0x01 }},
11308c2ecf20Sopenharmony_ci {{0x8c,0x7f,0x90,0x86,0x09,0xaf,0xf5,
11318c2ecf20Sopenharmony_ci   0x36,0x88,0xff,0xb0,0x10,0x00,0x02,
11328c2ecf20Sopenharmony_ci   0x01}}
11338c2ecf20Sopenharmony_ci};
11348c2ecf20Sopenharmony_ci
11358c2ecf20Sopenharmony_cistatic const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1ONTSC[] =
11368c2ecf20Sopenharmony_ci{
11378c2ecf20Sopenharmony_ci {{0x63,0x4f,0x87,0x5a,0x9f,0x0b,0x3e,
11388c2ecf20Sopenharmony_ci   0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01,
11398c2ecf20Sopenharmony_ci   0x00 }},
11408c2ecf20Sopenharmony_ci {{0x63,0x4f,0x87,0x5a,0x9f,0x0b,0x3e,
11418c2ecf20Sopenharmony_ci   0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01,
11428c2ecf20Sopenharmony_ci   0x00 }},
11438c2ecf20Sopenharmony_ci {{0x63,0x4f,0x87,0x5a,0x9f,0x0b,0x3e,
11448c2ecf20Sopenharmony_ci   0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01,
11458c2ecf20Sopenharmony_ci   0x00 }},
11468c2ecf20Sopenharmony_ci {{0x63,0x4f,0x87,0x5a,0x9f,0x0b,0x3e,
11478c2ecf20Sopenharmony_ci   0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01,
11488c2ecf20Sopenharmony_ci   0x00 }},
11498c2ecf20Sopenharmony_ci {{0x5d,0x4f,0x81,0x58,0x9d,0x0b,0x3e,
11508c2ecf20Sopenharmony_ci   0xe8,0x84,0xdf,0x0c,0x00,0x00,0x01,
11518c2ecf20Sopenharmony_ci   0x00 }},
11528c2ecf20Sopenharmony_ci {{0x7d,0x63,0x81,0x68,0x0e,0xba,0xf0,
11538c2ecf20Sopenharmony_ci   0x78,0x8a,0x57,0xbb,0x20,0x00,0x06,
11548c2ecf20Sopenharmony_ci   0x01 }},
11558c2ecf20Sopenharmony_ci {{0x8c,0x7f,0x90,0x82,0x06,0x46,0xf5,
11568c2ecf20Sopenharmony_ci   0x15,0x88,0xff,0x47,0x70,0x00,0x02,
11578c2ecf20Sopenharmony_ci   0x01 }}
11588c2ecf20Sopenharmony_ci};
11598c2ecf20Sopenharmony_ci
11608c2ecf20Sopenharmony_cistatic const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1UPAL[] =
11618c2ecf20Sopenharmony_ci{
11628c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11638c2ecf20Sopenharmony_ci   0xf8,0x83,0x8f,0x70,0x20,0x00,0x05,
11648c2ecf20Sopenharmony_ci   0x00 }},
11658c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11668c2ecf20Sopenharmony_ci   0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
11678c2ecf20Sopenharmony_ci   0x00 }},
11688c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11698c2ecf20Sopenharmony_ci   0xf8,0x83,0x8f,0x70,0x20,0x00,0x05,
11708c2ecf20Sopenharmony_ci   0x00 }},
11718c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11728c2ecf20Sopenharmony_ci   0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
11738c2ecf20Sopenharmony_ci   0x00 }},
11748c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x5a,0x9f,0x6f,0xba,
11758c2ecf20Sopenharmony_ci   0x15,0x83,0xdf,0x70,0x00,0x00,0x01,
11768c2ecf20Sopenharmony_ci   0x00 }},
11778c2ecf20Sopenharmony_ci {{0x73,0x63,0x97,0x69,0x8b,0xec,0xf0,
11788c2ecf20Sopenharmony_ci   0x90,0x8c,0x57,0xed,0x20,0x00,0x05,
11798c2ecf20Sopenharmony_ci   0x01 }},
11808c2ecf20Sopenharmony_ci {{0xaa,0x7f,0x8e,0x8e,0x96,0xe6,0xf5,
11818c2ecf20Sopenharmony_ci   0x50,0x88,0xff,0xe7,0x10,0x00,0x02,
11828c2ecf20Sopenharmony_ci   0x01}}
11838c2ecf20Sopenharmony_ci};
11848c2ecf20Sopenharmony_ci
11858c2ecf20Sopenharmony_cistatic const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1OPAL[] =
11868c2ecf20Sopenharmony_ci{
11878c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11888c2ecf20Sopenharmony_ci   0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
11898c2ecf20Sopenharmony_ci   0x00 }},
11908c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11918c2ecf20Sopenharmony_ci   0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
11928c2ecf20Sopenharmony_ci   0x00 }},
11938c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11948c2ecf20Sopenharmony_ci   0xf0,0x83,0x8f,0x70,0x20,0x00,0x05,
11958c2ecf20Sopenharmony_ci   0x00 }},
11968c2ecf20Sopenharmony_ci {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e,
11978c2ecf20Sopenharmony_ci   0xde,0x81,0x5d,0x70,0x00,0x00,0x05,
11988c2ecf20Sopenharmony_ci   0x00 }},
11998c2ecf20Sopenharmony_ci {{0x64,0x4f,0x88,0x58,0x9d,0x6f,0xba,
12008c2ecf20Sopenharmony_ci   0x15,0x83,0xdf,0x70,0x00,0x00,0x01,
12018c2ecf20Sopenharmony_ci   0x00 }},
12028c2ecf20Sopenharmony_ci {{0x71,0x63,0x95,0x69,0x8c,0x6f,0xf0,
12038c2ecf20Sopenharmony_ci   0x5a,0x8b,0x57,0x70,0x20,0x00,0x05,
12048c2ecf20Sopenharmony_ci   0x01 }},
12058c2ecf20Sopenharmony_ci {{0xaa,0x7f,0x8e,0x8f,0x96,0x69,0xf5,
12068c2ecf20Sopenharmony_ci   0x28,0x88,0xff,0x6a,0x10,0x00,0x02,
12078c2ecf20Sopenharmony_ci   0x01 }}
12088c2ecf20Sopenharmony_ci};
12098c2ecf20Sopenharmony_ci
12108c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_UNTSC[] =
12118c2ecf20Sopenharmony_ci{
12128c2ecf20Sopenharmony_ci {{0x4a,0x77,0xbb,0x94,0x84,0x48,0xfe,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12138c2ecf20Sopenharmony_ci {{0x4a,0x77,0xbb,0x94,0x84,0x48,0xfe,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12148c2ecf20Sopenharmony_ci {{0x4a,0x77,0xbb,0x94,0x84,0x48,0xfe,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12158c2ecf20Sopenharmony_ci {{0x4a,0x77,0xbb,0x94,0x84,0x48,0xfe,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12168c2ecf20Sopenharmony_ci {{0x6a,0x77,0xbb,0x6e,0x84,0x2e,0x02,0x5a,0x04,0x00,0x80,0x20,0x7e,0x80,0x98,0x00}},
12178c2ecf20Sopenharmony_ci {{0xcf,0x77,0xb7,0xc8,0x84,0x3b,0x02,0x5a,0x04,0x00,0x80,0x19,0x88,0x30,0x7f,0x00}},
12188c2ecf20Sopenharmony_ci {{0xee,0x77,0xbb,0x66,0x87,0x32,0x01,0x5a,0x04,0x00,0x80,0x1b,0xd3,0xf2,0x36,0x00}}
12198c2ecf20Sopenharmony_ci}; /* WRONG: 0x02: should be 0xfx, because if CIVEnable is clear, this should be set;
12208c2ecf20Sopenharmony_ci             0x07: Blacklevel: NTSC/PAL-M: Should be 131 (0x83), and not 0x50/0x5a
12218c2ecf20Sopenharmony_ci	                       PAL/PAL-N:  110 (0x6e)
12228c2ecf20Sopenharmony_ci			       NTSC-J:     102 (0x66)
12238c2ecf20Sopenharmony_ci	     0x0c-0x0f: CIV is not default as in datasheet
12248c2ecf20Sopenharmony_ci      MISSING: 0x21: Should set D1 to ZERO (for NTSC, PAL-M) or ONE (PAL, NTSC-J)
12258c2ecf20Sopenharmony_ci      Most of this is wrong in all NTSC and PAL register arrays. But I won't correct
12268c2ecf20Sopenharmony_ci      it as long as it works. For NTSC-J, the blacklevel is corrected in init301.c;
12278c2ecf20Sopenharmony_ci      for PAL-M and PAL-N all above is corrected.
12288c2ecf20Sopenharmony_ci    */
12298c2ecf20Sopenharmony_ci
12308c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_ONTSC[] =
12318c2ecf20Sopenharmony_ci{
12328c2ecf20Sopenharmony_ci {{0x49,0x77,0xbb,0x7b,0x84,0x34,0x00,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12338c2ecf20Sopenharmony_ci {{0x49,0x77,0xbb,0x7b,0x84,0x34,0x00,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12348c2ecf20Sopenharmony_ci {{0x49,0x77,0xbb,0x7b,0x84,0x34,0x00,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12358c2ecf20Sopenharmony_ci {{0x49,0x77,0xbb,0x7b,0x84,0x34,0x00,0x50,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12368c2ecf20Sopenharmony_ci {{0x69,0x77,0xbb,0x6e,0x84,0x1e,0x00,0x5a,0x04,0x00,0x80,0x25,0x1a,0x43,0x04,0x00}},
12378c2ecf20Sopenharmony_ci {{0xce,0x77,0xb7,0xb6,0x83,0x2c,0x02,0x5a,0x04,0x00,0x80,0x1c,0x00,0x82,0x97,0x00}},
12388c2ecf20Sopenharmony_ci {{0xed,0x77,0xbb,0x66,0x8c,0x21,0x02,0x5a,0x04,0x00,0x80,0x1f,0x9f,0xc1,0x0c,0x00}}
12398c2ecf20Sopenharmony_ci};
12408c2ecf20Sopenharmony_ci
12418c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_UPAL[] =
12428c2ecf20Sopenharmony_ci{
12438c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x34,0xad,0x50,0x34,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12448c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x80,0x85,0x50,0x00,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12458c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x34,0xad,0x50,0x34,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12468c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x12,0x85,0x50,0x00,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12478c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x5a,0x05,0x00,0x80,0x26,0x2a,0x55,0x5d,0x00}},
12488c2ecf20Sopenharmony_ci {{0xc3,0x7f,0xb7,0x7a,0x84,0x40,0x02,0x5a,0x05,0x00,0x80,0x1f,0x84,0x3d,0x28,0x00}},
12498c2ecf20Sopenharmony_ci {{0xe5,0x7f,0xb7,0x1d,0xa7,0x3e,0x04,0x5a,0x05,0x00,0x80,0x20,0x3e,0xe4,0x22,0x00}}
12508c2ecf20Sopenharmony_ci};
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_OPAL[] =
12538c2ecf20Sopenharmony_ci{
12548c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x36,0xad,0x50,0x34,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12558c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x86,0x85,0x50,0x00,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12568c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x36,0xad,0x50,0x34,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12578c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x86,0x85,0x50,0x00,0x83,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12588c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x5a,0x05,0x00,0x80,0x26,0x2a,0x55,0x5d,0x00}},
12598c2ecf20Sopenharmony_ci {{0xc1,0x7f,0xb7,0x4d,0x8c,0x1e,0x31,0x5a,0x05,0x00,0x80,0x26,0x78,0x19,0x34,0x00}},
12608c2ecf20Sopenharmony_ci {{0xe4,0x7f,0xb7,0x1e,0xaf,0x29,0x37,0x5a,0x05,0x00,0x80,0x25,0x8c,0xb2,0x2a,0x00}}
12618c2ecf20Sopenharmony_ci};
12628c2ecf20Sopenharmony_ci
12638c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_UPALM[] =
12648c2ecf20Sopenharmony_ci{
12658c2ecf20Sopenharmony_ci {{0x52,0x77,0xbb,0x94,0x84,0x48,0xfe,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12668c2ecf20Sopenharmony_ci {{0x52,0x77,0xbb,0x94,0x84,0x48,0xfe,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12678c2ecf20Sopenharmony_ci {{0x52,0x77,0xbb,0x94,0x84,0x48,0xfe,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12688c2ecf20Sopenharmony_ci {{0x52,0x77,0xbb,0x94,0x84,0x48,0xfe,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12698c2ecf20Sopenharmony_ci {{0x72,0x77,0xfb,0x6e,0x84,0x2e,0x02,0x83,0x04,0x00,0x80,0x20,0x76,0xdb,0x6e,0x00}},
12708c2ecf20Sopenharmony_ci {{0xd7,0x77,0xf7,0xc8,0x84,0x3b,0x02,0x83,0x04,0x00,0x80,0x19,0x84,0x0a,0xc7,0x00}},
12718c2ecf20Sopenharmony_ci {{0xf6,0x77,0xfb,0x66,0x87,0x32,0x01,0x83,0x04,0x00,0x80,0x1b,0xdc,0xb0,0x8d,0x00}}
12728c2ecf20Sopenharmony_ci#if 0 /* Correct blacklevel and CFRB */
12738c2ecf20Sopenharmony_ci {{0x72,0x77,0xbb,0x6e,0x84,0x2e,0x02,0x5a,0x04,0x00,0x80,0x20,0x76,0xdb,0x6e,0x00}},
12748c2ecf20Sopenharmony_ci {{0xd7,0x77,0xb7,0xc8,0x84,0x3b,0x02,0x5a,0x04,0x00,0x80,0x19,0x84,0x0a,0xc7,0x00}},
12758c2ecf20Sopenharmony_ci {{0xf6,0x77,0xbb,0x66,0x87,0x32,0x01,0x5a,0x04,0x00,0x80,0x1b,0xdc,0xb0,0x8d,0x00}}
12768c2ecf20Sopenharmony_ci#endif
12778c2ecf20Sopenharmony_ci};
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_OPALM[] =
12808c2ecf20Sopenharmony_ci{
12818c2ecf20Sopenharmony_ci {{0x51,0x77,0xbb,0x7b,0x84,0x34,0x00,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12828c2ecf20Sopenharmony_ci {{0x51,0x77,0xbb,0x7b,0x84,0x34,0x00,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12838c2ecf20Sopenharmony_ci {{0x51,0x77,0xbb,0x7b,0x84,0x34,0x00,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12848c2ecf20Sopenharmony_ci {{0x51,0x77,0xbb,0x7b,0x84,0x34,0x00,0x83,0x04,0x00,0x80,0x00,0x00,0x00,0x00,0x01}},
12858c2ecf20Sopenharmony_ci {{0x71,0x77,0xfb,0x6e,0x84,0x1e,0x00,0x83,0x04,0x00,0x80,0x25,0x1a,0x1f,0x59,0x00}},
12868c2ecf20Sopenharmony_ci {{0xd6,0x77,0xf7,0xb6,0x83,0x2c,0x02,0x83,0x04,0x00,0x80,0x1b,0xf8,0x1f,0x82,0x00}},
12878c2ecf20Sopenharmony_ci {{0xf5,0x77,0xfb,0x66,0x8c,0x21,0x02,0x83,0x04,0x00,0x80,0x1f,0x58,0x46,0x9f,0x00}}
12888c2ecf20Sopenharmony_ci#if 0 /* Correct blacklevel and CFRB */
12898c2ecf20Sopenharmony_ci {{0x71,0x77,0xbb,0x6e,0x84,0x1e,0x00,0x5a,0x04,0x00,0x80,0x25,0x1a,0x1f,0x59,0x00}},
12908c2ecf20Sopenharmony_ci {{0xd6,0x77,0xb7,0xb6,0x83,0x2c,0x02,0x5a,0x04,0x00,0x80,0x1b,0xf8,0x1f,0x82,0x00}},
12918c2ecf20Sopenharmony_ci {{0xf5,0x77,0xbb,0x66,0x8c,0x21,0x02,0x5a,0x04,0x00,0x80,0x1f,0x58,0x46,0x9f,0x00}}
12928c2ecf20Sopenharmony_ci#endif
12938c2ecf20Sopenharmony_ci};
12948c2ecf20Sopenharmony_ci
12958c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_UPALN[] =
12968c2ecf20Sopenharmony_ci{
12978c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x34,0xad,0x50,0x34,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
12988c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x80,0x85,0x50,0x00,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
12998c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x34,0xad,0x50,0x34,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13008c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x12,0x85,0x50,0x00,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13018c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13028c2ecf20Sopenharmony_ci {{0xc3,0x7f,0xb7,0x7a,0x84,0x40,0x02,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13038c2ecf20Sopenharmony_ci {{0xe5,0x7f,0xb7,0x1d,0xa7,0x3e,0x04,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}}
13048c2ecf20Sopenharmony_ci#if 0 /* Correct blacklevel, CIV and CFRB */
13058c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x5a,0x05,0x00,0x80,0x1f,0x0d,0x54,0x5e,0x00}},
13068c2ecf20Sopenharmony_ci {{0xc3,0x7f,0xb7,0x7a,0x84,0x40,0x02,0x5a,0x05,0x00,0x80,0x19,0x78,0xef,0x35,0x00}},
13078c2ecf20Sopenharmony_ci {{0xe5,0x7f,0xb7,0x1d,0xa7,0x3e,0x04,0x5a,0x05,0x00,0x80,0x1a,0x33,0x3f,0x2f,0x00}}
13088c2ecf20Sopenharmony_ci#endif
13098c2ecf20Sopenharmony_ci};
13108c2ecf20Sopenharmony_ci
13118c2ecf20Sopenharmony_cistatic const struct SiS_CHTVRegData SiS310_CHTVReg_OPALN[] =
13128c2ecf20Sopenharmony_ci{
13138c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x36,0xad,0x50,0x34,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13148c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x86,0x85,0x50,0x00,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13158c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x36,0xad,0x50,0x34,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13168c2ecf20Sopenharmony_ci {{0x41,0x7f,0xb7,0x86,0x85,0x50,0x00,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13178c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13188c2ecf20Sopenharmony_ci {{0xc1,0x7f,0xb7,0x4d,0x8c,0x1e,0x31,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}},
13198c2ecf20Sopenharmony_ci {{0xe4,0x7f,0xb7,0x1e,0xaf,0x29,0x37,0x6e,0x05,0x00,0x80,0x00,0x00,0x00,0x00,0x03}}
13208c2ecf20Sopenharmony_ci#if 0 /* Correct blacklevel, CIV and CFRB */
13218c2ecf20Sopenharmony_ci {{0x61,0x7f,0xb7,0x99,0x84,0x35,0x04,0x5a,0x05,0x00,0x80,0x1f,0x0d,0x54,0x5e,0x00}},
13228c2ecf20Sopenharmony_ci {{0xc1,0x7f,0xb7,0x4d,0x8c,0x1e,0x31,0x5a,0x05,0x00,0x80,0x1f,0x15,0xc0,0x1e,0x00}},
13238c2ecf20Sopenharmony_ci {{0xe4,0x7f,0xb7,0x1e,0xaf,0x29,0x37,0x5a,0x05,0x00,0x80,0x1d,0xf1,0x6c,0xcb,0x00}}
13248c2ecf20Sopenharmony_ci#endif
13258c2ecf20Sopenharmony_ci};
13268c2ecf20Sopenharmony_ci
13278c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKUNTSC[] = { 0x41,0x41,0x41,0x41,0x42,0x46,0x53 };
13288c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKONTSC[] = { 0x48,0x48,0x48,0x48,0x45,0x43,0x51 };
13298c2ecf20Sopenharmony_ci
13308c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKUPAL[]  = { 0x47,0x47,0x47,0x47,0x48,0x4a,0x54 };
13318c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKOPAL[]  = { 0x47,0x47,0x47,0x47,0x48,0x4f,0x52 };
13328c2ecf20Sopenharmony_ci
13338c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKUPALM[] = { 0x41,0x41,0x41,0x41,0x42,0x46,0x53 };
13348c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKOPALM[] = { 0x48,0x48,0x48,0x48,0x45,0x43,0x51 };
13358c2ecf20Sopenharmony_ci
13368c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKUPALN[] = { 0x47,0x47,0x47,0x47,0x48,0x4a,0x54 };
13378c2ecf20Sopenharmony_cistatic const unsigned char SiS310_CHTVVCLKOPALN[] = { 0x47,0x47,0x47,0x47,0x48,0x4f,0x52 };
13388c2ecf20Sopenharmony_ci
13398c2ecf20Sopenharmony_ci
1340