Rev 6938 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6938 | Rev 7146 | ||
---|---|---|---|
Line 842... | Line 842... | ||
842 | int r600_get_platform_caps(struct radeon_device *rdev) |
842 | int r600_get_platform_caps(struct radeon_device *rdev) |
843 | { |
843 | { |
844 | struct radeon_mode_info *mode_info = &rdev->mode_info; |
844 | struct radeon_mode_info *mode_info = &rdev->mode_info; |
845 | union power_info *power_info; |
845 | union power_info *power_info; |
846 | int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo); |
846 | int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo); |
847 | u16 data_offset; |
847 | u16 data_offset; |
848 | u8 frev, crev; |
848 | u8 frev, crev; |
Line 849... | Line 849... | ||
849 | 849 | ||
850 | if (!atom_parse_data_header(mode_info->atom_context, index, NULL, |
850 | if (!atom_parse_data_header(mode_info->atom_context, index, NULL, |
851 | &frev, &crev, &data_offset)) |
851 | &frev, &crev, &data_offset)) |
Line 872... | Line 872... | ||
872 | struct radeon_mode_info *mode_info = &rdev->mode_info; |
872 | struct radeon_mode_info *mode_info = &rdev->mode_info; |
873 | union power_info *power_info; |
873 | union power_info *power_info; |
874 | union fan_info *fan_info; |
874 | union fan_info *fan_info; |
875 | ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; |
875 | ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; |
876 | int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo); |
876 | int index = GetIndexIntoMasterTable(DATA, PowerPlayInfo); |
877 | u16 data_offset; |
877 | u16 data_offset; |
878 | u8 frev, crev; |
878 | u8 frev, crev; |
879 | int ret, i; |
879 | int ret, i; |
Line 880... | Line 880... | ||
880 | 880 | ||
881 | if (!atom_parse_data_header(mode_info->atom_context, index, NULL, |
881 | if (!atom_parse_data_header(mode_info->atom_context, index, NULL, |
Line 1068... | Line 1068... | ||
1068 | le16_to_cpu(power_info->pplib3.usExtendendedHeaderOffset)); |
1068 | le16_to_cpu(power_info->pplib3.usExtendendedHeaderOffset)); |
1069 | if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2) && |
1069 | if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2) && |
1070 | ext_hdr->usVCETableOffset) { |
1070 | ext_hdr->usVCETableOffset) { |
1071 | VCEClockInfoArray *array = (VCEClockInfoArray *) |
1071 | VCEClockInfoArray *array = (VCEClockInfoArray *) |
1072 | (mode_info->atom_context->bios + data_offset + |
1072 | (mode_info->atom_context->bios + data_offset + |
1073 | le16_to_cpu(ext_hdr->usVCETableOffset) + 1); |
1073 | le16_to_cpu(ext_hdr->usVCETableOffset) + 1); |
1074 | ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *limits = |
1074 | ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *limits = |
1075 | (ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *) |
1075 | (ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *) |
1076 | (mode_info->atom_context->bios + data_offset + |
1076 | (mode_info->atom_context->bios + data_offset + |
1077 | le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + |
1077 | le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + |
1078 | 1 + array->ucNumEntries * sizeof(VCEClockInfo)); |
1078 | 1 + array->ucNumEntries * sizeof(VCEClockInfo)); |