Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
edid.h File Reference

Go to the source code of this file.

Macros

#define EDID_LENGTH   0x80
 
#define EDID_HEADER   0x00
 
#define EDID_HEADER_END   0x07
 
#define ID_MANUFACTURER_NAME   0x08
 
#define ID_MANUFACTURER_NAME_END   0x09
 
#define ID_MODEL   0x0a
 
#define ID_SERIAL_NUMBER   0x0c
 
#define MANUFACTURE_WEEK   0x10
 
#define MANUFACTURE_YEAR   0x11
 
#define EDID_STRUCT_VERSION   0x12
 
#define EDID_STRUCT_REVISION   0x13
 
#define EDID_STRUCT_DISPLAY   0x14
 
#define DPMS_FLAGS   0x18
 
#define ESTABLISHED_TIMING_1   0x23
 
#define ESTABLISHED_TIMING_2   0x24
 
#define MANUFACTURERS_TIMINGS   0x25
 
#define STD_TIMING   8
 
#define STD_TIMING_DESCRIPTION_SIZE   2
 
#define STD_TIMING_DESCRIPTIONS_START   0x26
 
#define DETAILED_TIMING_DESCRIPTIONS_START   0x36
 
#define DETAILED_TIMING_DESCRIPTION_SIZE   18
 
#define NO_DETAILED_TIMING_DESCRIPTIONS   4
 
#define DETAILED_TIMING_DESCRIPTION_1   0x36
 
#define DETAILED_TIMING_DESCRIPTION_2   0x48
 
#define DETAILED_TIMING_DESCRIPTION_3   0x5a
 
#define DETAILED_TIMING_DESCRIPTION_4   0x6c
 
#define DESCRIPTOR_DATA   5
 
#define UPPER_NIBBLE(x)   (((128|64|32|16) & (x)) >> 4)
 
#define LOWER_NIBBLE(x)   ((1|2|4|8) & (x))
 
#define COMBINE_HI_8LO(hi, lo)   ( (((unsigned)hi) << 8) | (unsigned)lo )
 
#define COMBINE_HI_4LO(hi, lo)   ( (((unsigned)hi) << 4) | (unsigned)lo )
 
#define PIXEL_CLOCK_LO   (unsigned)block[ 0 ]
 
#define PIXEL_CLOCK_HI   (unsigned)block[ 1 ]
 
#define PIXEL_CLOCK   (COMBINE_HI_8LO( PIXEL_CLOCK_HI,PIXEL_CLOCK_LO )*10000)
 
#define H_ACTIVE_LO   (unsigned)block[ 2 ]
 
#define H_BLANKING_LO   (unsigned)block[ 3 ]
 
#define H_ACTIVE_HI   UPPER_NIBBLE( (unsigned)block[ 4 ] )
 
#define H_ACTIVE   COMBINE_HI_8LO( H_ACTIVE_HI, H_ACTIVE_LO )
 
#define H_BLANKING_HI   LOWER_NIBBLE( (unsigned)block[ 4 ] )
 
#define H_BLANKING   COMBINE_HI_8LO( H_BLANKING_HI, H_BLANKING_LO )
 
#define V_ACTIVE_LO   (unsigned)block[ 5 ]
 
#define V_BLANKING_LO   (unsigned)block[ 6 ]
 
#define V_ACTIVE_HI   UPPER_NIBBLE( (unsigned)block[ 7 ] )
 
#define V_ACTIVE   COMBINE_HI_8LO( V_ACTIVE_HI, V_ACTIVE_LO )
 
#define V_BLANKING_HI   LOWER_NIBBLE( (unsigned)block[ 7 ] )
 
#define V_BLANKING   COMBINE_HI_8LO( V_BLANKING_HI, V_BLANKING_LO )
 
#define H_SYNC_OFFSET_LO   (unsigned)block[ 8 ]
 
#define H_SYNC_WIDTH_LO   (unsigned)block[ 9 ]
 
#define V_SYNC_OFFSET_LO   UPPER_NIBBLE( (unsigned)block[ 10 ] )
 
#define V_SYNC_WIDTH_LO   LOWER_NIBBLE( (unsigned)block[ 10 ] )
 
#define V_SYNC_WIDTH_HI   ((unsigned)block[ 11 ] & (1|2))
 
#define V_SYNC_OFFSET_HI   (((unsigned)block[ 11 ] & (4|8)) >> 2)
 
#define H_SYNC_WIDTH_HI   (((unsigned)block[ 11 ] & (16|32)) >> 4)
 
#define H_SYNC_OFFSET_HI   (((unsigned)block[ 11 ] & (64|128)) >> 6)
 
#define V_SYNC_WIDTH   COMBINE_HI_4LO( V_SYNC_WIDTH_HI, V_SYNC_WIDTH_LO )
 
#define V_SYNC_OFFSET   COMBINE_HI_4LO( V_SYNC_OFFSET_HI, V_SYNC_OFFSET_LO )
 
#define H_SYNC_WIDTH   COMBINE_HI_8LO( H_SYNC_WIDTH_HI, H_SYNC_WIDTH_LO )
 
#define H_SYNC_OFFSET   COMBINE_HI_8LO( H_SYNC_OFFSET_HI, H_SYNC_OFFSET_LO )
 
#define H_SIZE_LO   (unsigned)block[ 12 ]
 
#define V_SIZE_LO   (unsigned)block[ 13 ]
 
#define H_SIZE_HI   UPPER_NIBBLE( (unsigned)block[ 14 ] )
 
#define V_SIZE_HI   LOWER_NIBBLE( (unsigned)block[ 14 ] )
 
#define H_SIZE   COMBINE_HI_8LO( H_SIZE_HI, H_SIZE_LO )
 
#define V_SIZE   COMBINE_HI_8LO( V_SIZE_HI, V_SIZE_LO )
 
#define H_BORDER   (unsigned)block[ 15 ]
 
#define V_BORDER   (unsigned)block[ 16 ]
 
#define FLAGS   (unsigned)block[ 17 ]
 
#define INTERLACED   (FLAGS&128)
 
#define SYNC_TYPE   (FLAGS&3<<3) /* bits 4,3 */
 
#define SYNC_SEPARATE   (3<<3)
 
#define HSYNC_POSITIVE   (FLAGS & 4)
 
#define VSYNC_POSITIVE   (FLAGS & 2)
 
#define V_MIN_RATE   block[ 5 ]
 
#define V_MAX_RATE   block[ 6 ]
 
#define H_MIN_RATE   block[ 7 ]
 
#define H_MAX_RATE   block[ 8 ]
 
#define MAX_PIXEL_CLOCK   (((int)block[ 9 ]) * 10)
 
#define GTF_SUPPORT   block[10]
 
#define DPMS_ACTIVE_OFF   (1 << 5)
 
#define DPMS_SUSPEND   (1 << 6)
 
#define DPMS_STANDBY   (1 << 7)
 

Macro Definition Documentation

#define COMBINE_HI_4LO (   hi,
  lo 
)    ( (((unsigned)hi) << 4) | (unsigned)lo )

Definition at line 69 of file edid.h.

#define COMBINE_HI_8LO (   hi,
  lo 
)    ( (((unsigned)hi) << 8) | (unsigned)lo )

Definition at line 66 of file edid.h.

#define DESCRIPTOR_DATA   5

Definition at line 58 of file edid.h.

#define DETAILED_TIMING_DESCRIPTION_1   0x36

Definition at line 53 of file edid.h.

#define DETAILED_TIMING_DESCRIPTION_2   0x48

Definition at line 54 of file edid.h.

#define DETAILED_TIMING_DESCRIPTION_3   0x5a

Definition at line 55 of file edid.h.

#define DETAILED_TIMING_DESCRIPTION_4   0x6c

Definition at line 56 of file edid.h.

#define DETAILED_TIMING_DESCRIPTION_SIZE   18

Definition at line 50 of file edid.h.

#define DETAILED_TIMING_DESCRIPTIONS_START   0x36

Definition at line 49 of file edid.h.

#define DPMS_ACTIVE_OFF   (1 << 5)

Definition at line 134 of file edid.h.

#define DPMS_FLAGS   0x18

Definition at line 39 of file edid.h.

#define DPMS_STANDBY   (1 << 7)

Definition at line 136 of file edid.h.

#define DPMS_SUSPEND   (1 << 6)

Definition at line 135 of file edid.h.

#define EDID_HEADER   0x00

Definition at line 22 of file edid.h.

#define EDID_HEADER_END   0x07

Definition at line 23 of file edid.h.

#define EDID_LENGTH   0x80

Definition at line 21 of file edid.h.

#define EDID_STRUCT_DISPLAY   0x14

Definition at line 37 of file edid.h.

#define EDID_STRUCT_REVISION   0x13

Definition at line 35 of file edid.h.

#define EDID_STRUCT_VERSION   0x12

Definition at line 34 of file edid.h.

#define ESTABLISHED_TIMING_1   0x23

Definition at line 40 of file edid.h.

#define ESTABLISHED_TIMING_2   0x24

Definition at line 41 of file edid.h.

#define FLAGS   (unsigned)block[ 17 ]

Definition at line 119 of file edid.h.

#define GTF_SUPPORT   block[10]

Definition at line 132 of file edid.h.

#define H_ACTIVE   COMBINE_HI_8LO( H_ACTIVE_HI, H_ACTIVE_LO )

Definition at line 78 of file edid.h.

#define H_ACTIVE_HI   UPPER_NIBBLE( (unsigned)block[ 4 ] )

Definition at line 77 of file edid.h.

#define H_ACTIVE_LO   (unsigned)block[ 2 ]

Definition at line 75 of file edid.h.

#define H_BLANKING   COMBINE_HI_8LO( H_BLANKING_HI, H_BLANKING_LO )

Definition at line 80 of file edid.h.

#define H_BLANKING_HI   LOWER_NIBBLE( (unsigned)block[ 4 ] )

Definition at line 79 of file edid.h.

#define H_BLANKING_LO   (unsigned)block[ 3 ]

Definition at line 76 of file edid.h.

#define H_BORDER   (unsigned)block[ 15 ]

Definition at line 116 of file edid.h.

#define H_MAX_RATE   block[ 8 ]

Definition at line 130 of file edid.h.

#define H_MIN_RATE   block[ 7 ]

Definition at line 129 of file edid.h.

#define H_SIZE   COMBINE_HI_8LO( H_SIZE_HI, H_SIZE_LO )

Definition at line 113 of file edid.h.

#define H_SIZE_HI   UPPER_NIBBLE( (unsigned)block[ 14 ] )

Definition at line 110 of file edid.h.

#define H_SIZE_LO   (unsigned)block[ 12 ]

Definition at line 107 of file edid.h.

#define H_SYNC_OFFSET   COMBINE_HI_8LO( H_SYNC_OFFSET_HI, H_SYNC_OFFSET_LO )

Definition at line 105 of file edid.h.

#define H_SYNC_OFFSET_HI   (((unsigned)block[ 11 ] & (64|128)) >> 6)

Definition at line 99 of file edid.h.

#define H_SYNC_OFFSET_LO   (unsigned)block[ 8 ]

Definition at line 89 of file edid.h.

#define H_SYNC_WIDTH   COMBINE_HI_8LO( H_SYNC_WIDTH_HI, H_SYNC_WIDTH_LO )

Definition at line 104 of file edid.h.

#define H_SYNC_WIDTH_HI   (((unsigned)block[ 11 ] & (16|32)) >> 4)

Definition at line 98 of file edid.h.

#define H_SYNC_WIDTH_LO   (unsigned)block[ 9 ]

Definition at line 90 of file edid.h.

#define HSYNC_POSITIVE   (FLAGS & 4)

Definition at line 124 of file edid.h.

#define ID_MANUFACTURER_NAME   0x08

Definition at line 25 of file edid.h.

#define ID_MANUFACTURER_NAME_END   0x09

Definition at line 26 of file edid.h.

#define ID_MODEL   0x0a

Definition at line 27 of file edid.h.

#define ID_SERIAL_NUMBER   0x0c

Definition at line 29 of file edid.h.

#define INTERLACED   (FLAGS&128)

Definition at line 121 of file edid.h.

#define LOWER_NIBBLE (   x)    ((1|2|4|8) & (x))

Definition at line 63 of file edid.h.

#define MANUFACTURE_WEEK   0x10

Definition at line 31 of file edid.h.

#define MANUFACTURE_YEAR   0x11

Definition at line 32 of file edid.h.

#define MANUFACTURERS_TIMINGS   0x25

Definition at line 42 of file edid.h.

#define MAX_PIXEL_CLOCK   (((int)block[ 9 ]) * 10)

Definition at line 131 of file edid.h.

#define NO_DETAILED_TIMING_DESCRIPTIONS   4

Definition at line 51 of file edid.h.

#define PIXEL_CLOCK   (COMBINE_HI_8LO( PIXEL_CLOCK_HI,PIXEL_CLOCK_LO )*10000)

Definition at line 74 of file edid.h.

#define PIXEL_CLOCK_HI   (unsigned)block[ 1 ]

Definition at line 73 of file edid.h.

#define PIXEL_CLOCK_LO   (unsigned)block[ 0 ]

Definition at line 72 of file edid.h.

#define STD_TIMING   8

Definition at line 45 of file edid.h.

#define STD_TIMING_DESCRIPTION_SIZE   2

Definition at line 46 of file edid.h.

#define STD_TIMING_DESCRIPTIONS_START   0x26

Definition at line 47 of file edid.h.

#define SYNC_SEPARATE   (3<<3)

Definition at line 123 of file edid.h.

#define SYNC_TYPE   (FLAGS&3<<3) /* bits 4,3 */

Definition at line 122 of file edid.h.

#define UPPER_NIBBLE (   x)    (((128|64|32|16) & (x)) >> 4)

Definition at line 60 of file edid.h.

#define V_ACTIVE   COMBINE_HI_8LO( V_ACTIVE_HI, V_ACTIVE_LO )

Definition at line 85 of file edid.h.

#define V_ACTIVE_HI   UPPER_NIBBLE( (unsigned)block[ 7 ] )

Definition at line 84 of file edid.h.

#define V_ACTIVE_LO   (unsigned)block[ 5 ]

Definition at line 82 of file edid.h.

#define V_BLANKING   COMBINE_HI_8LO( V_BLANKING_HI, V_BLANKING_LO )

Definition at line 87 of file edid.h.

#define V_BLANKING_HI   LOWER_NIBBLE( (unsigned)block[ 7 ] )

Definition at line 86 of file edid.h.

#define V_BLANKING_LO   (unsigned)block[ 6 ]

Definition at line 83 of file edid.h.

#define V_BORDER   (unsigned)block[ 16 ]

Definition at line 117 of file edid.h.

#define V_MAX_RATE   block[ 6 ]

Definition at line 128 of file edid.h.

#define V_MIN_RATE   block[ 5 ]

Definition at line 127 of file edid.h.

#define V_SIZE   COMBINE_HI_8LO( V_SIZE_HI, V_SIZE_LO )

Definition at line 114 of file edid.h.

#define V_SIZE_HI   LOWER_NIBBLE( (unsigned)block[ 14 ] )

Definition at line 111 of file edid.h.

#define V_SIZE_LO   (unsigned)block[ 13 ]

Definition at line 108 of file edid.h.

#define V_SYNC_OFFSET   COMBINE_HI_4LO( V_SYNC_OFFSET_HI, V_SYNC_OFFSET_LO )

Definition at line 102 of file edid.h.

#define V_SYNC_OFFSET_HI   (((unsigned)block[ 11 ] & (4|8)) >> 2)

Definition at line 96 of file edid.h.

#define V_SYNC_OFFSET_LO   UPPER_NIBBLE( (unsigned)block[ 10 ] )

Definition at line 92 of file edid.h.

#define V_SYNC_WIDTH   COMBINE_HI_4LO( V_SYNC_WIDTH_HI, V_SYNC_WIDTH_LO )

Definition at line 101 of file edid.h.

#define V_SYNC_WIDTH_HI   ((unsigned)block[ 11 ] & (1|2))

Definition at line 95 of file edid.h.

#define V_SYNC_WIDTH_LO   LOWER_NIBBLE( (unsigned)block[ 10 ] )

Definition at line 93 of file edid.h.

#define VSYNC_POSITIVE   (FLAGS & 2)

Definition at line 125 of file edid.h.