diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.h | 28 |
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); | |||
42 | void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock); | 42 | void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock); |
43 | void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); | 43 | void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); |
44 | 44 | ||
45 | void atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); | ||
46 | u8 atombios_get_backlight_level(struct radeon_encoder *radeon_encoder); | ||
47 | void radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level); | ||
48 | u8 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); | |||
389 | struct evergreen_mc_save { | 395 | struct 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 | ||
394 | void evergreen_pcie_gart_tlb_flush(struct radeon_device *rdev); | 401 | void evergreen_pcie_gart_tlb_flush(struct radeon_device *rdev); |
@@ -413,6 +420,7 @@ extern void evergreen_pm_misc(struct radeon_device *rdev); | |||
413 | extern void evergreen_pm_prepare(struct radeon_device *rdev); | 420 | extern void evergreen_pm_prepare(struct radeon_device *rdev); |
414 | extern void evergreen_pm_finish(struct radeon_device *rdev); | 421 | extern void evergreen_pm_finish(struct radeon_device *rdev); |
415 | extern void sumo_pm_init_profile(struct radeon_device *rdev); | 422 | extern void sumo_pm_init_profile(struct radeon_device *rdev); |
423 | extern void btc_pm_init_profile(struct radeon_device *rdev); | ||
416 | extern void evergreen_pre_page_flip(struct radeon_device *rdev, int crtc); | 424 | extern void evergreen_pre_page_flip(struct radeon_device *rdev, int crtc); |
417 | extern u32 evergreen_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); | 425 | extern u32 evergreen_page_flip(struct radeon_device *rdev, int crtc, u64 crtc_base); |
418 | extern void evergreen_post_page_flip(struct radeon_device *rdev, int crtc); | 426 | extern void evergreen_post_page_flip(struct radeon_device *rdev, int crtc); |
@@ -435,14 +443,11 @@ int cayman_asic_reset(struct radeon_device *rdev); | |||
435 | void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); | 443 | void cayman_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib); |
436 | int cayman_vm_init(struct radeon_device *rdev); | 444 | int cayman_vm_init(struct radeon_device *rdev); |
437 | void cayman_vm_fini(struct radeon_device *rdev); | 445 | void cayman_vm_fini(struct radeon_device *rdev); |
438 | int cayman_vm_bind(struct radeon_device *rdev, struct radeon_vm *vm, int id); | 446 | void cayman_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); |
439 | void cayman_vm_unbind(struct radeon_device *rdev, struct radeon_vm *vm); | 447 | uint32_t cayman_vm_page_flags(struct radeon_device *rdev, uint32_t flags); |
440 | void cayman_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm); | 448 | void cayman_vm_set_page(struct radeon_device *rdev, uint64_t pe, |
441 | uint32_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); | ||
444 | void cayman_vm_set_page(struct radeon_device *rdev, struct radeon_vm *vm, | ||
445 | unsigned pfn, uint64_t addr, uint32_t flags); | ||
446 | int evergreen_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); | 451 | int 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); | |||
465 | int si_irq_process(struct radeon_device *rdev); | 470 | int si_irq_process(struct radeon_device *rdev); |
466 | int si_vm_init(struct radeon_device *rdev); | 471 | int si_vm_init(struct radeon_device *rdev); |
467 | void si_vm_fini(struct radeon_device *rdev); | 472 | void si_vm_fini(struct radeon_device *rdev); |
468 | int si_vm_bind(struct radeon_device *rdev, struct radeon_vm *vm, int id); | 473 | void si_vm_set_page(struct radeon_device *rdev, uint64_t pe, |
469 | void si_vm_unbind(struct radeon_device *rdev, struct radeon_vm *vm); | 474 | uint64_t addr, unsigned count, |
470 | void si_vm_tlb_flush(struct radeon_device *rdev, struct radeon_vm *vm); | 475 | uint32_t incr, uint32_t flags); |
476 | void si_vm_flush(struct radeon_device *rdev, int ridx, struct radeon_vm *vm); | ||
471 | int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); | 477 | int si_ib_parse(struct radeon_device *rdev, struct radeon_ib *ib); |
472 | uint64_t si_get_gpu_clock(struct radeon_device *rdev); | 478 | uint64_t si_get_gpu_clock(struct radeon_device *rdev); |
473 | 479 | ||