Go to the documentation of this file.
23 #ifndef __DRM_EDID_H__
24 #define __DRM_EDID_H__
26 #include <linux/types.h>
28 #define EDID_LENGTH 128
44 #define EDID_TIMING_ASPECT_SHIFT 6
45 #define EDID_TIMING_ASPECT_MASK (0x3 << EDID_TIMING_ASPECT_SHIFT)
48 #define EDID_TIMING_VFREQ_SHIFT 0
49 #define EDID_TIMING_VFREQ_MASK (0x3f << EDID_TIMING_VFREQ_SHIFT)
56 #define DRM_EDID_PT_HSYNC_POSITIVE (1 << 1)
57 #define DRM_EDID_PT_VSYNC_POSITIVE (1 << 2)
58 #define DRM_EDID_PT_SEPARATE_SYNC (3 << 3)
59 #define DRM_EDID_PT_STEREO (1 << 5)
60 #define DRM_EDID_PT_INTERLACED (1 << 7)
148 #define EDID_DETAIL_EST_TIMINGS 0xf7
149 #define EDID_DETAIL_CVT_3BYTE 0xf8
150 #define EDID_DETAIL_COLOR_MGMT_DATA 0xf9
151 #define EDID_DETAIL_STD_MODES 0xfa
152 #define EDID_DETAIL_MONITOR_CPDATA 0xfb
153 #define EDID_DETAIL_MONITOR_NAME 0xfc
154 #define EDID_DETAIL_MONITOR_RANGE 0xfd
155 #define EDID_DETAIL_MONITOR_STRING 0xfe
156 #define EDID_DETAIL_MONITOR_SERIAL 0xff
166 #define DRM_EDID_INPUT_SERRATION_VSYNC (1 << 0)
167 #define DRM_EDID_INPUT_SYNC_ON_GREEN (1 << 1)
168 #define DRM_EDID_INPUT_COMPOSITE_SYNC (1 << 2)
169 #define DRM_EDID_INPUT_SEPARATE_SYNCS (1 << 3)
170 #define DRM_EDID_INPUT_BLANK_TO_BLACK (1 << 4)
171 #define DRM_EDID_INPUT_VIDEO_LEVEL (3 << 5)
172 #define DRM_EDID_INPUT_DIGITAL (1 << 7)
173 #define DRM_EDID_DIGITAL_DEPTH_MASK (7 << 4)
174 #define DRM_EDID_DIGITAL_DEPTH_UNDEF (0 << 4)
175 #define DRM_EDID_DIGITAL_DEPTH_6 (1 << 4)
176 #define DRM_EDID_DIGITAL_DEPTH_8 (2 << 4)
177 #define DRM_EDID_DIGITAL_DEPTH_10 (3 << 4)
178 #define DRM_EDID_DIGITAL_DEPTH_12 (4 << 4)
179 #define DRM_EDID_DIGITAL_DEPTH_14 (5 << 4)
180 #define DRM_EDID_DIGITAL_DEPTH_16 (6 << 4)
181 #define DRM_EDID_DIGITAL_DEPTH_RSVD (7 << 4)
182 #define DRM_EDID_DIGITAL_TYPE_UNDEF (0)
183 #define DRM_EDID_DIGITAL_TYPE_DVI (1)
184 #define DRM_EDID_DIGITAL_TYPE_HDMI_A (2)
185 #define DRM_EDID_DIGITAL_TYPE_HDMI_B (3)
186 #define DRM_EDID_DIGITAL_TYPE_MDDI (4)
187 #define DRM_EDID_DIGITAL_TYPE_DP (5)
189 #define DRM_EDID_FEATURE_DEFAULT_GTF (1 << 0)
190 #define DRM_EDID_FEATURE_PREFERRED_TIMING (1 << 1)
191 #define DRM_EDID_FEATURE_STANDARD_COLOR (1 << 2)
193 #define DRM_EDID_FEATURE_DISPLAY_TYPE (3 << 3)
195 #define DRM_EDID_FEATURE_COLOR_MASK (3 << 3)
196 #define DRM_EDID_FEATURE_RGB (0 << 3)
197 #define DRM_EDID_FEATURE_RGB_YCRCB444 (1 << 3)
198 #define DRM_EDID_FEATURE_RGB_YCRCB422 (2 << 3)
199 #define DRM_EDID_FEATURE_RGB_YCRCB (3 << 3)
201 #define DRM_EDID_FEATURE_PM_ACTIVE_OFF (1 << 5)
202 #define DRM_EDID_FEATURE_PM_SUSPEND (1 << 6)
203 #define DRM_EDID_FEATURE_PM_STANDBY (1 << 7)
245 #define EDID_PRODUCT_ID(e) ((e)->prod_code[0] | ((e)->prod_code[1] << 8))