aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_asic.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_asic.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h
index 18c38d14c8cd..5e3a0e5c6be1 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.h
+++ b/drivers/gpu/drm/radeon/radeon_asic.h
@@ -42,6 +42,12 @@ uint32_t radeon_atom_get_memory_clock(struct radeon_device *rdev);
42void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock); 42void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock);
43void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); 43void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable);
44 44
45void atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level);
46u8 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder);
47void radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level);
48u8 radeon_legacy_get_backlight_level(struct radeon_encoder *radeon_encoder);
49
50
45/* 51/*
46 * r100,rv100,rs100,rv200,rs200 52 * r100,rv100,rs100,rv200,rs200
47 */ 53 */
@@ -389,6 +395,7 @@ void r700_cp_fini(struct radeon_device *rdev);
389struct evergreen_mc_save { 395struct evergreen_mc_save {
390 u32 vga_render_control; 396 u32 vga_render_control;
391 u32 vga_hdp_control; 397 u32 vga_hdp_control;
398 bool crtc_enabled[RADEON_MAX_CRTCS];
392}; 399};
393 400
394void evergreen_pcie_gart_tlb_flush(struct radeon_device *rdev); 401void evergreen_pcie_gart_tlb_flush(struct radeon_device *rdev);
@@ -413,6 +420,7 @@ extern void evergreen_pm_misc(struct radeon_device *rdev);
413extern void evergreen_pm_prepare(struct radeon_device *rdev); 420extern void evergreen_pm_prepare(struct radeon_device *rdev);
414extern void evergreen_pm_finish(struct radeon_device *rdev); 421extern void evergreen_pm_finish(struct radeon_device *rdev);
415extern void sumo_pm_init_profile(struct radeon_device *rdev); 422extern void sumo_pm_init_profile(struct radeon_device *rdev);
423extern void btc_pm_init_profile(struct radeon_device *rdev);
416extern void evergreen_pre_page_flip(struct radeon_device *rdev, int crtc); 424extern void evergreen_pre_page_flip(struct radeon_device *rdev, int crtc);
417extern u32 evergreen_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); 425extern u32 evergreen_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base);
418extern void evergreen_post_page_flip(struct radeon_device *rdev, int crtc); 426extern void evergreen_post_page_flip(struct radeon_device *rdev, int crtc);
@@ -435,14 +443,11 @@ int cayman_asic_reset(struct radeon_device *rdev);
435void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); 443void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib);
436int cayman_vm_init(struct radeon_device *rdev); 444int cayman_vm_init(struct radeon_device *rdev);
437void cayman_vm_fini(struct radeon_device *rdev); 445void cayman_vm_fini(struct radeon_device *rdev);
438int cayman_vm_bind(struct radeon_device *rdev, struct radeon_vm *vm, int id); 446void cayman_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm);
439void cayman_vm_unbind(struct radeon_device *rdev, struct radeon_vm *vm); 447uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags);
440void cayman_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm); 448void cayman_vm_set_page(struct radeon_device *rdev, uint64_t pe,
441uint32_t cayman_vm_page_flags(struct radeon_device *rdev, 449 uint64_t addr, unsigned count,
442 struct radeon_vm *vm, 450 uint32_t incr, uint32_t flags);
443 uint32_t flags);
444void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm,
445 unsigned pfn, uint64_t addr, uint32_t flags);
446int evergreen_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); 451int evergreen_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib);
447 452
448/* DCE6 - SI */ 453/* DCE6 - SI */
@@ -465,9 +470,10 @@ int si_irq_set(struct radeon_device *rdev);
465int si_irq_process(struct radeon_device *rdev); 470int si_irq_process(struct radeon_device *rdev);
466int si_vm_init(struct radeon_device *rdev); 471int si_vm_init(struct radeon_device *rdev);
467void si_vm_fini(struct radeon_device *rdev); 472void si_vm_fini(struct radeon_device *rdev);
468int si_vm_bind(struct radeon_device *rdev, struct radeon_vm *vm, int id); 473void si_vm_set_page(struct radeon_device *rdev, uint64_t pe,
469void si_vm_unbind(struct radeon_device *rdev, struct radeon_vm *vm); 474 uint64_t addr, unsigned count,
470void si_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm); 475 uint32_t incr, uint32_t flags);
476void si_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm);
471int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); 477int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib);
472uint64_t si_get_gpu_clock(struct radeon_device *rdev); 478uint64_t si_get_gpu_clock(struct radeon_device *rdev);
473 479