diff options
Diffstat (limited to 'drivers/gpu/drm/tegra/hdmi.h')
| -rw-r--r-- | drivers/gpu/drm/tegra/hdmi.h | 189 |
1 files changed, 0 insertions, 189 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.h b/drivers/gpu/drm/tegra/hdmi.h index 1477f36eb45a..52ac36e08ccb 100644 --- a/drivers/gpu/drm/tegra/hdmi.h +++ b/drivers/gpu/drm/tegra/hdmi.h | |||
| @@ -10,195 +10,6 @@ | |||
| 10 | #ifndef TEGRA_HDMI_H | 10 | #ifndef TEGRA_HDMI_H |
| 11 | #define TEGRA_HDMI_H 1 | 11 | #define TEGRA_HDMI_H 1 |
| 12 | 12 | ||
| 13 | #define HDMI_INFOFRAME_TYPE_VENDOR 0x81 | ||
| 14 | #define HDMI_INFOFRAME_TYPE_AVI 0x82 | ||
| 15 | #define HDMI_INFOFRAME_TYPE_SPD 0x83 | ||
| 16 | #define HDMI_INFOFRAME_TYPE_AUDIO 0x84 | ||
| 17 | #define HDMI_INFOFRAME_TYPE_MPEG_SRC 0x85 | ||
| 18 | #define HDMI_INFOFRAME_TYPE_NTSC_VBI 0x86 | ||
| 19 | |||
| 20 | /* all fields little endian */ | ||
| 21 | struct hdmi_avi_infoframe { | ||
| 22 | /* PB0 */ | ||
| 23 | u8 csum; | ||
| 24 | |||
| 25 | /* PB1 */ | ||
| 26 | unsigned s:2; /* scan information */ | ||
| 27 | unsigned b:2; /* bar info data valid */ | ||
| 28 | unsigned a:1; /* active info present */ | ||
| 29 | unsigned y:2; /* RGB or YCbCr */ | ||
| 30 | unsigned res1:1; | ||
| 31 | |||
| 32 | /* PB2 */ | ||
| 33 | unsigned r:4; /* active format aspect ratio */ | ||
| 34 | unsigned m:2; /* picture aspect ratio */ | ||
| 35 | unsigned c:2; /* colorimetry */ | ||
| 36 | |||
| 37 | /* PB3 */ | ||
| 38 | unsigned sc:2; /* scan information */ | ||
| 39 | unsigned q:2; /* quantization range */ | ||
| 40 | unsigned ec:3; /* extended colorimetry */ | ||
| 41 | unsigned itc:1; /* it content */ | ||
| 42 | |||
| 43 | /* PB4 */ | ||
| 44 | unsigned vic:7; /* video format id code */ | ||
| 45 | unsigned res4:1; | ||
| 46 | |||
| 47 | /* PB5 */ | ||
| 48 | unsigned pr:4; /* pixel repetition factor */ | ||
| 49 | unsigned cn:2; /* it content type*/ | ||
| 50 | unsigned yq:2; /* ycc quantization range */ | ||
| 51 | |||
| 52 | /* PB6-7 */ | ||
| 53 | u16 top_bar_end_line; | ||
| 54 | |||
| 55 | /* PB8-9 */ | ||
| 56 | u16 bot_bar_start_line; | ||
| 57 | |||
| 58 | /* PB10-11 */ | ||
| 59 | u16 left_bar_end_pixel; | ||
| 60 | |||
| 61 | /* PB12-13 */ | ||
| 62 | u16 right_bar_start_pixel; | ||
| 63 | } __packed; | ||
| 64 | |||
| 65 | #define HDMI_AVI_VERSION 0x02 | ||
| 66 | |||
| 67 | #define HDMI_AVI_Y_RGB 0x0 | ||
| 68 | #define HDMI_AVI_Y_YCBCR_422 0x1 | ||
| 69 | #define HDMI_AVI_Y_YCBCR_444 0x2 | ||
| 70 | |||
| 71 | #define HDMI_AVI_B_VERT 0x1 | ||
| 72 | #define HDMI_AVI_B_HORIZ 0x2 | ||
| 73 | |||
| 74 | #define HDMI_AVI_S_NONE 0x0 | ||
| 75 | #define HDMI_AVI_S_OVERSCAN 0x1 | ||
| 76 | #define HDMI_AVI_S_UNDERSCAN 0x2 | ||
| 77 | |||
| 78 | #define HDMI_AVI_C_NONE 0x0 | ||
| 79 | #define HDMI_AVI_C_SMPTE 0x1 | ||
| 80 | #define HDMI_AVI_C_ITU_R 0x2 | ||
| 81 | #define HDMI_AVI_C_EXTENDED 0x4 | ||
| 82 | |||
| 83 | #define HDMI_AVI_M_4_3 0x1 | ||
| 84 | #define HDMI_AVI_M_16_9 0x2 | ||
| 85 | |||
| 86 | #define HDMI_AVI_R_SAME 0x8 | ||
| 87 | #define HDMI_AVI_R_4_3_CENTER 0x9 | ||
| 88 | #define HDMI_AVI_R_16_9_CENTER 0xa | ||
| 89 | #define HDMI_AVI_R_14_9_CENTER 0xb | ||
| 90 | |||
| 91 | /* all fields little endian */ | ||
| 92 | struct hdmi_audio_infoframe { | ||
| 93 | /* PB0 */ | ||
| 94 | u8 csum; | ||
| 95 | |||
| 96 | /* PB1 */ | ||
| 97 | unsigned cc:3; /* channel count */ | ||
| 98 | unsigned res1:1; | ||
| 99 | unsigned ct:4; /* coding type */ | ||
| 100 | |||
| 101 | /* PB2 */ | ||
| 102 | unsigned ss:2; /* sample size */ | ||
| 103 | unsigned sf:3; /* sample frequency */ | ||
| 104 | unsigned res2:3; | ||
| 105 | |||
| 106 | /* PB3 */ | ||
| 107 | unsigned cxt:5; /* coding extention type */ | ||
| 108 | unsigned res3:3; | ||
| 109 | |||
| 110 | /* PB4 */ | ||
| 111 | u8 ca; /* channel/speaker allocation */ | ||
| 112 | |||
| 113 | /* PB5 */ | ||
| 114 | unsigned res5:3; | ||
| 115 | unsigned lsv:4; /* level shift value */ | ||
| 116 | unsigned dm_inh:1; /* downmix inhibit */ | ||
| 117 | |||
| 118 | /* PB6-10 reserved */ | ||
| 119 | u8 res6; | ||
| 120 | u8 res7; | ||
| 121 | u8 res8; | ||
| 122 | u8 res9; | ||
| 123 | u8 res10; | ||
| 124 | } __packed; | ||
| 125 | |||
| 126 | #define HDMI_AUDIO_VERSION 0x01 | ||
| 127 | |||
| 128 | #define HDMI_AUDIO_CC_STREAM 0x0 /* specified by audio stream */ | ||
| 129 | #define HDMI_AUDIO_CC_2 0x1 | ||
| 130 | #define HDMI_AUDIO_CC_3 0x2 | ||
| 131 | #define HDMI_AUDIO_CC_4 0x3 | ||
| 132 | #define HDMI_AUDIO_CC_5 0x4 | ||
| 133 | #define HDMI_AUDIO_CC_6 0x5 | ||
| 134 | #define HDMI_AUDIO_CC_7 0x6 | ||
| 135 | #define HDMI_AUDIO_CC_8 0x7 | ||
| 136 | |||
| 137 | #define HDMI_AUDIO_CT_STREAM 0x0 /* specified by audio stream */ | ||
| 138 | #define HDMI_AUDIO_CT_PCM 0x1 | ||
| 139 | #define HDMI_AUDIO_CT_AC3 0x2 | ||
| 140 | #define HDMI_AUDIO_CT_MPEG1 0x3 | ||
| 141 | #define HDMI_AUDIO_CT_MP3 0x4 | ||
| 142 | #define HDMI_AUDIO_CT_MPEG2 0x5 | ||
| 143 | #define HDMI_AUDIO_CT_AAC_LC 0x6 | ||
| 144 | #define HDMI_AUDIO_CT_DTS 0x7 | ||
| 145 | #define HDMI_AUDIO_CT_ATRAC 0x8 | ||
| 146 | #define HDMI_AUDIO_CT_DSD 0x9 | ||
| 147 | #define HDMI_AUDIO_CT_E_AC3 0xa | ||
| 148 | #define HDMI_AUDIO_CT_DTS_HD 0xb | ||
| 149 | #define HDMI_AUDIO_CT_MLP 0xc | ||
| 150 | #define HDMI_AUDIO_CT_DST 0xd | ||
| 151 | #define HDMI_AUDIO_CT_WMA_PRO 0xe | ||
| 152 | #define HDMI_AUDIO_CT_CXT 0xf | ||
| 153 | |||
| 154 | #define HDMI_AUDIO_SF_STREAM 0x0 /* specified by audio stream */ | ||
| 155 | #define HDMI_AUIDO_SF_32K 0x1 | ||
| 156 | #define HDMI_AUDIO_SF_44_1K 0x2 | ||
| 157 | #define HDMI_AUDIO_SF_48K 0x3 | ||
| 158 | #define HDMI_AUDIO_SF_88_2K 0x4 | ||
| 159 | #define HDMI_AUDIO_SF_96K 0x5 | ||
| 160 | #define HDMI_AUDIO_SF_176_4K 0x6 | ||
| 161 | #define HDMI_AUDIO_SF_192K 0x7 | ||
| 162 | |||
| 163 | #define HDMI_AUDIO_SS_STREAM 0x0 /* specified by audio stream */ | ||
| 164 | #define HDMI_AUDIO_SS_16BIT 0x1 | ||
| 165 | #define HDMI_AUDIO_SS_20BIT 0x2 | ||
| 166 | #define HDMI_AUDIO_SS_24BIT 0x3 | ||
| 167 | |||
| 168 | #define HDMI_AUDIO_CXT_CT 0x0 /* refer to coding in CT */ | ||
| 169 | #define HDMI_AUDIO_CXT_HE_AAC 0x1 | ||
| 170 | #define HDMI_AUDIO_CXT_HE_AAC_V2 0x2 | ||
| 171 | #define HDMI_AUDIO_CXT_MPEG_SURROUND 0x3 | ||
| 172 | |||
| 173 | /* all fields little endian */ | ||
| 174 | struct hdmi_stereo_infoframe { | ||
| 175 | /* PB0 */ | ||
| 176 | u8 csum; | ||
| 177 | |||
| 178 | /* PB1 */ | ||
| 179 | u8 regid0; | ||
| 180 | |||
| 181 | /* PB2 */ | ||
| 182 | u8 regid1; | ||
| 183 | |||
| 184 | /* PB3 */ | ||
| 185 | u8 regid2; | ||
| 186 | |||
| 187 | /* PB4 */ | ||
| 188 | unsigned res1:5; | ||
| 189 | unsigned hdmi_video_format:3; | ||
| 190 | |||
| 191 | /* PB5 */ | ||
| 192 | unsigned res2:4; | ||
| 193 | unsigned _3d_structure:4; | ||
| 194 | |||
| 195 | /* PB6*/ | ||
| 196 | unsigned res3:4; | ||
| 197 | unsigned _3d_ext_data:4; | ||
| 198 | } __packed; | ||
| 199 | |||
| 200 | #define HDMI_VENDOR_VERSION 0x01 | ||
| 201 | |||
| 202 | /* register definitions */ | 13 | /* register definitions */ |
| 203 | #define HDMI_CTXSW 0x00 | 14 | #define HDMI_CTXSW 0x00 |
| 204 | 15 | ||
