Home | History | Annotate | Download | only in videomode

Lines Matching refs:ptr

60 #define	EDID_VENDOR_ID(ptr)		((((ptr)[8]) << 8) + ptr[9])
66 #define EDID_PRODUCT_ID(ptr) (((ptr)[10]) | (((ptr)[11]) << 8))
67 #define EDID_SERIAL_NUMBER(ptr) (((ptr)[12] << 24) + \
68 ((ptr)[13] << 16) + \
69 ((ptr)[14] << 8) + \
70 (ptr)[15])
73 #define EDID_WEEK(ptr) ((ptr)[16])
74 #define EDID_YEAR(ptr) (((ptr)[17]) + 1990)
76 #define EDID_VERSION(ptr) ((ptr)[18])
77 #define EDID_REVISION(ptr) ((ptr)[19])
79 #define EDID_VIDEO_INPUT(ptr) ((ptr)[20])
94 #define EDID_MAX_HSIZE(ptr) ((ptr)[21]) /* cm */
95 #define EDID_MAX_VSIZE(ptr) ((ptr)[22]) /* cm */
98 #define EDID_GAMMA(ptr) _GAMMA(ptr[23])
100 #define EDID_FEATURES(ptr) ((ptr)[24])
116 #define _CHHILO(ptr, l, s, h) (_CHLO((ptr)[l], s) | _CHHI((ptr)[h]))
117 #define _CHROMA(ptr, l, s, h) ((_CHHILO(ptr, l, s, h) * 1000) / 1024)
119 #define EDID_CHROMA_REDX(ptr) (_CHROMA(ptr, 25, 6, 27))
120 #define EDID_CHROMA_REDY(ptr) (_CHROMA(ptr, 25, 4, 28))
121 #define EDID_CHROMA_GREENX(ptr) (_CHROMA(ptr, 25, 2, 29))
122 #define EDID_CHROMA_GREENY(ptr) (_CHROMA(ptr, 25, 0, 30))
123 #define EDID_CHROMA_BLUEX(ptr) (_CHROMA(ptr, 26, 6, 31))
124 #define EDID_CHROMA_BLUEY(ptr) (_CHROMA(ptr, 26, 4, 32))
125 #define EDID_CHROMA_WHITEX(ptr) (_CHROMA(ptr, 26, 2, 33))
126 #define EDID_CHROMA_WHITEY(ptr) (_CHROMA(ptr, 26, 0, 34))
129 #define EDID_EST_TIMING(ptr) (((ptr)[35] << 8) | (ptr)[36])
148 * N.B.: ptr is relative to standard timing block - used for standard timing
151 #define EDID_STD_TIMING_HRES(ptr) ((((ptr)[0]) * 8) + 248)
152 #define EDID_STD_TIMING_VFREQ(ptr) ((((ptr)[1]) & 0x3f) + 60)
153 #define EDID_STD_TIMING_RATIO(ptr) ((ptr)[1] & 0xc0)
163 * N.B.: ptr is relative to descriptor block start
169 #define EDID_BLOCK_IS_DET_TIMING(ptr) ((ptr)[0] | (ptr)[1])
171 #define EDID_DET_TIMING_DOT_CLOCK(ptr) (((ptr)[0] | ((ptr)[1] << 8)) * 10000)
172 #define _HACT_LO(ptr) ((ptr)[2])
173 #define _HBLK_LO(ptr) ((ptr)[3])
174 #define _HACT_HI(ptr) (((ptr)[4] & 0xf0) << 4)
175 #define _HBLK_HI(ptr) (((ptr)[4] & 0x0f) << 8)
176 #define EDID_DET_TIMING_HACTIVE(ptr) (_HACT_LO(ptr) | _HACT_HI(ptr))
177 #define EDID_DET_TIMING_HBLANK(ptr) (_HBLK_LO(ptr) | _HBLK_HI(ptr))
178 #define _VACT_LO(ptr) ((ptr)[5])
179 #define _VBLK_LO(ptr) ((ptr)[6])
180 #define _VACT_HI(ptr) (((ptr)[7] & 0xf0) << 4)
181 #define _VBLK_HI(ptr) (((ptr)[7] & 0x0f) << 8)
182 #define EDID_DET_TIMING_VACTIVE(ptr) (_VACT_LO(ptr) | _VACT_HI(ptr))
183 #define EDID_DET_TIMING_VBLANK(ptr) (_VBLK_LO(ptr) | _VBLK_HI(ptr))
184 #define _HOFF_LO(ptr) ((ptr)[8])
185 #define _HWID_LO(ptr) ((ptr)[9])
186 #define _VOFF_LO(ptr) ((ptr)[10] >> 4)
187 #define _VWID_LO(ptr) ((ptr)[10] & 0xf)
188 #define _HOFF_HI(ptr) (((ptr)[11] & 0xc0) << 2)
189 #define _HWID_HI(ptr) (((ptr)[11] & 0x30) << 4)
190 #define _VOFF_HI(ptr) (((ptr)[11] & 0x0c) << 2)
191 #define _VWID_HI(ptr) (((ptr)[11] & 0x03) << 4)
192 #define EDID_DET_TIMING_HSYNC_OFFSET(ptr) (_HOFF_LO(ptr) | _HOFF_HI(ptr))
193 #define EDID_DET_TIMING_HSYNC_WIDTH(ptr) (_HWID_LO(ptr) | _HWID_HI(ptr))
194 #define EDID_DET_TIMING_VSYNC_OFFSET(ptr) (_VOFF_LO(ptr) | _VOFF_HI(ptr))
195 #define EDID_DET_TIMING_VSYNC_WIDTH(ptr) (_VWID_LO(ptr) | _VWID_HI(ptr))
196 #define _HSZ_LO(ptr) ((ptr)[12])
197 #define _VSZ_LO(ptr) ((ptr)[13])
198 #define _HSZ_HI(ptr) (((ptr)[14] & 0xf0) << 4)
199 #define _VSZ_HI(ptr) (((ptr)[14] & 0x0f) << 8)
200 #define EDID_DET_TIMING_HSIZE(ptr) (_HSZ_LO(ptr) | _HSZ_HI(ptr))
201 #define EDID_DET_TIMING_VSIZE(ptr) (_VSZ_LO(ptr) | _VSZ_HI(ptr))
202 #define EDID_DET_TIMING_HBORDER(ptr) ((ptr)[15])
203 #define EDID_DET_TIMING_VBORDER(ptr) ((ptr)[16])
204 #define EDID_DET_TIMING_FLAGS(ptr) ((ptr)[17])
214 #define EDID_BLOCK_TYPE(ptr) ((ptr)[3])
228 #define EDID_DESC_RANGE_MIN_VFREQ(ptr) ((ptr)[5]) /* Hz */
229 #define EDID_DESC_RANGE_MAX_VFREQ(ptr) ((ptr)[6]) /* Hz */
230 #define EDID_DESC_RANGE_MIN_HFREQ(ptr) ((ptr)[7]) /* kHz */
231 #define EDID_DESC_RANGE_MAX_HFREQ(ptr) ((ptr)[8]) /* kHz */
232 #define EDID_DESC_RANGE_MAX_CLOCK(ptr) (((ptr)[9]) * 10) /* MHz */
233 #define EDID_DESC_RANGE_HAVE_GTF2(ptr) (((ptr)[10]) == 0x02)
234 #define EDID_DESC_RANGE_GTF2_HFREQ(ptr) (((ptr)[12]) * 2)
235 #define EDID_DESC_RANGE_GTF2_C(ptr) (((ptr)[13]) / 2)
236 #define EDID_DESC_RANGE_GTF2_M(ptr) ((ptr)[14] + ((ptr)[15] << 8))
237 #define EDID_DESC_RANGE_GTF2_K(ptr) ((ptr)[16])
238 #define EDID_DESC_RANGE_GTF2_J(ptr) ((ptr)[17] / 2)
240 #define EDID_DESC_COLOR_WHITEX(ptr)
241 #define EDID_DESC_COLOR_WHITE_INDEX_1(ptr) ((ptr)[5])
242 #define EDID_DESC_COLOR_WHITEX_1(ptr) _CHROMA(ptr, 6, 2, 7)
243 #define EDID_DESC_COLOR_WHITEY_1(ptr) _CHROMA(ptr, 6, 0, 8)
244 #define EDID_DESC_COLOR_GAMMA_1(ptr) _GAMMA(ptr[9])
245 #define EDID_DESC_COLOR_WHITE_INDEX_2(ptr) ((ptr)[10])
246 #define EDID_DESC_COLOR_WHITEX_2(ptr) _CHROMA(ptr, 11, 2, 12)
247 #define EDID_DESC_COLOR_WHITEY_2(ptr) _CHROMA(ptr, 11, 0, 13)
248 #define EDID_DESC_COLOR_GAMMA_2(ptr) _GAMMA(ptr[14])
253 #define EDID_EXT_BLOCK_COUNT(ptr) ((ptr)[126])