1 /* 2 * +-------------------------------------------------------+ 3 * | | 4 * | videogen | 5 * | | 6 * | a simple XFree86 Modeline calculator | 7 * | (c) 1997-2003, Szabolcs Rumi | 8 * | | 9 * | http://www.dynaweb.hu/opensource/videogen | 10 * | | 11 * | the videogen package is distributed under the | 12 * | GNU General Public License Version 2 (GPLv2) | 13 * | | 14 * +-------------------------------------------------------+ 15 */ 16 17 #ifndef CONFIG_H 18 # define CONFIG_H 19 20 /* 21 * 22 * 23 * Here you can configure some compile-time defaults, but you should 24 * only modify these if you are really sure you know what you are doing. 25 * 26 * 27 */ 28 29 30 31 /* 32 * The version number reported by the program. This should not be bothered... 33 */ 34 #define CFG_VIDEOGEN_VERSION "0.33" 35 36 37 38 /* 39 * verbose output 40 * 41 * default: 1 42 */ 43 #define CFG_VERBOSE 1 44 45 /* 46 * default configuration file 47 * 48 * default: ~/.videogen 49 */ 50 #define CFG_CFGFILE "~/.videogen" 51 52 /* 53 * Linux framebuffer (fbset) timings calculation mode 54 * 55 * default: 0 56 */ 57 #define CFG_FBSET 0 58 59 /* 60 * Linux NVidia driver compatibility mode 61 * 62 * default: 1 63 */ 64 #define CFG_NVIDIA 1 65 66 /* 67 * parameter preferences 68 */ 69 #define CFG_PREC_DEFAULT 0 70 #define CFG_PREC_CFGFILE 1 71 #define CFG_PREC_CMDLINE 2 72 73 /* 74 * how many percents of horizontal frame length is visible 75 * default: 80% 76 */ 77 #define CFG_HORIZ_VISIBLE 80 78 79 /* 80 * how many percents of vertical frame length is visible 81 * default: 95% 82 */ 83 #define CFG_VERT_VISIBLE 95 84 85 /* 86 * horizontal front porch interval (must be n*8) 87 * default: 32 [ticks] 88 */ 89 #define CFG_HORIZ_FRONT_PORCH 64 90 91 /* 92 * horizontal back porch interval (must be n*8) 93 * default: 64 [ticks] 94 */ 95 #define CFG_HORIZ_BACK_PORCH 128 96 97 /* 98 * default minimum horizontal sync pulse duration 99 * default: 0.5 [us] 100 */ 101 #define CFG_HORIZ_SYNC_PULSE 0.5 102 103 /* 104 * vertical front porch interval 105 * default: 2 [ticks] 106 */ 107 #define CFG_VERT_FRONT_PORCH 2 108 109 /* 110 * vertical back porch interval 111 * default: 32 [ticks] 112 */ 113 #define CFG_VERT_BACK_PORCH 32 114 115 /* 116 * default vertical sync pulse duration 117 * default: 50 [us] 118 */ 119 #define CFG_VERT_SYNC_PULSE 50 120 121 /* 122 * default limits for hardware parameter bounds checking 123 * do not bother these. 124 */ 125 #define CFG_WIDTH_MIN 320 126 #define CFG_WIDTH_MAX 2048 127 #define CFG_HEIGHT_MIN 200 128 #define CFG_HEIGHT_MAX 1536 129 #define CFG_MAX_DOTCLK_MIN 5 130 #define CFG_MAX_DOTCLK_MAX 500 131 #define CFG_MAX_HFREQ_MIN 15 132 #define CFG_MAX_HFREQ_MAX 200 133 #define CFG_MAX_VFREQ_MIN 40 134 #define CFG_MAX_VFREQ_MAX 200 135 #define CFG_TARGET_VFREQ_MIN 40 136 #define CFG_TARGET_VFREQ_MAX 200 137 #define CFG_ASPECT_RATIO_MIN 0.5 138 #define CFG_ASPECT_RATIO_MAX 0.9 139 #define CFG_HORIZ_VISIBLE_MIN 70 140 #define CFG_HORIZ_VISIBLE_MAX 97 141 #define CFG_VERT_VISIBLE_MIN 70 142 #define CFG_VERT_VISIBLE_MAX 99 143 #define CFG_HORIZ_FRONT_PORCH_MIN 32 144 #define CFG_HORIZ_FRONT_PORCH_MAX 512 145 #define CFG_HORIZ_BACK_PORCH_MIN 32 146 #define CFG_HORIZ_BACK_PORCH_MAX 512 147 #define CFG_HORIZ_SYNC_PULSE_MIN 0.3 148 #define CFG_HORIZ_SYNC_PULSE_MAX 1.5 149 #define CFG_VERT_FRONT_PORCH_MIN 0 150 #define CFG_VERT_FRONT_PORCH_MAX 256 151 #define CFG_VERT_BACK_PORCH_MIN 0 152 #define CFG_VERT_BACK_PORCH_MAX 256 153 #define CFG_VERT_SYNC_PULSE_MIN 30 154 #define CFG_VERT_SYNC_PULSE_MAX 150 155 #define CFG_NV_MAX_HBLANK 1016 156 #define CFG_NV_MAX_HSP 256 157 #define CFG_NV_MAX_VBLANK 128 158 #define CFG_NV_MAX_VSP 16 159 160 161 162 163 164 165 #endif /* CONFIG_H */ 166