|
|
|
@ -168,13 +168,6 @@ static struct radeon_asic r100_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -191,6 +184,13 @@ static struct radeon_asic r100_asic = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r100_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -240,12 +240,6 @@ static struct radeon_asic r200_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -262,6 +256,13 @@ static struct radeon_asic r200_asic = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r100_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -311,13 +312,6 @@ static struct radeon_asic r300_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -334,6 +328,13 @@ static struct radeon_asic r300_asic = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r100_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -383,12 +384,6 @@ static struct radeon_asic r300_asic_pcie = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -405,6 +400,13 @@ static struct radeon_asic r300_asic_pcie = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r100_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -454,13 +456,6 @@ static struct radeon_asic r420_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
|
|
|
|
@ -478,6 +473,13 @@ static struct radeon_asic r420_asic = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r420_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -527,13 +529,6 @@ static struct radeon_asic rs400_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -550,6 +545,13 @@ static struct radeon_asic rs400_asic = {
|
|
|
|
|
.finish = &r100_pm_finish,
|
|
|
|
|
.init_profile = &r100_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_legacy_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_legacy_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_legacy_get_memory_clock,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_legacy_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &r100_pre_page_flip,
|
|
|
|
@ -599,13 +601,6 @@ static struct radeon_asic rs600_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -622,6 +617,13 @@ static struct radeon_asic rs600_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r420_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -671,13 +673,6 @@ static struct radeon_asic rs690_asic = {
|
|
|
|
|
.copy = &r200_copy_dma,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -694,6 +689,13 @@ static struct radeon_asic rs690_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r420_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -743,13 +745,6 @@ static struct radeon_asic rv515_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -766,6 +761,13 @@ static struct radeon_asic rv515_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r420_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -815,13 +817,6 @@ static struct radeon_asic r520_asic = {
|
|
|
|
|
.copy = &r100_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r100_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r100_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -838,6 +833,13 @@ static struct radeon_asic r520_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r420_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r100_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &rv370_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &rv370_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -886,13 +888,6 @@ static struct radeon_asic r600_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -909,6 +904,13 @@ static struct radeon_asic r600_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r600_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -957,13 +959,6 @@ static struct radeon_asic rs780_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = NULL,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -980,6 +975,13 @@ static struct radeon_asic rs780_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &rs780_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = NULL,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -1028,13 +1030,6 @@ static struct radeon_asic rv770_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -1051,6 +1046,13 @@ static struct radeon_asic rv770_asic = {
|
|
|
|
|
.finish = &rs600_pm_finish,
|
|
|
|
|
.init_profile = &r600_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = &radeon_atom_set_clock_gating,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &rs600_pre_page_flip,
|
|
|
|
@ -1099,13 +1101,6 @@ static struct radeon_asic evergreen_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -1122,6 +1117,13 @@ static struct radeon_asic evergreen_asic = {
|
|
|
|
|
.finish = &evergreen_pm_finish,
|
|
|
|
|
.init_profile = &r600_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = &r600_get_pcie_lanes,
|
|
|
|
|
.set_pcie_lanes = &r600_set_pcie_lanes,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &evergreen_pre_page_flip,
|
|
|
|
@ -1170,13 +1172,6 @@ static struct radeon_asic sumo_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = NULL,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -1193,6 +1188,13 @@ static struct radeon_asic sumo_asic = {
|
|
|
|
|
.finish = &evergreen_pm_finish,
|
|
|
|
|
.init_profile = &sumo_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = NULL,
|
|
|
|
|
.set_memory_clock = NULL,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &evergreen_pre_page_flip,
|
|
|
|
@ -1241,13 +1243,6 @@ static struct radeon_asic btc_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -1264,6 +1259,13 @@ static struct radeon_asic btc_asic = {
|
|
|
|
|
.finish = &evergreen_pm_finish,
|
|
|
|
|
.init_profile = &r600_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &evergreen_pre_page_flip,
|
|
|
|
@ -1341,13 +1343,6 @@ static struct radeon_asic cayman_asic = {
|
|
|
|
|
.copy = &r600_copy_blit,
|
|
|
|
|
.copy_ring_index = RADEON_RING_TYPE_GFX_INDEX,
|
|
|
|
|
},
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
.set_surface_reg = r600_set_surface_reg,
|
|
|
|
|
.clear_surface_reg = r600_clear_surface_reg,
|
|
|
|
|
.hpd = {
|
|
|
|
@ -1364,6 +1359,13 @@ static struct radeon_asic cayman_asic = {
|
|
|
|
|
.finish = &evergreen_pm_finish,
|
|
|
|
|
.init_profile = &r600_pm_init_profile,
|
|
|
|
|
.get_dynpm_state = &r600_pm_get_dynpm_state,
|
|
|
|
|
.get_engine_clock = &radeon_atom_get_engine_clock,
|
|
|
|
|
.set_engine_clock = &radeon_atom_set_engine_clock,
|
|
|
|
|
.get_memory_clock = &radeon_atom_get_memory_clock,
|
|
|
|
|
.set_memory_clock = &radeon_atom_set_memory_clock,
|
|
|
|
|
.get_pcie_lanes = NULL,
|
|
|
|
|
.set_pcie_lanes = NULL,
|
|
|
|
|
.set_clock_gating = NULL,
|
|
|
|
|
},
|
|
|
|
|
.pflip = {
|
|
|
|
|
.pre_page_flip = &evergreen_pre_page_flip,
|
|
|
|
@ -1412,10 +1414,10 @@ int radeon_asic_init(struct radeon_device *rdev)
|
|
|
|
|
rdev->asic = &r420_asic;
|
|
|
|
|
/* handle macs */
|
|
|
|
|
if (rdev->bios == NULL) {
|
|
|
|
|
rdev->asic->get_engine_clock = &radeon_legacy_get_engine_clock;
|
|
|
|
|
rdev->asic->set_engine_clock = &radeon_legacy_set_engine_clock;
|
|
|
|
|
rdev->asic->get_memory_clock = &radeon_legacy_get_memory_clock;
|
|
|
|
|
rdev->asic->set_memory_clock = NULL;
|
|
|
|
|
rdev->asic->pm.get_engine_clock = &radeon_legacy_get_engine_clock;
|
|
|
|
|
rdev->asic->pm.set_engine_clock = &radeon_legacy_set_engine_clock;
|
|
|
|
|
rdev->asic->pm.get_memory_clock = &radeon_legacy_get_memory_clock;
|
|
|
|
|
rdev->asic->pm.set_memory_clock = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case CHIP_RS400:
|
|
|
|
@ -1496,8 +1498,8 @@ int radeon_asic_init(struct radeon_device *rdev)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rdev->flags & RADEON_IS_IGP) {
|
|
|
|
|
rdev->asic->get_memory_clock = NULL;
|
|
|
|
|
rdev->asic->set_memory_clock = NULL;
|
|
|
|
|
rdev->asic->pm.get_memory_clock = NULL;
|
|
|
|
|
rdev->asic->pm.set_memory_clock = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|