Lines Matching refs:radeon_output
133 RADEONOutputPrivatePtr radeon_output;
139 radeon_output = output->driver_private;
143 ErrorF(" Connector: %s\n", ConnectorTypeName[radeon_output->ConnectorType]);
144 if (radeon_output->devices & ATOM_DEVICE_CRT1_SUPPORT)
146 if (radeon_output->devices & ATOM_DEVICE_CRT2_SUPPORT)
148 if (radeon_output->devices & ATOM_DEVICE_LCD1_SUPPORT)
150 if (radeon_output->devices & ATOM_DEVICE_DFP1_SUPPORT)
152 if (radeon_output->devices & ATOM_DEVICE_DFP2_SUPPORT)
154 if (radeon_output->devices & ATOM_DEVICE_DFP3_SUPPORT)
156 if (radeon_output->devices & ATOM_DEVICE_DFP4_SUPPORT)
158 if (radeon_output->devices & ATOM_DEVICE_DFP5_SUPPORT)
160 if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT)
162 if (radeon_output->devices & ATOM_DEVICE_CV_SUPPORT)
164 ErrorF(" DDC reg: 0x%x\n",(unsigned int)radeon_output->ddc_i2c.mask_clk_reg);
172 RADEONOutputPrivatePtr radeon_output = output->driver_private;
174 radeon_output->active_device = 0;
176 switch (radeon_output->MonType) {
179 if (radeon_output->devices & ATOM_DEVICE_DFP1_SUPPORT)
180 radeon_output->active_device = ATOM_DEVICE_DFP1_SUPPORT;
181 else if (radeon_output->devices & ATOM_DEVICE_DFP2_SUPPORT)
182 radeon_output->active_device = ATOM_DEVICE_DFP2_SUPPORT;
183 else if (radeon_output->devices & ATOM_DEVICE_DFP3_SUPPORT)
184 radeon_output->active_device = ATOM_DEVICE_DFP3_SUPPORT;
185 else if (radeon_output->devices & ATOM_DEVICE_DFP4_SUPPORT)
186 radeon_output->active_device = ATOM_DEVICE_DFP4_SUPPORT;
187 else if (radeon_output->devices & ATOM_DEVICE_DFP5_SUPPORT)
188 radeon_output->active_device = ATOM_DEVICE_DFP5_SUPPORT;
189 else if (radeon_output->devices & ATOM_DEVICE_LCD1_SUPPORT)
190 radeon_output->active_device = ATOM_DEVICE_LCD1_SUPPORT;
191 else if (radeon_output->devices & ATOM_DEVICE_LCD2_SUPPORT)
192 radeon_output->active_device = ATOM_DEVICE_LCD2_SUPPORT;
195 if (radeon_output->devices & ATOM_DEVICE_CRT1_SUPPORT)
196 radeon_output->active_device = ATOM_DEVICE_CRT1_SUPPORT;
197 else if (radeon_output->devices & ATOM_DEVICE_CRT2_SUPPORT)
198 radeon_output->active_device = ATOM_DEVICE_CRT2_SUPPORT;
201 if (radeon_output->devices & ATOM_DEVICE_LCD1_SUPPORT)
202 radeon_output->active_device = ATOM_DEVICE_LCD1_SUPPORT;
203 else if (radeon_output->devices & ATOM_DEVICE_LCD2_SUPPORT)
204 radeon_output->active_device = ATOM_DEVICE_LCD2_SUPPORT;
208 if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT)
209 radeon_output->active_device = ATOM_DEVICE_TV1_SUPPORT;
210 else if (radeon_output->devices & ATOM_DEVICE_TV2_SUPPORT)
211 radeon_output->active_device = ATOM_DEVICE_TV2_SUPPORT;
214 if (radeon_output->devices & ATOM_DEVICE_CV_SUPPORT)
215 radeon_output->active_device = ATOM_DEVICE_CV_SUPPORT;
218 ErrorF("Unhandled monitor type %d\n", radeon_output->MonType);
219 radeon_output->active_device = 0;
234 RADEONOutputPrivatePtr radeon_output = output->driver_private;
237 radeon_output->custom_edid = FALSE;
238 radeon_output->custom_mon = NULL;
267 radeon_output->custom_mon = xf86InterpretEDID(output->scrn->scrnIndex, edid);
268 radeon_output->custom_edid = TRUE;
274 radeon_output->custom_mon->rawData[0x14] |= 0x80;
278 radeon_output->custom_mon->rawData[0x14] &= ~0x80;
313 RADEONOutputPrivatePtr radeon_output = output->driver_private;
316 if (radeon_output->custom_edid) {
318 *MonInfo = *radeon_output->custom_mon;
319 } else if ((radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT) ||
320 (radeon_output->ConnectorType == CONNECTOR_EDP)) {
324 MonInfo = xf86OutputGetEDID(output, radeon_output->dp_pI2CBus);
327 if (radeon_output->pI2CBus) {
328 RADEONI2CDoLock(output, radeon_output->pI2CBus, TRUE);
329 MonInfo = xf86OutputGetEDID(output, radeon_output->pI2CBus);
330 RADEONI2CDoLock(output, radeon_output->pI2CBus, FALSE);
333 } else if (radeon_output->pI2CBus) {
337 RADEONI2CDoLock(output, radeon_output->pI2CBus, TRUE);
338 MonInfo = xf86OutputGetEDID(output, radeon_output->pI2CBus);
339 RADEONI2CDoLock(output, radeon_output->pI2CBus, FALSE);
343 switch (radeon_output->ConnectorType) {
349 if (radeon_output->shared_ddc) {
362 if (radeon_output->devices & other_radeon_output->devices) {
364 if (radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_A) {
370 if (radeon_output->ConnectorType == CONNECTOR_DVI_D) {
375 if (radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_A) {
412 if (radeon_output->shared_ddc) {
483 RADEONOutputPrivatePtr radeon_output = output->driver_private;
485 if ((mode == DPMSModeOn) && radeon_output->enabled)
488 if ((mode != DPMSModeOn) && radeon_output->shared_ddc) {
496 if (radeon_output->devices & other_radeon_output->devices) {
512 radeon_output->enabled = TRUE;
514 radeon_output->enabled = FALSE;
533 RADEONOutputPrivatePtr radeon_output = output->driver_private;
534 radeon_native_mode_ptr native_mode = &radeon_output->native_mode;
549 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT)) {
562 if ((radeon_output->MonType == MT_DFP) &&
568 if (pMode->Clock > 165000 && radeon_output->MonType == MT_DFP) {
570 if (radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT)
573 if (radeon_output->ConnectorType == CONNECTOR_EDP)
577 if (radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_A)
587 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT)) {
588 if (radeon_output->rmx_type == RMX_OFF) {
606 RADEONOutputPrivatePtr radeon_output = output->driver_private;
607 radeon_native_mode_ptr native_mode = &radeon_output->native_mode;
611 radeon_output->Flags &= ~RADEON_USE_RMX;
621 if ((radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT))
622 && radeon_output->rmx_type != RMX_OFF) {
627 radeon_output->Flags |= RADEON_USE_RMX;
678 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)) {
692 if (radeon_output->MonType == MT_STV || radeon_output->MonType == MT_CTV) {
693 radeon_tvout_ptr tvout = &radeon_output->tvout;
705 if (((radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT) ||
706 (radeon_output->ConnectorType == CONNECTOR_EDP)) &&
707 (radeon_output->MonType == MT_DP)) {
825 RADEONOutputPrivatePtr radeon_output = output->driver_private;
830 if (radeon_output->active_device & ATOM_DEVICE_TV1_SUPPORT) {
835 } else if (radeon_output->active_device & ATOM_DEVICE_CV_SUPPORT) {
840 } else if (radeon_output->active_device & ATOM_DEVICE_CRT1_SUPPORT) {
845 } else if (radeon_output->active_device & ATOM_DEVICE_CRT2_SUPPORT) {
850 } else if (radeon_output->active_device & ATOM_DEVICE_LCD1_SUPPORT) {
855 } else if (radeon_output->active_device & ATOM_DEVICE_DFP1_SUPPORT) {
860 } else if (radeon_output->active_device & ATOM_DEVICE_DFP2_SUPPORT) {
865 } else if (radeon_output->active_device & ATOM_DEVICE_DFP3_SUPPORT) {
870 } else if (radeon_output->active_device & ATOM_DEVICE_DFP4_SUPPORT) {
875 } else if (radeon_output->active_device & ATOM_DEVICE_DFP5_SUPPORT) {
893 if (radeon_output->active_device & ATOM_DEVICE_TV1_SUPPORT) {
898 } else if (radeon_output->active_device & ATOM_DEVICE_CRT1_SUPPORT) {
903 } else if (radeon_output->active_device & ATOM_DEVICE_CRT2_SUPPORT) {
908 } else if (radeon_output->active_device & ATOM_DEVICE_LCD1_SUPPORT) {
913 } else if (radeon_output->active_device & ATOM_DEVICE_DFP1_SUPPORT) {
918 } else if (radeon_output->active_device & ATOM_DEVICE_DFP2_SUPPORT) {
933 RADEONOutputPrivatePtr radeon_output = output->driver_private;
944 if (radeon_output->active_device & ATOM_DEVICE_TV1_SUPPORT) {
947 } else if (radeon_output->active_device & ATOM_DEVICE_CV_SUPPORT) {
950 } else if (radeon_output->active_device & ATOM_DEVICE_CRT1_SUPPORT) {
953 } else if (radeon_output->active_device & ATOM_DEVICE_CRT2_SUPPORT) {
956 } else if (radeon_output->active_device & ATOM_DEVICE_LCD1_SUPPORT) {
959 } else if (radeon_output->active_device & ATOM_DEVICE_DFP1_SUPPORT) {
962 } else if (radeon_output->active_device & ATOM_DEVICE_DFP2_SUPPORT) {
965 } else if (radeon_output->active_device & ATOM_DEVICE_DFP3_SUPPORT) {
974 if (radeon_output->active_device & ATOM_DEVICE_TV1_SUPPORT) {
977 } else if (radeon_output->active_device & ATOM_DEVICE_CRT1_SUPPORT) {
980 } else if (radeon_output->active_device & ATOM_DEVICE_CRT2_SUPPORT) {
983 } else if (radeon_output->active_device & ATOM_DEVICE_LCD1_SUPPORT) {
986 } else if (radeon_output->active_device & ATOM_DEVICE_DFP1_SUPPORT) {
989 } else if (radeon_output->active_device & ATOM_DEVICE_DFP2_SUPPORT) {
1002 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1007 switch (radeon_output->active_device) {
1105 switch (radeon_output->active_device) {
1108 if (radeon_output->MonType == MT_STV)
1110 else if (radeon_output->MonType == MT_CTV)
1175 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1178 radeon_output->MonType = MT_UNKNOWN;
1180 radeon_output->MonType = radeon_ddc_connected(output);
1181 if (!radeon_output->MonType) {
1182 if (radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
1184 radeon_output->MonType = MT_LCD;
1187 radeon_output->MonType = MT_LCD;
1189 radeon_output->MonType = RADEONDetectLidStatus(pScrn);
1193 radeon_output->MonType = atombios_dac_detect(output);
1195 radeon_output->MonType = legacy_dac_detect(output);
1200 if (radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
1206 radeon_output->MonType = MT_NONE;
1213 "Output: %s, Detected Monitor Type: %d\n", output->name, radeon_output->MonType);
1221 if (radeon_output->MonType == MT_NONE &&
1224 if (radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
1225 radeon_output->MonType = MT_LCD;
1230 if (radeon_output->devices & (ATOM_DEVICE_CRT_SUPPORT)) {
1231 radeon_output->MonType = MT_CRT;
1234 } else if (radeon_output->devices & (ATOM_DEVICE_DFP_SUPPORT)) {
1235 radeon_output->MonType = MT_DFP;
1245 if (radeon_output->MonType == MT_NONE) {
1247 switch (radeon_output->ConnectorType) {
1249 radeon_output->MonType = MT_LCD;
1254 radeon_output->MonType = MT_DFP;
1259 radeon_output->MonType = MT_CRT;
1262 if (radeon_output->DVIType == DVI_ANALOG)
1263 radeon_output->MonType = MT_CRT;
1264 else if (radeon_output->DVIType == DVI_DIGITAL)
1265 radeon_output->MonType = MT_DFP;
1268 radeon_output->MonType = MT_STV;
1271 radeon_output->MonType = MT_CTV;
1274 radeon_output->MonType = MT_CV;
1278 radeon_output->MonType = MT_DP;
1285 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT | ATOM_DEVICE_DFP_SUPPORT))
1324 //usleep (radeon_output->PanelPwrDly * 1000);
1327 //usleep (radeon_output->PanelPwrDly * 1000);
1349 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1356 if (radeon_output->type == OUTPUT_LVDS) {
1380 if (radeon_output->devices & (ATOM_DEVICE_CRT_SUPPORT | ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)) {
1392 if (radeon_output->load_detection)
1406 if (IS_AVIVO_VARIANT && (radeon_output->devices & (ATOM_DEVICE_DFP_SUPPORT))) {
1429 if ((!IS_AVIVO_VARIANT) && (radeon_output->devices & (ATOM_DEVICE_DFP1_SUPPORT))) {
1460 if (radeon_output->devices & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) {
1470 switch (radeon_output->rmx_type) {
1495 if ((radeon_output->devices & (ATOM_DEVICE_CRT_SUPPORT)) &&
1496 (radeon_output->devices & (ATOM_DEVICE_DFP_SUPPORT))){
1516 if (radeon_output->devices & (ATOM_DEVICE_TV_SUPPORT)) {
1517 radeon_tvout_ptr tvout = &radeon_output->tvout;
1659 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1691 radeon_output->load_detection = val;
1694 Bool coherent_mode = radeon_output->coherent_mode;
1706 radeon_output->coherent_mode = val;
1708 radeon_output->coherent_mode = coherent_mode;
1715 RADEONRMXType rmx = radeon_output->rmx_type;
1721 radeon_output->rmx_type = RMX_FULL;
1723 radeon_output->rmx_type = RMX_CENTER;
1726 radeon_output->rmx_type = RMX_ASPECT;
1730 radeon_output->rmx_type = RMX_OFF;
1735 radeon_output->rmx_type = rmx;
1766 radeon_output->DVIType = DVI_AUTO;
1769 radeon_output->DVIType = DVI_ANALOG;
1772 radeon_output->DVIType = DVI_DIGITAL;
1777 radeon_tvout_ptr tvout = &radeon_output->tvout;
1793 radeon_tvout_ptr tvout = &radeon_output->tvout;
1809 radeon_tvout_ptr tvout = &radeon_output->tvout;
1826 radeon_tvout_ptr tvout = &radeon_output->tvout;
2087 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2088 radeon_tvout_ptr tvout = &radeon_output->tvout;
2129 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2131 if (radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT))
2132 radeon_output->rmx_type = RMX_FULL;
2134 radeon_output->rmx_type = RMX_OFF;
2137 if (radeon_output->devices & (ATOM_DEVICE_CRT2_SUPPORT)) {
2139 radeon_output->load_detection = 1;
2143 if (radeon_output->devices & (ATOM_DEVICE_TV_SUPPORT))
2146 if (radeon_output->devices & (ATOM_DEVICE_DFP_SUPPORT))
2147 radeon_output->coherent_mode = TRUE;
2149 if (radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT) {
2150 strcpy(radeon_output->dp_bus_name, output->name);
2151 strcat(radeon_output->dp_bus_name, "-DP");
2152 RADEON_DP_I2CInit(pScrn, &radeon_output->dp_pI2CBus, radeon_output->dp_bus_name, output);
2156 if (radeon_output->ConnectorType == CONNECTOR_EDP) {
2157 strcpy(radeon_output->dp_bus_name, output->name);
2158 strcat(radeon_output->dp_bus_name, "-eDP");
2159 RADEON_DP_I2CInit(pScrn, &radeon_output->dp_pI2CBus, radeon_output->dp_bus_name, output);
2163 if (radeon_output->ddc_i2c.valid)
2164 RADEONI2CInit(pScrn, &radeon_output->pI2CBus, output->name, &radeon_output->ddc_i2c);
2922 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2936 if (radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT))
2940 if (radeon_output->devices & (ATOM_DEVICE_TV_SUPPORT))
2944 if (radeon_output->devices & (ATOM_DEVICE_DFP2_SUPPORT))
3144 RADEONOutputPrivatePtr radeon_output;
3150 radeon_output = xnfcalloc(sizeof(RADEONOutputPrivateRec), 1);
3151 if (!radeon_output) {
3154 radeon_output->MonType = MT_UNKNOWN;
3155 radeon_output->ConnectorType = conntype;
3156 radeon_output->devices = info->BiosConnector[i].devices;
3157 radeon_output->ddc_i2c = info->BiosConnector[i].ddc_i2c;
3158 radeon_output->igp_lane_info = info->BiosConnector[i].igp_lane_info;
3159 radeon_output->shared_ddc = info->BiosConnector[i].shared_ddc;
3160 radeon_output->load_detection = info->BiosConnector[i].load_detection;
3161 radeon_output->linkb = info->BiosConnector[i].linkb;
3162 radeon_output->dig_encoder = -1;
3163 radeon_output->connector_id = info->BiosConnector[i].connector_object;
3164 radeon_output->connector_object_id = info->BiosConnector[i].connector_object_id;
3165 radeon_output->ucI2cId = info->BiosConnector[i].ucI2cId;
3166 radeon_output->hpd_id = info->BiosConnector[i].hpd_id;
3195 output->driver_private = radeon_output;
3201 if (!(radeon_output->devices & (ATOM_DEVICE_LCD_SUPPORT)))