Style cleanup. Variable rename, fill out IGP TODO a little better
This commit is contained in:
@@ -676,7 +676,7 @@ connector_probe_legacy()
|
|||||||
ATOM_CONNECTOR_INFO_I2C ci
|
ATOM_CONNECTOR_INFO_I2C ci
|
||||||
= supportedDevices->info.asConnInfo[i];
|
= supportedDevices->info.asConnInfo[i];
|
||||||
|
|
||||||
gConnector[connectorIndex]->type = connector_convert_legacy[
|
gConnector[connectorIndex]->type = kConnectorConvertLegacy[
|
||||||
ci.sucConnectorInfo.sbfAccess.bfConnectorType];
|
ci.sucConnectorInfo.sbfAccess.bfConnectorType];
|
||||||
|
|
||||||
if (gConnector[connectorIndex]->type == VIDEO_CONNECTOR_UNKNOWN) {
|
if (gConnector[connectorIndex]->type == VIDEO_CONNECTOR_UNKNOWN) {
|
||||||
@@ -813,12 +813,18 @@ connector_probe()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 igp_lane_info;
|
radeon_shared_info &info = *gInfo->shared_info;
|
||||||
if (0)
|
|
||||||
|
uint16 igpLaneInfo;
|
||||||
|
if ((info.chipsetFlags & CHIP_IGP) != 0)
|
||||||
ERROR("%s: TODO: IGP chip connector detection\n", __func__);
|
ERROR("%s: TODO: IGP chip connector detection\n", __func__);
|
||||||
|
// try non-IGP method for now
|
||||||
|
igpLaneInfo = 0;
|
||||||
|
connectorType = kConnectorConvert[con_obj_id];
|
||||||
|
connectorObjectID = con_obj_id;
|
||||||
else {
|
else {
|
||||||
igp_lane_info = 0;
|
igpLaneInfo = 0;
|
||||||
connectorType = connector_convert[con_obj_id];
|
connectorType = kConnectorConvert[con_obj_id];
|
||||||
connectorObjectID = con_obj_id;
|
connectorObjectID = con_obj_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// convert radeon connector to common connector type
|
// convert radeon connector to common connector type
|
||||||
const int connector_convert_legacy[] = {
|
const int kConnectorConvertLegacy[] = {
|
||||||
VIDEO_CONNECTOR_UNKNOWN,
|
VIDEO_CONNECTOR_UNKNOWN,
|
||||||
VIDEO_CONNECTOR_VGA,
|
VIDEO_CONNECTOR_VGA,
|
||||||
VIDEO_CONNECTOR_DVII,
|
VIDEO_CONNECTOR_DVII,
|
||||||
@@ -54,7 +54,7 @@ const int connector_convert_legacy[] = {
|
|||||||
VIDEO_CONNECTOR_DP
|
VIDEO_CONNECTOR_DP
|
||||||
};
|
};
|
||||||
|
|
||||||
const int connector_convert[] = {
|
const int kConnectorConvert[] = {
|
||||||
VIDEO_CONNECTOR_UNKNOWN,
|
VIDEO_CONNECTOR_UNKNOWN,
|
||||||
VIDEO_CONNECTOR_DVII,
|
VIDEO_CONNECTOR_DVII,
|
||||||
VIDEO_CONNECTOR_DVII,
|
VIDEO_CONNECTOR_DVII,
|
||||||
|
|||||||
Reference in New Issue
Block a user