vserver 1.9.5.x5
[linux-2.6.git] / drivers / video / sis / oem300.h
1 /* $XFree86$ */
2 /* $XdotOrg$ */
3 /*
4  * OEM Data for 300 series
5  *
6  * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria
7  *
8  * If distributed as part of the Linux kernel, the following license terms
9  * apply:
10  *
11  * * This program is free software; you can redistribute it and/or modify
12  * * it under the terms of the GNU General Public License as published by
13  * * the Free Software Foundation; either version 2 of the named License,
14  * * or any later version.
15  * *
16  * * This program is distributed in the hope that it will be useful,
17  * * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * * GNU General Public License for more details.
20  * *
21  * * You should have received a copy of the GNU General Public License
22  * * along with this program; if not, write to the Free Software
23  * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
24  *
25  * Otherwise, the following license terms apply:
26  *
27  * * Redistribution and use in source and binary forms, with or without
28  * * modification, are permitted provided that the following conditions
29  * * are met:
30  * * 1) Redistributions of source code must retain the above copyright
31  * *    notice, this list of conditions and the following disclaimer.
32  * * 2) Redistributions in binary form must reproduce the above copyright
33  * *    notice, this list of conditions and the following disclaimer in the
34  * *    documentation and/or other materials provided with the distribution.
35  * * 3) The name of the author may not be used to endorse or promote products
36  * *    derived from this software without specific prior written permission.
37  * *
38  * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
39  * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
41  * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
42  * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
43  * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44  * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
45  * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
46  * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
47  * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48  *
49  * Author:      Thomas Winischhofer <thomas@winischhofer.net>
50  *
51  */
52
53 static const UCHAR SiS300_OEMTVDelay301[8][4] =
54 {
55         {0x08,0x08,0x08,0x08},
56         {0x08,0x08,0x08,0x08},
57         {0x08,0x08,0x08,0x08},
58         {0x2c,0x2c,0x2c,0x2c},
59         {0x08,0x08,0x08,0x08},
60         {0x08,0x08,0x08,0x08},
61         {0x08,0x08,0x08,0x08},
62         {0x20,0x20,0x20,0x20}
63 };
64
65 static const UCHAR SiS300_OEMTVDelayLVDS[8][4] =
66 {
67         {0x20,0x20,0x20,0x20},
68         {0x20,0x20,0x20,0x20},
69         {0x20,0x20,0x20,0x20},
70         {0x20,0x20,0x20,0x20},
71         {0x20,0x20,0x20,0x20},
72         {0x20,0x20,0x20,0x20},
73         {0x20,0x20,0x20,0x20},
74         {0x20,0x20,0x20,0x20}
75 };
76
77 static const UCHAR SiS300_OEMTVFlicker[8][4] =
78 {
79         {0x00,0x00,0x00,0x00},
80         {0x00,0x00,0x00,0x00},
81         {0x00,0x00,0x00,0x00},
82         {0x00,0x00,0x00,0x00},
83         {0x00,0x00,0x00,0x00},
84         {0x00,0x00,0x00,0x00},
85         {0x00,0x00,0x00,0x00},
86         {0x00,0x00,0x00,0x00}
87 };
88
89 #if 0   /* TW: Not used */
90 static const UCHAR SiS300_OEMLCDDelay1[12][4]={
91         {0x2c,0x2c,0x2c,0x2c},
92         {0x20,0x20,0x20,0x20},
93         {0x20,0x20,0x20,0x20},
94         {0x2c,0x2c,0x2c,0x2c},
95         {0x2c,0x2c,0x2c,0x2c},
96         {0x20,0x20,0x20,0x20},
97         {0x20,0x20,0x20,0x20},
98         {0x24,0x24,0x24,0x24},
99         {0x24,0x24,0x24,0x24},
100         {0x20,0x20,0x20,0x20},
101         {0x20,0x20,0x20,0x20},
102         {0x24,0x24,0x24,0x24}
103 };
104 #endif
105
106 /* From 630/301B BIOS */
107 static const UCHAR SiS300_OEMLCDDelay2[64][4] =          /* for 301/301b/302b/301LV/302LV */
108 {
109         {0x20,0x20,0x20,0x20},
110         {0x20,0x20,0x20,0x20},
111         {0x20,0x20,0x20,0x20},
112         {0x20,0x20,0x20,0x20},
113         {0x20,0x20,0x20,0x20},
114         {0x20,0x20,0x20,0x20},
115         {0x20,0x20,0x20,0x20},
116         {0x20,0x20,0x20,0x20},
117         {0x20,0x20,0x20,0x20},
118         {0x20,0x20,0x20,0x20},
119         {0x20,0x20,0x20,0x20},
120         {0x20,0x20,0x20,0x20},
121         {0x20,0x20,0x20,0x20},
122         {0x20,0x20,0x20,0x20},
123         {0x20,0x20,0x20,0x20},
124         {0x20,0x20,0x20,0x20},
125         {0x20,0x20,0x20,0x20},
126         {0x20,0x20,0x20,0x20},
127         {0x20,0x20,0x20,0x20},
128         {0x20,0x20,0x20,0x20},
129         {0x20,0x20,0x20,0x20},
130         {0x20,0x20,0x20,0x20},
131         {0x20,0x20,0x20,0x20},
132         {0x20,0x20,0x20,0x20},
133         {0x20,0x20,0x20,0x20},
134         {0x20,0x20,0x20,0x20},
135         {0x20,0x20,0x20,0x20},
136         {0x20,0x20,0x20,0x20},
137         {0x20,0x20,0x20,0x20},
138         {0x20,0x20,0x20,0x20},
139         {0x20,0x20,0x20,0x20},
140         {0x20,0x20,0x20,0x20},
141         {0x20,0x20,0x20,0x20},
142         {0x20,0x20,0x20,0x20},
143         {0x20,0x20,0x20,0x20},
144         {0x20,0x20,0x20,0x20},
145         {0x20,0x20,0x20,0x20},
146         {0x20,0x20,0x20,0x20},
147         {0x20,0x20,0x20,0x20},
148         {0x20,0x20,0x20,0x20},
149         {0x20,0x20,0x20,0x20},
150         {0x20,0x20,0x20,0x20},
151         {0x20,0x20,0x20,0x20},
152         {0x20,0x20,0x20,0x20},
153         {0x20,0x20,0x20,0x20},
154         {0x20,0x20,0x20,0x20},
155         {0x20,0x20,0x20,0x20},
156         {0x20,0x20,0x20,0x20},
157         {0x20,0x20,0x20,0x20},
158         {0x20,0x20,0x20,0x20},
159         {0x20,0x20,0x20,0x20},
160         {0x20,0x20,0x20,0x20},
161         {0x20,0x20,0x20,0x20},
162         {0x20,0x20,0x20,0x20},
163         {0x20,0x20,0x20,0x20},
164         {0x20,0x20,0x20,0x20},
165         {0x20,0x20,0x20,0x20},
166         {0x20,0x20,0x20,0x20},
167         {0x20,0x20,0x20,0x20},
168         {0x20,0x20,0x20,0x20},
169         {0x20,0x20,0x20,0x20},
170         {0x20,0x20,0x20,0x20},
171         {0x20,0x20,0x20,0x20},
172         {0x20,0x20,0x20,0x20}
173 };
174
175 /* From 300/301LV BIOS */
176 static const UCHAR SiS300_OEMLCDDelay4[12][4] =
177 {
178         {0x2c,0x2c,0x2c,0x2c},
179         {0x20,0x20,0x20,0x20},
180         {0x20,0x20,0x20,0x20},
181         {0x2c,0x2c,0x2c,0x2c},
182         {0x2c,0x2c,0x2c,0x2c},
183         {0x20,0x20,0x20,0x20},
184         {0x20,0x20,0x20,0x20},
185         {0x24,0x24,0x24,0x24},
186         {0x24,0x24,0x24,0x24},
187         {0x20,0x20,0x20,0x20},
188         {0x20,0x20,0x20,0x20},
189         {0x24,0x24,0x24,0x24}
190 };
191
192 /* From 300/301LV BIOS */
193 static const UCHAR SiS300_OEMLCDDelay5[32][4] =
194 {
195         {0x20,0x20,0x20,0x20},
196         {0x20,0x20,0x20,0x20},
197         {0x20,0x20,0x20,0x20},
198         {0x20,0x20,0x20,0x20},
199         {0x20,0x20,0x20,0x20},
200         {0x20,0x20,0x20,0x20},
201         {0x20,0x20,0x20,0x20},
202         {0x20,0x20,0x20,0x20},
203         {0x20,0x20,0x20,0x20},
204         {0x20,0x20,0x20,0x20},
205         {0x20,0x20,0x20,0x20},
206         {0x20,0x20,0x20,0x20},
207         {0x20,0x20,0x20,0x20},
208         {0x20,0x20,0x20,0x20},
209         {0x20,0x20,0x20,0x20},
210         {0x20,0x20,0x20,0x20},
211         {0x20,0x20,0x20,0x20},
212         {0x20,0x20,0x20,0x20},
213         {0x20,0x20,0x20,0x20},
214         {0x20,0x20,0x20,0x20},
215         {0x20,0x20,0x20,0x20},
216         {0x20,0x20,0x20,0x20},
217         {0x20,0x20,0x20,0x20},
218         {0x20,0x20,0x20,0x20},
219         {0x20,0x20,0x20,0x20},
220         {0x20,0x20,0x20,0x20},
221         {0x20,0x20,0x20,0x20},
222         {0x20,0x20,0x20,0x20},
223         {0x20,0x20,0x20,0x20},
224         {0x20,0x20,0x20,0x20},
225         {0x20,0x20,0x20,0x20},
226         {0x20,0x20,0x20,0x20},
227 };
228
229 /* Added for LVDS */
230 static const UCHAR SiS300_OEMLCDDelay3[64][4] = {       /* For LVDS */
231         {0x20,0x20,0x20,0x20},
232         {0x20,0x20,0x20,0x20},
233         {0x20,0x20,0x20,0x20},
234         {0x20,0x20,0x20,0x20},
235         {0x20,0x20,0x20,0x20},
236         {0x20,0x20,0x20,0x20},
237         {0x20,0x20,0x20,0x20},
238         {0x20,0x20,0x20,0x20},
239         {0x20,0x20,0x20,0x20},
240         {0x20,0x20,0x20,0x20},
241         {0x20,0x20,0x20,0x20},
242         {0x20,0x20,0x20,0x20},
243         {0x20,0x20,0x20,0x20},
244         {0x20,0x20,0x20,0x20},
245         {0x20,0x20,0x20,0x20},
246         {0x20,0x20,0x20,0x20},
247         {0x20,0x20,0x20,0x20},
248         {0x20,0x20,0x20,0x20},
249         {0x20,0x20,0x20,0x20},
250         {0x20,0x20,0x20,0x20},
251         {0x20,0x20,0x20,0x20},
252         {0x20,0x20,0x20,0x20},
253         {0x20,0x20,0x20,0x20},
254         {0x20,0x20,0x20,0x20},
255         {0x20,0x20,0x20,0x20},
256         {0x20,0x20,0x20,0x20},
257         {0x20,0x20,0x20,0x20},
258         {0x20,0x20,0x20,0x20},
259         {0x20,0x20,0x20,0x20},
260         {0x20,0x20,0x20,0x20},
261         {0x20,0x20,0x20,0x20},
262         {0x20,0x20,0x20,0x20},
263         {0x20,0x20,0x20,0x20},
264         {0x20,0x20,0x20,0x20},
265         {0x20,0x20,0x20,0x20},
266         {0x20,0x20,0x20,0x20},
267         {0x20,0x20,0x20,0x20},
268         {0x20,0x20,0x20,0x20},
269         {0x20,0x20,0x20,0x20},
270         {0x20,0x20,0x20,0x20},
271         {0x20,0x20,0x20,0x20},
272         {0x20,0x20,0x20,0x20},
273         {0x20,0x20,0x20,0x20},
274         {0x20,0x20,0x20,0x20},
275         {0x20,0x20,0x20,0x20},
276         {0x20,0x20,0x20,0x20},
277         {0x20,0x20,0x20,0x20},
278         {0x20,0x20,0x20,0x20},
279         {0x20,0x20,0x20,0x20},
280         {0x20,0x20,0x20,0x20},
281         {0x20,0x20,0x20,0x20},
282         {0x20,0x20,0x20,0x20},
283         {0x20,0x20,0x20,0x20},
284         {0x20,0x20,0x20,0x20},
285         {0x20,0x20,0x20,0x20},
286         {0x20,0x20,0x20,0x20},
287         {0x20,0x20,0x20,0x20},
288         {0x20,0x20,0x20,0x20},
289         {0x20,0x20,0x20,0x20},
290         {0x20,0x20,0x20,0x20},
291         {0x20,0x20,0x20,0x20},
292         {0x20,0x20,0x20,0x20},
293         {0x20,0x20,0x20,0x20},
294         {0x20,0x20,0x20,0x20}
295 };
296
297 static const UCHAR SiS300_Phase1[8][5][4] =
298 {
299     {
300         {0x21,0xed,0x00,0x08},
301         {0x21,0xed,0x8a,0x08},
302         {0x21,0xed,0x8a,0x08},
303         {0x21,0xed,0x8a,0x08},
304         {0x21,0xed,0x8a,0x08}
305     },
306     {
307         {0x2a,0x05,0xd3,0x00},
308         {0x2a,0x05,0xd3,0x00},
309         {0x2a,0x05,0xd3,0x00},
310         {0x2a,0x05,0xd3,0x00},
311         {0x2a,0x05,0xd3,0x00}
312     },
313     {
314         {0x2a,0x05,0xd3,0x00},
315         {0x2a,0x05,0xd3,0x00},
316         {0x2a,0x05,0xd3,0x00},
317         {0x2a,0x05,0xd3,0x00},
318         {0x2a,0x05,0xd3,0x00}
319     },
320     {
321         {0x2a,0x05,0xd3,0x00},
322         {0x2a,0x05,0xd3,0x00},
323         {0x2a,0x05,0xd3,0x00},
324         {0x2a,0x05,0xd3,0x00},
325         {0x2a,0x05,0xd3,0x00}
326     },
327     {
328         {0x21,0xed,0x00,0x08},
329         {0x21,0xed,0x8a,0x08},
330         {0x21,0xed,0x8a,0x08},
331         {0x21,0xed,0x8a,0x08},
332         {0x21,0xed,0x8a,0x08}
333     },
334     {
335         {0x2a,0x05,0xd3,0x00},
336         {0x2a,0x05,0xd3,0x00},
337         {0x2a,0x05,0xd3,0x00},
338         {0x2a,0x05,0xd3,0x00},
339         {0x2a,0x05,0xd3,0x00}
340     },
341     {
342         {0x2a,0x05,0xd3,0x00},
343         {0x2a,0x05,0xd3,0x00},
344         {0x2a,0x05,0xd3,0x00},
345         {0x2a,0x05,0xd3,0x00},
346         {0x2a,0x05,0xd3,0x00}
347     },
348     {
349         {0x2a,0x05,0xd3,0x00},
350         {0x2a,0x05,0xd3,0x00},
351         {0x2a,0x05,0xd3,0x00},
352         {0x2a,0x05,0xd3,0x00},
353         {0x2a,0x05,0xd3,0x00}
354     }
355 };
356
357
358 static const UCHAR SiS300_Phase2[8][5][4] =
359 {
360     {
361         {0x21,0xed,0x00,0x08},
362         {0x21,0xed,0x8a,0x08},
363         {0x21,0xed,0x8a,0x08},
364         {0x21,0xed,0x8a,0x08},
365         {0x21,0xed,0x8a,0x08}
366     },
367     {
368         {0x2a,0x05,0xd3,0x00},
369         {0x2a,0x05,0xd3,0x00},
370         {0x2a,0x05,0xd3,0x00},
371         {0x2a,0x05,0xd3,0x00},
372         {0x2a,0x05,0xd3,0x00}
373     },
374     {
375         {0x2a,0x05,0xd3,0x00},
376         {0x2a,0x05,0xd3,0x00},
377         {0x2a,0x05,0xd3,0x00},
378         {0x2a,0x05,0xd3,0x00},
379         {0x2a,0x05,0xd3,0x00}
380     },
381     {
382         {0x2a,0x05,0xd3,0x00},
383         {0x2a,0x05,0xd3,0x00},
384         {0x2a,0x05,0xd3,0x00},
385         {0x2a,0x05,0xd3,0x00},
386         {0x2a,0x05,0xd3,0x00}
387     },
388     {
389         {0x21,0xed,0x00,0x08},
390         {0x21,0xed,0x8a,0x08},
391         {0x21,0xed,0x8a,0x08},
392         {0x21,0xed,0x8a,0x08},
393         {0x21,0xed,0x8a,0x08}
394     },
395     {
396         {0x2a,0x05,0xd3,0x00},
397         {0x2a,0x05,0xd3,0x00},
398         {0x2a,0x05,0xd3,0x00},
399         {0x2a,0x05,0xd3,0x00},
400         {0x2a,0x05,0xd3,0x00}
401     },
402     {
403         {0x2a,0x05,0xd3,0x00},
404         {0x2a,0x05,0xd3,0x00},
405         {0x2a,0x05,0xd3,0x00},
406         {0x2a,0x05,0xd3,0x00},
407         {0x2a,0x05,0xd3,0x00}
408     },
409     {
410         {0x2a,0x05,0xd3,0x00},
411         {0x2a,0x05,0xd3,0x00},
412         {0x2a,0x05,0xd3,0x00},
413         {0x2a,0x05,0xd3,0x00},
414         {0x2a,0x05,0xd3,0x00}
415     }
416 };
417
418 static const UCHAR SiS300_Filter1[10][16][4] =
419 {
420     {
421         {0x00,0xf4,0x10,0x38},
422         {0x00,0xf4,0x10,0x38},
423         {0xeb,0x04,0x10,0x18},
424         {0xf7,0x06,0x19,0x14},
425         {0x00,0xf4,0x10,0x38},
426         {0xeb,0x04,0x25,0x18},
427         {0xeb,0x04,0x25,0x18},
428         {0xeb,0x15,0x25,0xf6},
429         {0xeb,0x04,0x25,0x18},
430         {0xeb,0x04,0x25,0x18},
431         {0xeb,0x04,0x25,0x18},
432         {0xeb,0x04,0x25,0x18},
433         {0xeb,0x04,0x25,0x18},
434         {0xeb,0x04,0x25,0x18},
435         {0xeb,0x04,0x25,0x18},
436         {0xeb,0x04,0x25,0x18}
437     },
438     {
439         {0x00,0xf4,0x10,0x38},
440         {0x00,0xf4,0x10,0x38},
441         {0xf1,0xf7,0x10,0x32},
442         {0xf3,0x00,0x1d,0x20},
443         {0x00,0xf4,0x10,0x38},
444         {0xf1,0xf7,0x1f,0x32},
445         {0xf1,0xf7,0x1f,0x32},
446         {0xfc,0xfb,0x14,0x2a},
447         {0xf1,0xf7,0x1f,0x32},
448         {0xf1,0xf7,0x1f,0x32},
449         {0xf1,0xf7,0x1f,0x32},
450         {0xf1,0xf7,0x1f,0x32},
451         {0xf1,0xf7,0x1f,0x32},
452         {0xf1,0xf7,0x1f,0x32},
453         {0xf1,0xf7,0x1f,0x32},
454         {0xf1,0xf7,0x1f,0x32}
455     },
456     {
457         {0x00,0xf4,0x10,0x38},
458         {0x00,0xf4,0x10,0x38},
459         {0xf1,0xf7,0x10,0x32},
460         {0xf3,0x00,0x1d,0x20},
461         {0x00,0xf4,0x10,0x38},
462         {0xf1,0xf7,0x1f,0x32},
463         {0xf1,0xf7,0x1f,0x32},
464         {0xfc,0xfb,0x14,0x2a},
465         {0xf1,0xf7,0x1f,0x32},
466         {0xf1,0xf7,0x1f,0x32},
467         {0xf1,0xf7,0x1f,0x32},
468         {0xf1,0xf7,0x1f,0x32},
469         {0xf1,0xf7,0x1f,0x32},
470         {0xf1,0xf7,0x1f,0x32},
471         {0xf1,0xf7,0x1f,0x32},
472         {0xf1,0xf7,0x1f,0x32}
473     },
474     {
475         {0x00,0xf4,0x10,0x38},
476         {0x00,0xf4,0x10,0x38},
477         {0xf1,0xf7,0x10,0x32},
478         {0xf3,0x00,0x1d,0x20},
479         {0x00,0xf4,0x10,0x38},
480         {0xf1,0xf7,0x1f,0x32},
481         {0xf1,0xf7,0x1f,0x32},
482         {0xfc,0xfb,0x14,0x2a},
483         {0xf1,0xf7,0x1f,0x32},
484         {0xf1,0xf7,0x1f,0x32},
485         {0xf1,0xf7,0x1f,0x32},
486         {0xf1,0xf7,0x1f,0x32},
487         {0xf1,0xf7,0x1f,0x32},
488         {0xf1,0xf7,0x1f,0x32},
489         {0xf1,0xf7,0x1f,0x32},
490         {0xf1,0xf7,0x1f,0x32}
491     },
492     {
493         {0x00,0xf4,0x10,0x38},
494         {0x00,0xf4,0x10,0x38},
495         {0xeb,0x04,0x10,0x18},
496         {0xf7,0x06,0x19,0x14},
497         {0x00,0xf4,0x10,0x38},
498         {0xeb,0x04,0x25,0x18},
499         {0xeb,0x04,0x25,0x18},
500         {0xeb,0x15,0x25,0xf6},
501         {0xeb,0x04,0x25,0x18},
502         {0xeb,0x04,0x25,0x18},
503         {0xeb,0x04,0x25,0x18},
504         {0xeb,0x04,0x25,0x18},
505         {0xeb,0x04,0x25,0x18},
506         {0xeb,0x04,0x25,0x18},
507         {0xeb,0x04,0x25,0x18},
508         {0xeb,0x04,0x25,0x18}
509     },
510     {
511         {0x00,0xf4,0x10,0x38},
512         {0x00,0xf4,0x10,0x38},
513         {0xf1,0xf7,0x10,0x32},
514         {0xf3,0x00,0x1d,0x20},
515         {0x00,0xf4,0x10,0x38},
516         {0xf1,0xf7,0x1f,0x32},
517         {0xf1,0xf7,0x1f,0x32},
518         {0xfc,0xfb,0x14,0x2a},
519         {0xf1,0xf7,0x1f,0x32},
520         {0xf1,0xf7,0x1f,0x32},
521         {0xf1,0xf7,0x1f,0x32},
522         {0xf1,0xf7,0x1f,0x32},
523         {0xf1,0xf7,0x1f,0x32},
524         {0xf1,0xf7,0x1f,0x32},
525         {0xf1,0xf7,0x1f,0x32},
526         {0xf1,0xf7,0x1f,0x32}
527     },
528     {
529         {0x00,0xf4,0x10,0x38},
530         {0x00,0xf4,0x10,0x38},
531         {0xf1,0xf7,0x10,0x32},
532         {0xf3,0x00,0x1d,0x20},
533         {0x00,0xf4,0x10,0x38},
534         {0xf1,0xf7,0x1f,0x32},
535         {0xf1,0xf7,0x1f,0x32},
536         {0xfc,0xfb,0x14,0x2a},
537         {0xf1,0xf7,0x1f,0x32},
538         {0xf1,0xf7,0x1f,0x32},
539         {0xf1,0xf7,0x1f,0x32},
540         {0xf1,0xf7,0x1f,0x32},
541         {0xf1,0xf7,0x1f,0x32},
542         {0xf1,0xf7,0x1f,0x32},
543         {0xf1,0xf7,0x1f,0x32},
544         {0xf1,0xf7,0x1f,0x32}
545     },
546     {
547         {0x00,0xf4,0x10,0x38},
548         {0x00,0xf4,0x10,0x38},
549         {0xf1,0xf7,0x10,0x32},
550         {0xf3,0x00,0x1d,0x20},
551         {0x00,0xf4,0x10,0x38},
552         {0xf1,0xf7,0x1f,0x32},
553         {0xf1,0xf7,0x1f,0x32},
554         {0xfc,0xfb,0x14,0x2a},
555         {0xf1,0xf7,0x1f,0x32},
556         {0xf1,0xf7,0x1f,0x32},
557         {0xf1,0xf7,0x1f,0x32},
558         {0xf1,0xf7,0x1f,0x32},
559         {0xf1,0xf7,0x1f,0x32},
560         {0xf1,0xf7,0x1f,0x32},
561         {0xf1,0xf7,0x1f,0x32},
562         {0xf1,0xf7,0x1f,0x32}
563     },
564     {
565         {0x00,0xf4,0x10,0x38},
566         {0x00,0xf4,0x10,0x38},
567         {0xeb,0x04,0x10,0x18},
568         {0xf7,0x06,0x19,0x14},
569         {0x00,0xf4,0x10,0x38},
570         {0xeb,0x04,0x25,0x18},
571         {0xeb,0x04,0x25,0x18},
572         {0xeb,0x15,0x25,0xf6},
573         {0xeb,0x04,0x25,0x18},
574         {0xeb,0x04,0x25,0x18},
575         {0xeb,0x04,0x25,0x18},
576         {0xeb,0x04,0x25,0x18},
577         {0xeb,0x04,0x25,0x18},
578         {0xeb,0x04,0x25,0x18},
579         {0xeb,0x04,0x25,0x18},
580         {0xeb,0x04,0x25,0x18}
581     },
582     {
583         {0x00,0xf4,0x10,0x38},
584         {0x00,0xf4,0x10,0x38},
585         {0xeb,0x04,0x10,0x18},
586         {0xf7,0x06,0x19,0x14},
587         {0x00,0xf4,0x10,0x38},
588         {0xeb,0x04,0x25,0x18},
589         {0xeb,0x04,0x25,0x18},
590         {0xeb,0x15,0x25,0xf6},
591         {0xeb,0x04,0x25,0x18},
592         {0xeb,0x04,0x25,0x18},
593         {0xeb,0x04,0x25,0x18},
594         {0xeb,0x04,0x25,0x18},
595         {0xeb,0x04,0x25,0x18},
596         {0xeb,0x04,0x25,0x18},
597         {0xeb,0x04,0x25,0x18},
598         {0xeb,0x04,0x25,0x18}
599     },
600 };
601
602 static const UCHAR SiS300_Filter2[10][9][7] =
603 {
604     {
605         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
606         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
607         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
608         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
609         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
610         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
611         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
612         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
613         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
614     },
615     {
616         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
617         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
618         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
619         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
620         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
621         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
622         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
623         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
624         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
625     },
626     {
627         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
628         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
629         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
630         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
631         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
632         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
633         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
634         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
635         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
636     },
637     {
638         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
639         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
640         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
641         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
642         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
643         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
644         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
645         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
646         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
647     },
648     {
649         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
650         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
651         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
652         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
653         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
654         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
655         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
656         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
657         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
658     },
659     {
660         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
661         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
662         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
663         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
664         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
665         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
666         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
667         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
668         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
669     },
670     {
671         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
672         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
673         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
674         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
675         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
676         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
677         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
678         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
679         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
680     },
681     {
682         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
683         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
684         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
685         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
686         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
687         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
688         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
689         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
690         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
691     },
692     {
693         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
694         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
695         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
696         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
697         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
698         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
699         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
700         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
701         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
702     },
703     {
704         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
705         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
706         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
707         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
708         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
709         {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
710         {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
711         {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
712         {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
713     }
714 };
715
716 /* Custom data for Barco iQ Pro R300 */
717 static const UCHAR barco_p1[2][9][7][3] = {
718     {
719         {  { 0x16, 0xcf, 0x00 },
720            { 0x18, 0x00, 0x00 },
721            { 0x1a, 0xe7, 0x00 },
722            { 0x1b, 0x26, 0x00 },
723            { 0x1c, 0xff, 0x00 },
724            { 0x1d, 0x1c, 0x00 },
725            { 0x1e, 0x19, 0x00 }
726         },
727         {
728            { 0x16, 0xcf, 0x00 },
729            { 0x18, 0x00, 0x00 },
730            { 0x1a, 0xe7, 0x00 },
731            { 0x1b, 0x1e, 0x00 },
732            { 0x1c, 0xff, 0x00 },
733            { 0x1d, 0x1c, 0x00 },
734            { 0x1e, 0x16, 0x00 }
735         },
736         {
737            { 0x16, 0xcf, 0x00 },
738            { 0x1a, 0xe7, 0x00 },
739            { 0x1b, 0x26, 0x00 },
740            { 0x1c, 0xff, 0x00 },
741            { 0x1d, 0x1c, 0x00 },
742            { 0x1e, 0x19, 0x00 },
743            {    0,    0,    0 }
744         },
745         {
746            {    0,    0,    0 }
747         },
748         {
749            { 0x16, 0xcf, 0x00 },
750            { 0x1a, 0xe7, 0x00 },
751            { 0x1b, 0x26, 0x00 },
752            { 0x1c, 0xff, 0x00 },
753            { 0x1d, 0x1c, 0x00 },
754            { 0x1e, 0x1e, 0x00 },
755            {    0,    0,    0 }
756         },
757         {
758            { 0x16, 0xd1, 0x00 },
759            { 0x18, 0x00, 0x00 },
760            { 0x1a, 0xe7, 0x00 },
761            { 0x1b, 0x11, 0x00 },
762            { 0x1c, 0xff, 0x00 },
763            { 0x1d, 0x1c, 0x00 },
764            { 0x1e, 0x26, 0x00 }
765         },
766         {
767            { 0x16, 0xd1, 0x00 },
768            { 0x1a, 0xe7, 0x00 },
769            { 0x1b, 0x26, 0x00 },
770            { 0x1c, 0xff, 0x00 },
771            { 0x1d, 0x1c, 0x00 },
772            { 0x1e, 0x30, 0x00 },
773            {    0,    0,    0 }
774         },
775         {
776            { 0x16, 0x00, 0x00 },
777            { 0x17, 0xa0, 0x00 },
778            { 0x1a, 0xa0, 0x00 },
779            { 0x1b, 0x2a, 0x00 },
780            { 0x1c, 0xff, 0x00 },
781            { 0x1d, 0x1c, 0x00 },
782            {    0,    0,    0 }
783         },
784         {
785            { 0x16, 0x00, 0x00 },
786            { 0x17, 0xaa, 0x00 },
787            { 0x1a, 0xa0, 0x00 },
788            { 0x1b, 0x2a, 0x00 },
789            { 0x1c, 0xff, 0x00 },
790            { 0x1d, 0x1c, 0x00 },
791            {    0,    0,    0 }
792         }
793     },
794     {
795         {
796            { 0x16, 0xcf, 0x00 },
797            { 0x18, 0x00, 0x00 },
798            { 0x1a, 0xe7, 0x00 },
799            { 0x1b, 0x26, 0x00 },
800            { 0x1c, 0xff, 0x00 },
801            { 0x1d, 0x1c, 0x00 },
802            { 0x1e, 0x19, 0x00 }
803         },
804         {
805            {    0,    0,    0 }
806         },
807         {
808            { 0x16, 0xcf, 0x00 },
809            { 0x18, 0x00, 0x00 },
810            { 0x1a, 0xe7, 0x00 },
811            { 0x1b, 0x26, 0x00 },
812            { 0x1c, 0xff, 0x00 },
813            { 0x1d, 0x1c, 0x00 },
814            { 0x1e, 0x19, 0x00 },
815         },
816         {
817            {    0,    0,    0 }
818         },
819         {
820            { 0x16, 0xcf, 0x00 },
821            { 0x18, 0x00, 0x00 },
822            { 0x1a, 0xe7, 0x00 },
823            { 0x1b, 0x26, 0x00 },
824            { 0x1c, 0xff, 0x00 },
825            { 0x1d, 0x1c, 0x00 },
826            { 0x1e, 0x1e, 0x00 }
827         },
828         {
829            { 0x16, 0xd1, 0x00 },
830            { 0x18, 0x00, 0x00 },
831            { 0x1a, 0xe6, 0x00 },
832            { 0x1b, 0x11, 0x00 },
833            { 0x1c, 0xff, 0x00 },
834            { 0x1d, 0x1c, 0x00 },
835            { 0x1e, 0x26, 0x00 }
836         },
837         {
838            { 0x18, 0x00, 0x00 },
839            { 0x1a, 0xe0, 0x00 },
840            { 0x1b, 0x26, 0x00 },
841            { 0x1c, 0xff, 0x00 },
842            { 0x1d, 0x1c, 0x00 },
843            { 0x1e, 0x30, 0x00 },
844            {    0,    0,    0 }
845         },
846         {
847            {    0,    0,    0 }
848         },
849         {
850            {    0,    0,    0 }
851         }
852     }
853 };
854
855
856
857
858
859