vstruct.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. /* $XFree86$ */
  2. /* $XdotOrg$ */
  3. /*
  4. * General structure definitions for universal mode switching modules
  5. *
  6. * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria
  7. *
  8. * If distributed as part of the Linux kernel, the following license terms
  9. * apply:
  10. *
  11. * * This program is free software; you can redistribute it and/or modify
  12. * * it under the terms of the GNU General Public License as published by
  13. * * the Free Software Foundation; either version 2 of the named License,
  14. * * or any later version.
  15. * *
  16. * * This program is distributed in the hope that it will be useful,
  17. * * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * * GNU General Public License for more details.
  20. * *
  21. * * You should have received a copy of the GNU General Public License
  22. * * along with this program; if not, write to the Free Software
  23. * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
  24. *
  25. * Otherwise, the following license terms apply:
  26. *
  27. * * Redistribution and use in source and binary forms, with or without
  28. * * modification, are permitted provided that the following conditions
  29. * * are met:
  30. * * 1) Redistributions of source code must retain the above copyright
  31. * * notice, this list of conditions and the following disclaimer.
  32. * * 2) Redistributions in binary form must reproduce the above copyright
  33. * * notice, this list of conditions and the following disclaimer in the
  34. * * documentation and/or other materials provided with the distribution.
  35. * * 3) The name of the author may not be used to endorse or promote products
  36. * * derived from this software without specific prior written permission.
  37. * *
  38. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  39. * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  40. * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  41. * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  42. * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  43. * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  44. * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  45. * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  46. * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  47. * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  48. *
  49. * Author: Thomas Winischhofer <thomas@winischhofer.net>
  50. *
  51. */
  52. #ifndef _VSTRUCT_
  53. #define _VSTRUCT_
  54. typedef struct _SiS_PanelDelayTblStruct
  55. {
  56. UCHAR timer[2];
  57. } SiS_PanelDelayTblStruct;
  58. typedef struct _SiS_LCDDataStruct
  59. {
  60. USHORT RVBHCMAX;
  61. USHORT RVBHCFACT;
  62. USHORT VGAHT;
  63. USHORT VGAVT;
  64. USHORT LCDHT;
  65. USHORT LCDVT;
  66. } SiS_LCDDataStruct;
  67. typedef struct _SiS_TVDataStruct
  68. {
  69. USHORT RVBHCMAX;
  70. USHORT RVBHCFACT;
  71. USHORT VGAHT;
  72. USHORT VGAVT;
  73. USHORT TVHDE;
  74. USHORT TVVDE;
  75. USHORT RVBHRS;
  76. UCHAR FlickerMode;
  77. USHORT HALFRVBHRS;
  78. UCHAR RY1COE;
  79. UCHAR RY2COE;
  80. UCHAR RY3COE;
  81. UCHAR RY4COE;
  82. } SiS_TVDataStruct;
  83. typedef struct _SiS_LVDSDataStruct
  84. {
  85. USHORT VGAHT;
  86. USHORT VGAVT;
  87. USHORT LCDHT;
  88. USHORT LCDVT;
  89. } SiS_LVDSDataStruct;
  90. typedef struct _SiS_LVDSDesStruct
  91. {
  92. USHORT LCDHDES;
  93. USHORT LCDVDES;
  94. } SiS_LVDSDesStruct;
  95. typedef struct _SiS_LVDSCRT1DataStruct
  96. {
  97. UCHAR CR[15];
  98. } SiS_LVDSCRT1DataStruct;
  99. typedef struct _SiS_LCDACRT1DataStruct
  100. {
  101. UCHAR CR[17];
  102. } SiS_LCDACRT1DataStruct;
  103. typedef struct _SiS_CHTVRegDataStruct
  104. {
  105. UCHAR Reg[16];
  106. } SiS_CHTVRegDataStruct;
  107. typedef struct _SiS_StStruct
  108. {
  109. UCHAR St_ModeID;
  110. USHORT St_ModeFlag;
  111. UCHAR St_StTableIndex;
  112. UCHAR St_CRT2CRTC;
  113. UCHAR St_ResInfo;
  114. UCHAR VB_StTVFlickerIndex;
  115. UCHAR VB_StTVEdgeIndex;
  116. UCHAR VB_StTVYFilterIndex;
  117. UCHAR St_PDC;
  118. } SiS_StStruct;
  119. typedef struct _SiS_VBModeStruct
  120. {
  121. UCHAR ModeID;
  122. UCHAR VB_TVDelayIndex;
  123. UCHAR VB_TVFlickerIndex;
  124. UCHAR VB_TVPhaseIndex;
  125. UCHAR VB_TVYFilterIndex;
  126. UCHAR VB_LCDDelayIndex;
  127. UCHAR _VB_LCDHIndex;
  128. UCHAR _VB_LCDVIndex;
  129. } SiS_VBModeStruct;
  130. typedef struct _SiS_StandTableStruct
  131. {
  132. UCHAR CRT_COLS;
  133. UCHAR ROWS;
  134. UCHAR CHAR_HEIGHT;
  135. USHORT CRT_LEN;
  136. UCHAR SR[4];
  137. UCHAR MISC;
  138. UCHAR CRTC[0x19];
  139. UCHAR ATTR[0x14];
  140. UCHAR GRC[9];
  141. } SiS_StandTableStruct;
  142. typedef struct _SiS_ExtStruct
  143. {
  144. UCHAR Ext_ModeID;
  145. USHORT Ext_ModeFlag;
  146. USHORT Ext_VESAID;
  147. UCHAR Ext_RESINFO;
  148. UCHAR VB_ExtTVFlickerIndex;
  149. UCHAR VB_ExtTVEdgeIndex;
  150. UCHAR VB_ExtTVYFilterIndex;
  151. UCHAR VB_ExtTVYFilterIndexROM661;
  152. UCHAR REFindex;
  153. CHAR ROMMODEIDX661;
  154. } SiS_ExtStruct;
  155. typedef struct _SiS_Ext2Struct
  156. {
  157. USHORT Ext_InfoFlag;
  158. UCHAR Ext_CRT1CRTC;
  159. UCHAR Ext_CRTVCLK;
  160. UCHAR Ext_CRT2CRTC;
  161. UCHAR Ext_CRT2CRTC_NS;
  162. UCHAR ModeID;
  163. USHORT XRes;
  164. USHORT YRes;
  165. UCHAR Ext_PDC;
  166. } SiS_Ext2Struct;
  167. typedef struct _SiS_Part2PortTblStruct
  168. {
  169. UCHAR CR[12];
  170. } SiS_Part2PortTblStruct;
  171. typedef struct _SiS_CRT1TableStruct
  172. {
  173. UCHAR CR[17];
  174. } SiS_CRT1TableStruct;
  175. typedef struct _SiS_MCLKDataStruct
  176. {
  177. UCHAR SR28,SR29,SR2A;
  178. USHORT CLOCK;
  179. } SiS_MCLKDataStruct;
  180. typedef struct _SiS_VCLKDataStruct
  181. {
  182. UCHAR SR2B,SR2C;
  183. USHORT CLOCK;
  184. } SiS_VCLKDataStruct;
  185. typedef struct _SiS_VBVCLKDataStruct
  186. {
  187. UCHAR Part4_A,Part4_B;
  188. USHORT CLOCK;
  189. } SiS_VBVCLKDataStruct;
  190. typedef struct _SiS_StResInfoStruct
  191. {
  192. USHORT HTotal;
  193. USHORT VTotal;
  194. } SiS_StResInfoStruct;
  195. typedef struct _SiS_ModeResInfoStruct
  196. {
  197. USHORT HTotal;
  198. USHORT VTotal;
  199. UCHAR XChar;
  200. UCHAR YChar;
  201. } SiS_ModeResInfoStruct;
  202. typedef UCHAR DRAM4Type[4];
  203. /* Defines for SiS_CustomT */
  204. /* Never change these for sisfb compatibility */
  205. #define CUT_NONE 0
  206. #define CUT_FORCENONE 1
  207. #define CUT_BARCO1366 2
  208. #define CUT_BARCO1024 3
  209. #define CUT_COMPAQ1280 4
  210. #define CUT_COMPAQ12802 5
  211. #define CUT_PANEL848 6
  212. #define CUT_CLEVO1024 7
  213. #define CUT_CLEVO10242 8
  214. #define CUT_CLEVO1400 9
  215. #define CUT_CLEVO14002 10
  216. #define CUT_UNIWILL1024 11
  217. #define CUT_ASUSL3000D 12
  218. #define CUT_UNIWILL10242 13
  219. #define CUT_ACER1280 14
  220. #define CUT_COMPAL1400_1 15
  221. #define CUT_COMPAL1400_2 16
  222. #define CUT_ASUSA2H_1 17
  223. #define CUT_ASUSA2H_2 18
  224. typedef struct _SiS_Private
  225. {
  226. #ifdef LINUX_KERNEL
  227. SISIOADDRESS RelIO;
  228. #endif
  229. SISIOADDRESS SiS_P3c4;
  230. SISIOADDRESS SiS_P3d4;
  231. SISIOADDRESS SiS_P3c0;
  232. SISIOADDRESS SiS_P3ce;
  233. SISIOADDRESS SiS_P3c2;
  234. SISIOADDRESS SiS_P3ca;
  235. SISIOADDRESS SiS_P3c6;
  236. SISIOADDRESS SiS_P3c7;
  237. SISIOADDRESS SiS_P3c8;
  238. SISIOADDRESS SiS_P3c9;
  239. SISIOADDRESS SiS_P3cb;
  240. SISIOADDRESS SiS_P3cd;
  241. SISIOADDRESS SiS_P3da;
  242. SISIOADDRESS SiS_Part1Port;
  243. SISIOADDRESS SiS_Part2Port;
  244. SISIOADDRESS SiS_Part3Port;
  245. SISIOADDRESS SiS_Part4Port;
  246. SISIOADDRESS SiS_Part5Port;
  247. SISIOADDRESS SiS_VidCapt;
  248. SISIOADDRESS SiS_VidPlay;
  249. USHORT SiS_IF_DEF_LVDS;
  250. USHORT SiS_IF_DEF_CH70xx;
  251. USHORT SiS_IF_DEF_CONEX;
  252. USHORT SiS_IF_DEF_TRUMPION;
  253. USHORT SiS_IF_DEF_DSTN;
  254. USHORT SiS_IF_DEF_FSTN;
  255. USHORT SiS_SysFlags;
  256. UCHAR SiS_VGAINFO;
  257. #ifdef LINUX_XF86
  258. USHORT SiS_CP1, SiS_CP2, SiS_CP3, SiS_CP4;
  259. #endif
  260. BOOLEAN SiS_UseROM;
  261. BOOLEAN SiS_ROMNew;
  262. BOOLEAN SiS_NeedRomModeData;
  263. BOOLEAN PanelSelfDetected;
  264. int SiS_CHOverScan;
  265. BOOLEAN SiS_CHSOverScan;
  266. BOOLEAN SiS_ChSW;
  267. BOOLEAN SiS_UseLCDA;
  268. int SiS_UseOEM;
  269. ULONG SiS_CustomT;
  270. USHORT SiS_Backup70xx;
  271. BOOLEAN HaveEMI;
  272. BOOLEAN HaveEMILCD;
  273. BOOLEAN OverruleEMI;
  274. UCHAR EMI_30,EMI_31,EMI_32,EMI_33;
  275. USHORT SiS_EMIOffset;
  276. SHORT PDC, PDCA;
  277. UCHAR SiS_MyCR63;
  278. USHORT SiS_CRT1Mode;
  279. USHORT SiS_flag_clearbuffer;
  280. int SiS_RAMType;
  281. UCHAR SiS_ChannelAB;
  282. UCHAR SiS_DataBusWidth;
  283. USHORT SiS_ModeType;
  284. USHORT SiS_VBInfo;
  285. USHORT SiS_TVMode;
  286. USHORT SiS_LCDResInfo;
  287. USHORT SiS_LCDTypeInfo;
  288. USHORT SiS_LCDInfo;
  289. USHORT SiS_LCDInfo661;
  290. USHORT SiS_VBType;
  291. USHORT SiS_VBExtInfo;
  292. USHORT SiS_YPbPr;
  293. USHORT SiS_SelectCRT2Rate;
  294. USHORT SiS_SetFlag;
  295. USHORT SiS_RVBHCFACT;
  296. USHORT SiS_RVBHCMAX;
  297. USHORT SiS_RVBHRS;
  298. USHORT SiS_VGAVT;
  299. USHORT SiS_VGAHT;
  300. USHORT SiS_VT;
  301. USHORT SiS_HT;
  302. USHORT SiS_VGAVDE;
  303. USHORT SiS_VGAHDE;
  304. USHORT SiS_VDE;
  305. USHORT SiS_HDE;
  306. USHORT SiS_NewFlickerMode;
  307. USHORT SiS_RY1COE;
  308. USHORT SiS_RY2COE;
  309. USHORT SiS_RY3COE;
  310. USHORT SiS_RY4COE;
  311. USHORT SiS_LCDHDES;
  312. USHORT SiS_LCDVDES;
  313. USHORT SiS_DDC_Port;
  314. USHORT SiS_DDC_Index;
  315. USHORT SiS_DDC_Data;
  316. USHORT SiS_DDC_NData;
  317. USHORT SiS_DDC_Clk;
  318. USHORT SiS_DDC_NClk;
  319. USHORT SiS_DDC_DeviceAddr;
  320. USHORT SiS_DDC_ReadAddr;
  321. USHORT SiS_DDC_SecAddr;
  322. USHORT SiS_ChrontelInit;
  323. BOOLEAN SiS_SensibleSR11;
  324. USHORT SiS661LCD2TableSize;
  325. USHORT SiS_PanelMinLVDS;
  326. USHORT SiS_PanelMin301;
  327. const SiS_StStruct *SiS_SModeIDTable;
  328. const SiS_StandTableStruct *SiS_StandTable;
  329. const SiS_ExtStruct *SiS_EModeIDTable;
  330. const SiS_Ext2Struct *SiS_RefIndex;
  331. const SiS_VBModeStruct *SiS_VBModeIDTable;
  332. const SiS_CRT1TableStruct *SiS_CRT1Table;
  333. const SiS_MCLKDataStruct *SiS_MCLKData_0;
  334. const SiS_MCLKDataStruct *SiS_MCLKData_1;
  335. SiS_VCLKDataStruct *SiS_VCLKData;
  336. SiS_VBVCLKDataStruct *SiS_VBVCLKData;
  337. const SiS_StResInfoStruct *SiS_StResInfo;
  338. const SiS_ModeResInfoStruct *SiS_ModeResInfo;
  339. const UCHAR *pSiS_OutputSelect;
  340. const UCHAR *pSiS_SoftSetting;
  341. const DRAM4Type *SiS_SR15; /* pointer : point to array */
  342. #ifdef LINUX_KERNEL
  343. UCHAR *pSiS_SR07;
  344. const DRAM4Type *SiS_CR40; /* pointer : point to array */
  345. UCHAR *SiS_CR49;
  346. UCHAR *SiS_SR25;
  347. UCHAR *pSiS_SR1F;
  348. UCHAR *pSiS_SR21;
  349. UCHAR *pSiS_SR22;
  350. UCHAR *pSiS_SR23;
  351. UCHAR *pSiS_SR24;
  352. UCHAR *pSiS_SR31;
  353. UCHAR *pSiS_SR32;
  354. UCHAR *pSiS_SR33;
  355. UCHAR *pSiS_CRT2Data_1_2;
  356. UCHAR *pSiS_CRT2Data_4_D;
  357. UCHAR *pSiS_CRT2Data_4_E;
  358. UCHAR *pSiS_CRT2Data_4_10;
  359. const USHORT *pSiS_RGBSenseData;
  360. const USHORT *pSiS_VideoSenseData;
  361. const USHORT *pSiS_YCSenseData;
  362. const USHORT *pSiS_RGBSenseData2;
  363. const USHORT *pSiS_VideoSenseData2;
  364. const USHORT *pSiS_YCSenseData2;
  365. #endif
  366. const SiS_PanelDelayTblStruct *SiS_PanelDelayTbl;
  367. const SiS_PanelDelayTblStruct *SiS_PanelDelayTblLVDS;
  368. /* SiS bridge */
  369. const UCHAR *SiS_NTSCPhase;
  370. const UCHAR *SiS_PALPhase;
  371. const UCHAR *SiS_NTSCPhase2;
  372. const UCHAR *SiS_PALPhase2;
  373. const UCHAR *SiS_PALMPhase;
  374. const UCHAR *SiS_PALNPhase;
  375. const UCHAR *SiS_PALMPhase2;
  376. const UCHAR *SiS_PALNPhase2;
  377. const UCHAR *SiS_SpecialPhase;
  378. const UCHAR *SiS_SpecialPhaseM;
  379. const UCHAR *SiS_SpecialPhaseJ;
  380. const SiS_LCDDataStruct *SiS_ExtLCD1024x768Data;
  381. const SiS_LCDDataStruct *SiS_St2LCD1024x768Data;
  382. const SiS_LCDDataStruct *SiS_LCD1280x720Data;
  383. const SiS_LCDDataStruct *SiS_StLCD1280x768_2Data;
  384. const SiS_LCDDataStruct *SiS_ExtLCD1280x768_2Data;
  385. const SiS_LCDDataStruct *SiS_LCD1280x800Data;
  386. const SiS_LCDDataStruct *SiS_LCD1280x800_2Data;
  387. const SiS_LCDDataStruct *SiS_LCD1280x960Data;
  388. const SiS_LCDDataStruct *SiS_ExtLCD1280x1024Data;
  389. const SiS_LCDDataStruct *SiS_St2LCD1280x1024Data;
  390. const SiS_LCDDataStruct *SiS_StLCD1400x1050Data;
  391. const SiS_LCDDataStruct *SiS_ExtLCD1400x1050Data;
  392. const SiS_LCDDataStruct *SiS_StLCD1600x1200Data;
  393. const SiS_LCDDataStruct *SiS_ExtLCD1600x1200Data;
  394. const SiS_LCDDataStruct *SiS_LCD1680x1050Data;
  395. const SiS_LCDDataStruct *SiS_NoScaleData;
  396. const SiS_TVDataStruct *SiS_StPALData;
  397. const SiS_TVDataStruct *SiS_ExtPALData;
  398. const SiS_TVDataStruct *SiS_StNTSCData;
  399. const SiS_TVDataStruct *SiS_ExtNTSCData;
  400. const SiS_TVDataStruct *SiS_St1HiTVData;
  401. const SiS_TVDataStruct *SiS_St2HiTVData;
  402. const SiS_TVDataStruct *SiS_ExtHiTVData;
  403. const SiS_TVDataStruct *SiS_St525iData;
  404. const SiS_TVDataStruct *SiS_St525pData;
  405. const SiS_TVDataStruct *SiS_St750pData;
  406. const SiS_TVDataStruct *SiS_Ext525iData;
  407. const SiS_TVDataStruct *SiS_Ext525pData;
  408. const SiS_TVDataStruct *SiS_Ext750pData;
  409. const UCHAR *SiS_NTSCTiming;
  410. const UCHAR *SiS_PALTiming;
  411. const UCHAR *SiS_HiTVExtTiming;
  412. const UCHAR *SiS_HiTVSt1Timing;
  413. const UCHAR *SiS_HiTVSt2Timing;
  414. const UCHAR *SiS_HiTVGroup3Data;
  415. const UCHAR *SiS_HiTVGroup3Simu;
  416. #if 0
  417. const UCHAR *SiS_HiTVTextTiming;
  418. const UCHAR *SiS_HiTVGroup3Text;
  419. #endif
  420. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1024x768_1;
  421. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1280x1024_1;
  422. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1024x768_2;
  423. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1280x1024_2;
  424. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1024x768_3;
  425. const SiS_Part2PortTblStruct *SiS_CRT2Part2_1280x1024_3;
  426. /* LVDS, Chrontel */
  427. const SiS_LVDSDataStruct *SiS_LVDS800x600Data_1;
  428. const SiS_LVDSDataStruct *SiS_LVDS800x600Data_2;
  429. const SiS_LVDSDataStruct *SiS_LVDS1024x768Data_1;
  430. const SiS_LVDSDataStruct *SiS_LVDS1024x768Data_2;
  431. const SiS_LVDSDataStruct *SiS_LVDS1280x1024Data_1;
  432. const SiS_LVDSDataStruct *SiS_LVDS1280x1024Data_2;
  433. const SiS_LVDSDataStruct *SiS_LVDS1280x960Data_1;
  434. const SiS_LVDSDataStruct *SiS_LVDS1280x960Data_2;
  435. const SiS_LVDSDataStruct *SiS_LVDS1400x1050Data_1;
  436. const SiS_LVDSDataStruct *SiS_LVDS1400x1050Data_2;
  437. const SiS_LVDSDataStruct *SiS_LVDS1600x1200Data_1;
  438. const SiS_LVDSDataStruct *SiS_LVDS1600x1200Data_2;
  439. const SiS_LVDSDataStruct *SiS_LVDS1280x768Data_1;
  440. const SiS_LVDSDataStruct *SiS_LVDS1280x768Data_2;
  441. const SiS_LVDSDataStruct *SiS_LVDS1024x600Data_1;
  442. const SiS_LVDSDataStruct *SiS_LVDS1024x600Data_2;
  443. const SiS_LVDSDataStruct *SiS_LVDS1152x768Data_1;
  444. const SiS_LVDSDataStruct *SiS_LVDS1152x768Data_2;
  445. const SiS_LVDSDataStruct *SiS_LVDS640x480Data_1;
  446. const SiS_LVDSDataStruct *SiS_LVDS640x480Data_2;
  447. const SiS_LVDSDataStruct *SiS_LVDS320x480Data_1;
  448. const SiS_LVDSDataStruct *SiS_LVDSXXXxXXXData_1;
  449. const SiS_LVDSDataStruct *SiS_LVDSBARCO1366Data_1;
  450. const SiS_LVDSDataStruct *SiS_LVDSBARCO1366Data_2;
  451. const SiS_LVDSDataStruct *SiS_LVDSBARCO1024Data_1;
  452. const SiS_LVDSDataStruct *SiS_LVDSBARCO1024Data_2;
  453. const SiS_LVDSDataStruct *SiS_LVDS848x480Data_1;
  454. const SiS_LVDSDataStruct *SiS_LVDS848x480Data_2;
  455. const SiS_LVDSDataStruct *SiS_CHTVUNTSCData;
  456. const SiS_LVDSDataStruct *SiS_CHTVONTSCData;
  457. const SiS_LVDSDataStruct *SiS_CHTVUPALData;
  458. const SiS_LVDSDataStruct *SiS_CHTVOPALData;
  459. const SiS_LVDSDataStruct *SiS_CHTVUPALMData;
  460. const SiS_LVDSDataStruct *SiS_CHTVOPALMData;
  461. const SiS_LVDSDataStruct *SiS_CHTVUPALNData;
  462. const SiS_LVDSDataStruct *SiS_CHTVOPALNData;
  463. const SiS_LVDSDataStruct *SiS_CHTVSOPALData;
  464. const SiS_LVDSDesStruct *SiS_PanelType00_1;
  465. const SiS_LVDSDesStruct *SiS_PanelType01_1;
  466. const SiS_LVDSDesStruct *SiS_PanelType02_1;
  467. const SiS_LVDSDesStruct *SiS_PanelType03_1;
  468. const SiS_LVDSDesStruct *SiS_PanelType04_1;
  469. const SiS_LVDSDesStruct *SiS_PanelType05_1;
  470. const SiS_LVDSDesStruct *SiS_PanelType06_1;
  471. const SiS_LVDSDesStruct *SiS_PanelType07_1;
  472. const SiS_LVDSDesStruct *SiS_PanelType08_1;
  473. const SiS_LVDSDesStruct *SiS_PanelType09_1;
  474. const SiS_LVDSDesStruct *SiS_PanelType0a_1;
  475. const SiS_LVDSDesStruct *SiS_PanelType0b_1;
  476. const SiS_LVDSDesStruct *SiS_PanelType0c_1;
  477. const SiS_LVDSDesStruct *SiS_PanelType0d_1;
  478. const SiS_LVDSDesStruct *SiS_PanelType0e_1;
  479. const SiS_LVDSDesStruct *SiS_PanelType0f_1;
  480. const SiS_LVDSDesStruct *SiS_PanelTypeNS_1;
  481. const SiS_LVDSDesStruct *SiS_PanelType00_2;
  482. const SiS_LVDSDesStruct *SiS_PanelType01_2;
  483. const SiS_LVDSDesStruct *SiS_PanelType02_2;
  484. const SiS_LVDSDesStruct *SiS_PanelType03_2;
  485. const SiS_LVDSDesStruct *SiS_PanelType04_2;
  486. const SiS_LVDSDesStruct *SiS_PanelType05_2;
  487. const SiS_LVDSDesStruct *SiS_PanelType06_2;
  488. const SiS_LVDSDesStruct *SiS_PanelType07_2;
  489. const SiS_LVDSDesStruct *SiS_PanelType08_2;
  490. const SiS_LVDSDesStruct *SiS_PanelType09_2;
  491. const SiS_LVDSDesStruct *SiS_PanelType0a_2;
  492. const SiS_LVDSDesStruct *SiS_PanelType0b_2;
  493. const SiS_LVDSDesStruct *SiS_PanelType0c_2;
  494. const SiS_LVDSDesStruct *SiS_PanelType0d_2;
  495. const SiS_LVDSDesStruct *SiS_PanelType0e_2;
  496. const SiS_LVDSDesStruct *SiS_PanelType0f_2;
  497. const SiS_LVDSDesStruct *SiS_PanelTypeNS_2;
  498. const SiS_LVDSDesStruct *SiS_CHTVUNTSCDesData;
  499. const SiS_LVDSDesStruct *SiS_CHTVONTSCDesData;
  500. const SiS_LVDSDesStruct *SiS_CHTVUPALDesData;
  501. const SiS_LVDSDesStruct *SiS_CHTVOPALDesData;
  502. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1800x600_1;
  503. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x768_1;
  504. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x1024_1;
  505. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11400x1050_1;
  506. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x768_1;
  507. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x600_1;
  508. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11152x768_1;
  509. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11600x1200_1;
  510. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1800x600_1_H;
  511. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x768_1_H;
  512. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x1024_1_H;
  513. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11400x1050_1_H;
  514. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x768_1_H;
  515. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x600_1_H;
  516. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11152x768_1_H;
  517. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11600x1200_1_H;
  518. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1800x600_2;
  519. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x768_2;
  520. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x1024_2;
  521. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11400x1050_2;
  522. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x768_2;
  523. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x600_2;
  524. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11152x768_2;
  525. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11600x1200_2;
  526. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1800x600_2_H;
  527. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x768_2_H;
  528. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x1024_2_H;
  529. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11400x1050_2_H;
  530. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11280x768_2_H;
  531. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11024x600_2_H;
  532. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11152x768_2_H;
  533. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT11600x1200_2_H;
  534. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1XXXxXXX_1;
  535. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1XXXxXXX_1_H;
  536. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_1;
  537. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_1_H;
  538. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_2;
  539. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_2_H;
  540. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_3;
  541. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1640x480_3_H;
  542. const SiS_LVDSCRT1DataStruct *SiS_LVDSCRT1320x480_1;
  543. const SiS_LVDSCRT1DataStruct *SiS_CHTVCRT1UNTSC;
  544. const SiS_LVDSCRT1DataStruct *SiS_CHTVCRT1ONTSC;
  545. const SiS_LVDSCRT1DataStruct *SiS_CHTVCRT1UPAL;
  546. const SiS_LVDSCRT1DataStruct *SiS_CHTVCRT1OPAL;
  547. const SiS_LVDSCRT1DataStruct *SiS_CHTVCRT1SOPAL;
  548. const SiS_CHTVRegDataStruct *SiS_CHTVReg_UNTSC;
  549. const SiS_CHTVRegDataStruct *SiS_CHTVReg_ONTSC;
  550. const SiS_CHTVRegDataStruct *SiS_CHTVReg_UPAL;
  551. const SiS_CHTVRegDataStruct *SiS_CHTVReg_OPAL;
  552. const SiS_CHTVRegDataStruct *SiS_CHTVReg_UPALM;
  553. const SiS_CHTVRegDataStruct *SiS_CHTVReg_OPALM;
  554. const SiS_CHTVRegDataStruct *SiS_CHTVReg_UPALN;
  555. const SiS_CHTVRegDataStruct *SiS_CHTVReg_OPALN;
  556. const SiS_CHTVRegDataStruct *SiS_CHTVReg_SOPAL;
  557. const UCHAR *SiS_CHTVVCLKUNTSC;
  558. const UCHAR *SiS_CHTVVCLKONTSC;
  559. const UCHAR *SiS_CHTVVCLKUPAL;
  560. const UCHAR *SiS_CHTVVCLKOPAL;
  561. const UCHAR *SiS_CHTVVCLKUPALM;
  562. const UCHAR *SiS_CHTVVCLKOPALM;
  563. const UCHAR *SiS_CHTVVCLKUPALN;
  564. const UCHAR *SiS_CHTVVCLKOPALN;
  565. const UCHAR *SiS_CHTVVCLKSOPAL;
  566. USHORT PanelXRes, PanelHT;
  567. USHORT PanelYRes, PanelVT;
  568. USHORT PanelHRS, PanelHRE;
  569. USHORT PanelVRS, PanelVRE;
  570. USHORT PanelVCLKIdx300;
  571. USHORT PanelVCLKIdx315;
  572. BOOLEAN UseCustomMode;
  573. BOOLEAN CRT1UsesCustomMode;
  574. USHORT CHDisplay;
  575. USHORT CHSyncStart;
  576. USHORT CHSyncEnd;
  577. USHORT CHTotal;
  578. USHORT CHBlankStart;
  579. USHORT CHBlankEnd;
  580. USHORT CVDisplay;
  581. USHORT CVSyncStart;
  582. USHORT CVSyncEnd;
  583. USHORT CVTotal;
  584. USHORT CVBlankStart;
  585. USHORT CVBlankEnd;
  586. ULONG CDClock;
  587. ULONG CFlags;
  588. UCHAR CCRT1CRTC[17];
  589. UCHAR CSR2B;
  590. UCHAR CSR2C;
  591. USHORT CSRClock;
  592. USHORT CSRClock_CRT1;
  593. USHORT CModeFlag;
  594. USHORT CModeFlag_CRT1;
  595. USHORT CInfoFlag;
  596. int LVDSHL;
  597. BOOLEAN Backup;
  598. UCHAR Backup_Mode;
  599. UCHAR Backup_14;
  600. UCHAR Backup_15;
  601. UCHAR Backup_16;
  602. UCHAR Backup_17;
  603. UCHAR Backup_18;
  604. UCHAR Backup_19;
  605. UCHAR Backup_1a;
  606. UCHAR Backup_1b;
  607. UCHAR Backup_1c;
  608. UCHAR Backup_1d;
  609. int UsePanelScaler;
  610. int CenterScreen;
  611. USHORT CP_Vendor, CP_Product;
  612. BOOLEAN CP_HaveCustomData;
  613. int CP_PreferredX, CP_PreferredY, CP_PreferredIndex;
  614. int CP_MaxX, CP_MaxY, CP_MaxClock;
  615. UCHAR CP_PrefSR2B, CP_PrefSR2C;
  616. USHORT CP_PrefClock;
  617. BOOLEAN CP_Supports64048075;
  618. int CP_HDisplay[7], CP_VDisplay[7]; /* For Custom LCD panel dimensions */
  619. int CP_HTotal[7], CP_VTotal[7];
  620. int CP_HSyncStart[7], CP_VSyncStart[7];
  621. int CP_HSyncEnd[7], CP_VSyncEnd[7];
  622. int CP_HBlankStart[7], CP_VBlankStart[7];
  623. int CP_HBlankEnd[7], CP_VBlankEnd[7];
  624. int CP_Clock[7];
  625. BOOLEAN CP_DataValid[7];
  626. BOOLEAN CP_HSync_P[7], CP_VSync_P[7], CP_SyncValid[7];
  627. } SiS_Private;
  628. #endif