Rev 1179 | Rev 1321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1179 | Rev 1221 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | * What I have done is to translate it by using integer calculation. |
86 | * What I have done is to translate it by using integer calculation. |
87 | */ |
87 | */ |
88 | #define HV_FACTOR 1000 |
88 | #define HV_FACTOR 1000 |
89 | struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, |
89 | struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, |
90 | int vdisplay, int vrefresh, |
90 | int vdisplay, int vrefresh, |
91 | bool reduced, bool interlaced) |
91 | bool reduced, bool interlaced, bool margins) |
92 | { |
92 | { |
93 | /* 1) top/bottom margin size (% of height) - default: 1.8, */ |
93 | /* 1) top/bottom margin size (% of height) - default: 1.8, */ |
94 | #define CVT_MARGIN_PERCENTAGE 18 |
94 | #define CVT_MARGIN_PERCENTAGE 18 |
95 | /* 2) character cell horizontal granularity (pixels) - default 8 */ |
95 | /* 2) character cell horizontal granularity (pixels) - default 8 */ |
96 | #define CVT_H_GRANULARITY 8 |
96 | #define CVT_H_GRANULARITY 8 |
Line 99... | Line 99... | ||
99 | /* 4) Minimum number of vertical back porch lines - default 6 */ |
99 | /* 4) Minimum number of vertical back porch lines - default 6 */ |
100 | #define CVT_MIN_V_BPORCH 6 |
100 | #define CVT_MIN_V_BPORCH 6 |
101 | /* Pixel Clock step (kHz) */ |
101 | /* Pixel Clock step (kHz) */ |
102 | #define CVT_CLOCK_STEP 250 |
102 | #define CVT_CLOCK_STEP 250 |
103 | struct drm_display_mode *drm_mode; |
103 | struct drm_display_mode *drm_mode; |
104 | bool margins = false; |
- | |
105 | unsigned int vfieldrate, hperiod; |
104 | unsigned int vfieldrate, hperiod; |
106 | int hdisplay_rnd, hmargin, vdisplay_rnd, vmargin, vsync; |
105 | int hdisplay_rnd, hmargin, vdisplay_rnd, vmargin, vsync; |
107 | int interlace; |
106 | int interlace; |
Line 108... | Line 107... | ||
108 | 107 |