apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 1 | #ifndef _VB_STRUCT_ |
| 2 | #define _VB_STRUCT_ |
Peter Huewe | b33704d | 2012-01-15 19:22:11 +0100 | [diff] [blame] | 3 | #include "../../video/sis/vstruct.h" |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 4 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 5 | struct XGI_LVDSCRT1HDataStruct { |
| 6 | unsigned char Reg[8]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 7 | }; |
| 8 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 9 | struct XGI_LVDSCRT1VDataStruct { |
| 10 | unsigned char Reg[7]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 11 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 12 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 13 | struct XGI_ExtStruct { |
| 14 | unsigned char Ext_ModeID; |
| 15 | unsigned short Ext_ModeFlag; |
| 16 | unsigned short Ext_ModeInfo; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 17 | unsigned char Ext_RESINFO; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 18 | unsigned char VB_ExtTVYFilterIndex; |
| 19 | unsigned char REFindex; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 20 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 21 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 22 | struct XGI_Ext2Struct { |
| 23 | unsigned short Ext_InfoFlag; |
| 24 | unsigned char Ext_CRT1CRTC; |
| 25 | unsigned char Ext_CRTVCLK; |
| 26 | unsigned char Ext_CRT2CRTC; |
| 27 | unsigned char Ext_CRT2CRTC2; |
| 28 | unsigned char ModeID; |
| 29 | unsigned short XRes; |
| 30 | unsigned short YRes; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 31 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 32 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 33 | struct XGI_ECLKDataStruct { |
| 34 | unsigned char SR2E, SR2F, SR30; |
| 35 | unsigned short CLOCK; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 36 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 37 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 38 | /*add for new UNIVGABIOS*/ |
| 39 | struct XGI_LCDDesStruct { |
| 40 | unsigned short LCDHDES; |
| 41 | unsigned short LCDHRS; |
| 42 | unsigned short LCDVDES; |
| 43 | unsigned short LCDVRS; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 44 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 45 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 46 | struct XGI330_LCDDataDesStruct2 { |
| 47 | unsigned short LCDHDES; |
| 48 | unsigned short LCDHRS; |
| 49 | unsigned short LCDVDES; |
| 50 | unsigned short LCDVRS; |
| 51 | unsigned short LCDHSync; |
| 52 | unsigned short LCDVSync; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 53 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 54 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 55 | struct XGI330_LCDDataTablStruct { |
| 56 | unsigned char PANELID; |
| 57 | unsigned short MASK; |
| 58 | unsigned short CAP; |
Aaro Koskinen | bdc9eb1 | 2012-11-04 21:14:47 +0200 | [diff] [blame] | 59 | void const *DATAPTR; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 60 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 61 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 62 | struct XGI330_TVDataTablStruct { |
| 63 | unsigned short MASK; |
| 64 | unsigned short CAP; |
Aaro Koskinen | 18ba866 | 2012-09-11 00:15:22 +0300 | [diff] [blame] | 65 | struct SiS_TVData const *DATAPTR; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 66 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 67 | |
| 68 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 69 | struct XGI_TimingHStruct { |
| 70 | unsigned char data[8]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 71 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 72 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 73 | struct XGI_TimingVStruct { |
| 74 | unsigned char data[7]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 75 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 76 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 77 | struct XGI_XG21CRT1Struct { |
| 78 | unsigned char ModeID, CR02, CR03, CR15, CR16; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 79 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 80 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 81 | struct XGI330_LCDCapStruct { |
| 82 | unsigned char LCD_ID; |
| 83 | unsigned short LCD_Capability; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 84 | unsigned char LCD_HSyncWidth; |
| 85 | unsigned char LCD_VSyncWidth; |
| 86 | unsigned char LCD_VCLK; |
| 87 | unsigned char LCDA_VCLKData1; |
| 88 | unsigned char LCDA_VCLKData2; |
| 89 | unsigned char LCUCHAR_VCLKData1; |
| 90 | unsigned char LCUCHAR_VCLKData2; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 91 | unsigned char Spectrum_31; |
| 92 | unsigned char Spectrum_32; |
| 93 | unsigned char Spectrum_33; |
| 94 | unsigned char Spectrum_34; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 95 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 96 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 97 | struct XGI21_LVDSCapStruct { |
| 98 | unsigned short LVDS_Capability; |
| 99 | unsigned short LVDSHT; |
| 100 | unsigned short LVDSVT; |
| 101 | unsigned short LVDSHDE; |
| 102 | unsigned short LVDSVDE; |
| 103 | unsigned short LVDSHFP; |
| 104 | unsigned short LVDSVFP; |
| 105 | unsigned short LVDSHSYNC; |
| 106 | unsigned short LVDSVSYNC; |
| 107 | unsigned char VCLKData1; |
| 108 | unsigned char VCLKData2; |
Aaro Koskinen | 2fd002b | 2012-09-11 00:15:12 +0300 | [diff] [blame] | 109 | unsigned char PSC_S1; /* Duration between CPL on and signal on */ |
| 110 | unsigned char PSC_S2; /* Duration signal on and Vdd on */ |
| 111 | unsigned char PSC_S3; /* Duration between CPL off and signal off */ |
| 112 | unsigned char PSC_S4; /* Duration signal off and Vdd off */ |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 113 | unsigned char PSC_S5; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 114 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 115 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 116 | struct XGI_CRT1TableStruct { |
| 117 | unsigned char CR[16]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 118 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 119 | |
| 120 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 121 | struct XGI301C_Tap4TimingStruct { |
| 122 | unsigned short DE; |
| 123 | unsigned char Reg[64]; /* C0-FF */ |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 124 | }; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 125 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 126 | struct vb_device_info { |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 127 | unsigned long P3c4, P3d4, P3c0, P3ce, P3c2, P3cc; |
| 128 | unsigned long P3ca, P3c6, P3c7, P3c8, P3c9, P3da; |
| 129 | unsigned long Part0Port, Part1Port, Part2Port; |
| 130 | unsigned long Part3Port, Part4Port, Part5Port; |
| 131 | unsigned short RVBHCFACT, RVBHCMAX, RVBHRS; |
| 132 | unsigned short VGAVT, VGAHT, VGAVDE, VGAHDE; |
| 133 | unsigned short VT, HT, VDE, HDE; |
| 134 | unsigned short LCDHRS, LCDVRS, LCDHDES, LCDVDES; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 135 | |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 136 | unsigned short ModeType; |
Aaro Koskinen | 84a0b9b | 2013-03-27 23:53:08 +0200 | [diff] [blame] | 137 | unsigned short IF_DEF_LVDS; |
Aaro Koskinen | d2de85c | 2011-08-31 21:46:11 +0300 | [diff] [blame] | 138 | unsigned short IF_DEF_CRT2Monitor; |
Aaro Koskinen | 31fb40f | 2012-09-11 00:15:15 +0300 | [diff] [blame] | 139 | unsigned short IF_DEF_YPbPr; |
Aaro Koskinen | 4c14bfd | 2011-08-31 21:45:57 +0300 | [diff] [blame] | 140 | unsigned short IF_DEF_HiVision; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 141 | unsigned short LCDResInfo, LCDTypeInfo, VBType;/*301b*/ |
Aaro Koskinen | 9ffc7e9 | 2011-11-27 23:03:14 +0200 | [diff] [blame] | 142 | unsigned short VBInfo, TVInfo, LCDInfo; |
Kenji Toyama | 918122e | 2011-04-23 21:54:07 +0800 | [diff] [blame] | 143 | unsigned short SetFlag; |
| 144 | unsigned short NewFlickerMode; |
| 145 | unsigned short SelectCRT2Rate; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 146 | |
Aaro Koskinen | c44fa62 | 2011-09-13 22:49:33 +0300 | [diff] [blame] | 147 | void __iomem *FBAddr; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 148 | |
Aaro Koskinen | 597d96b | 2013-03-27 23:53:15 +0200 | [diff] [blame] | 149 | unsigned char const *SR18; |
Peter Huewe | 87be0af | 2013-02-05 22:32:29 +0100 | [diff] [blame] | 150 | unsigned char const (*CR40)[3]; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 151 | |
Aaro Koskinen | a68292f | 2012-11-04 21:15:07 +0200 | [diff] [blame] | 152 | struct SiS_MCLKData const *MCLKData; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 153 | |
Peter Huewe | 6d12dae | 2012-06-14 00:21:52 +0200 | [diff] [blame] | 154 | unsigned char XGINew_CR97; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 155 | |
Aaro Koskinen | bdc9eb1 | 2012-11-04 21:14:47 +0200 | [diff] [blame] | 156 | struct XGI330_LCDCapStruct const *LCDCapList; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 157 | |
Aaro Koskinen | 6154e7f | 2012-11-04 21:14:50 +0200 | [diff] [blame] | 158 | struct XGI_TimingHStruct TimingH; |
| 159 | struct XGI_TimingVStruct TimingV; |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 160 | |
Aaro Koskinen | 2af1a29 | 2011-10-11 21:47:31 +0300 | [diff] [blame] | 161 | int ram_type; |
Aaro Koskinen | ee055a4 | 2011-10-11 21:47:32 +0300 | [diff] [blame] | 162 | int ram_channel; |
Aaro Koskinen | 2f0f395 | 2011-10-11 21:47:33 +0300 | [diff] [blame] | 163 | int ram_bus; |
Bill Pemberton | 80adad8 | 2010-06-17 13:10:51 -0400 | [diff] [blame] | 164 | }; /* _struct vb_device_info */ |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 165 | |
apatard@mandriva.com | d7636e0 | 2010-05-19 10:44:14 +0200 | [diff] [blame] | 166 | #endif /* _VB_STRUCT_ */ |