xref: /haiku/src/add-ons/accelerants/via/valid_mode_list (revision 9034af644dcd6c4d48554633c826f804cc762df4)
1*9034af64SRudolf Cornelissen/*This file can be used to define custom timing for your monitor
2*9034af64SRudolf Cornelissen * The format of each line is:
3*9034af64SRudolf Cornelissen * {
4*9034af64SRudolf Cornelissen *   pixel clock frequency (kHz)
5*9034af64SRudolf Cornelissen *   width
6*9034af64SRudolf Cornelissen *   h-sync pulse start
7*9034af64SRudolf Cornelissen *   h-sync pulse end
8*9034af64SRudolf Cornelissen *   total pixels in line
9*9034af64SRudolf Cornelissen *   height
10*9034af64SRudolf Cornelissen *   v-sync pulse start
11*9034af64SRudolf Cornelissen *   v-sync pulse end
12*9034af64SRudolf Cornelissen *   total lines in frame
13*9034af64SRudolf Cornelissen *   sync polarity (0 is -ve,B_POSITIVE_HYSNC,B_POSITIVE_VSYNC)
14*9034af64SRudolf Cornelissen * }
15*9034af64SRudolf Cornelissen *
16*9034af64SRudolf Cornelissen *To use this you must:
17*9034af64SRudolf Cornelissen * Uncomment VALID MODE REQUIRED
18*9034af64SRudolf Cornelissen * Fill in a number of modes that work with your display
19*9034af64SRudolf Cornelissen * Change VALID MODES from three to the no. you defined
20*9034af64SRudolf Cornelissen * run these commands:
21*9034af64SRudolf Cornelissen *   touch ProposeDisplayMode.c
22*9034af64SRudolf Cornelissen *   make install
23*9034af64SRudolf Cornelissen */
24*9034af64SRudolf Cornelissen
25*9034af64SRudolf Cornelissen//#define VALID_MODE_REQUIRED 1
26*9034af64SRudolf Cornelissen
27*9034af64SRudolf Cornelissen#define VALID_MODES 3
28*9034af64SRudolf Cornelissen
29*9034af64SRudolf Cornelissen/*note colour depth and mode flags are ignored*/
30*9034af64SRudolf Cornelissenstatic const display_timing valid_mode_list[] = {
31*9034af64SRudolf Cornelissen{31500,640,648,744,840,480,481,500,500,0},
32*9034af64SRudolf Cornelissen{49500,800,808,888,1056,600,601,620,625,B_POSITIVE_HSYNC|B_POSITIVE_VSYNC},
33*9034af64SRudolf Cornelissen{78750,1024,1032,1128,1312,768,769,788,800,B_POSITIVE_HSYNC|B_POSITIVE_VSYNC}
34*9034af64SRudolf Cornelissen};
35