11 #include <linux/types.h>
28 for (
i = 0;
i < 1000;
i++) {
69 u32 HAddrTime, HRightBorder, HLeftBorder;
70 u32 HBackPorcStrt, HFrontPorchStrt, HTotal,
71 HLeftBorderStrt, HRightBorderStrt, HDisplayStrt;
74 u32 VDisplayStrt, VBottomBorder, VTopBorder;
75 u32 VBackPorchStrt, VTotal, VTopBorderStrt,
76 VFrontPorchStrt, VBottomBorderStrt, VAddrTime;
79 if ((xRes == 640) && (yRes == 480)) {
80 if ((pTiming->
VFREQ == 60) || (pTiming->
VFREQ == 72)) {
88 (pTiming->
HST + (pTiming->
HBP - margins) + xRes +
89 (pTiming->
HFP - margins))) >> 1;
92 VBottomBorder = HLeftBorder = VTopBorder = HRightBorder = ulBorder;
96 HBackPorcStrt = pTiming->
HST;
97 HTotal = pTiming->
HTot;
99 pTiming->
HST + (pTiming->
HBP - margins) + HLeftBorder;
100 HLeftBorderStrt = HDisplayStrt - HLeftBorder;
102 pTiming->
HST + (pTiming->
HBP - margins) + HLeftBorder +
103 HAddrTime + HRightBorder;
104 HRightBorderStrt = HFrontPorchStrt - HRightBorder;
108 VBackPorchStrt = pTiming->
VST;
109 VTotal = pTiming->
VTot;
111 pTiming->
VST + (pTiming->
VBP - margins) + VTopBorder;
112 VTopBorderStrt = VDisplayStrt - VTopBorder;
114 pTiming->
VST + (pTiming->
VBP - margins) + VTopBorder +
115 VAddrTime + VBottomBorder;
116 VBottomBorderStrt = VFrontPorchStrt - VBottomBorder;
122 tmp |= (HTotal) | (HBackPorcStrt << 16);
128 tmp |= (HDisplayStrt << 16) | HLeftBorderStrt;
134 tmp |= (HFrontPorchStrt << 16) | HRightBorderStrt;
141 tmp |= (VBackPorchStrt << 16) | (VTotal);
147 tmp |= (VDisplayStrt << 16) | VTopBorderStrt;
153 tmp |= (VFrontPorchStrt << 16) | VBottomBorderStrt;
159 if ((pTiming->
HSP > 0) && (pTiming->
VSP < 0)) {
161 }
else if ((pTiming->
HSP < 0) && (pTiming->
VSP > 0)) {
163 }
else if ((pTiming->
HSP < 0) && (pTiming->
VSP < 0)) {
165 }
else if ((pTiming->
HSP > 0) && (pTiming->
VSP > 0)) {