| 1 |
|
| 2 |
|
| 3 |
#ifndef __EDID_DISPLAYID_H__ |
| 4 |
#define __EDID_DISPLAYID_H__ |
| 5 |
|
| 6 |
|
| 7 |
#define DISPLAY_ID_STRUCTURE_VERSION_20 0x20 |
| 8 |
|
| 9 |
|
| 10 |
#define DATA_BLOCK_V2_PRODUCT_ID 0x20 |
| 11 |
#define DATA_BLOCK_V2_DISPLAY_PARAMETERS 0x21 |
| 12 |
#define DATA_BLOCK_V2_TYPE_7_DETAILED_TIMING 0x22 |
| 13 |
#define DATA_BLOCK_V2_TYPE_8_ENUMERATED_TIMING 0x23 |
| 14 |
#define DATA_BLOCK_V2_TYPE_9_FORMULA_TIMING 0x24 |
| 15 |
#define DATA_BLOCK_V2_DYNAMIC_VIDEO_TIMING 0x25 |
| 16 |
#define DATA_BLOCK_V2_DISPLAY_INTERFACE_FEATURES 0x26 |
| 17 |
#define DATA_BLOCK_V2_STEREO_DISPLAY_INTERFACE 0x27 |
| 18 |
#define DATA_BLOCK_V2_TILED_DISPLAY_TOPOLOGY 0x28 |
| 19 |
#define DATA_BLOCK_V2_CONTAINER_ID 0x29 |
| 20 |
#define DATA_BLOCK_V2_VENDOR_SPECIFIC 0x7E |
| 21 |
#define DATA_BLOCK_V2_CTA_DISPLAY_ID 0x81 |
| 22 |
|
| 23 |
struct displayid_section_header { |
| 24 |
u8 revision; |
| 25 |
u8 length; |
| 26 |
u8 product_type; |
| 27 |
u8 extension_count; |
| 28 |
} __packed; |
| 29 |
|
| 30 |
struct displayid_block_header { |
| 31 |
u8 tag; |
| 32 |
u8 revison; |
| 33 |
u8 length; |
| 34 |
} ___packed; |
| 35 |
|
| 36 |
struct displayid_type_7_detailed_timing_desc { |
| 37 |
u8 pixel_clock[3]; |
| 38 |
u8 flags; |
| 39 |
u8 hactive[2]; |
| 40 |
u8 hblank[2]; |
| 41 |
u8 hfront_porch[2]; |
| 42 |
u8 hsync_width[2]; |
| 43 |
u8 vactive[2]; |
| 44 |
u8 vblank[2]; |
| 45 |
u8 vfront_porch[2]; |
| 46 |
u8 vsync_width[2]; |
| 47 |
} __packed; |
| 48 |
_Static_assert(sizeof(struct displayid_type_7_detailed_timing_desc) == 20, |
| 49 |
"The size does not meet spec"); |
| 50 |
|
| 51 |
struct displayid_type_7_detailed_timing_block { |
| 52 |
struct displayid_block_header header; |
| 53 |
struct displayid_type_7_detailed_timing_desc descs[]; |
| 54 |
}; |
| 55 |
|
| 56 |
#endif |