aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index ea3efd7ae85b..9f0bd9847884 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -139,6 +139,10 @@ struct radeon_clock {
139 uint32_t default_sclk; 139 uint32_t default_sclk;
140}; 140};
141 141
142/*
143 * Power management
144 */
145int radeon_pm_init(struct radeon_device *rdev);
142 146
143/* 147/*
144 * Fences. 148 * Fences.
@@ -622,7 +626,9 @@ struct radeon_asic {
622 uint64_t dst_offset, 626 uint64_t dst_offset,
623 unsigned num_pages, 627 unsigned num_pages,
624 struct radeon_fence *fence); 628 struct radeon_fence *fence);
629 uint32_t (*get_engine_clock)(struct radeon_device *rdev);
625 void (*set_engine_clock)(struct radeon_device *rdev, uint32_t eng_clock); 630 void (*set_engine_clock)(struct radeon_device *rdev, uint32_t eng_clock);
631 uint32_t (*get_memory_clock)(struct radeon_device *rdev);
626 void (*set_memory_clock)(struct radeon_device *rdev, uint32_t mem_clock); 632 void (*set_memory_clock)(struct radeon_device *rdev, uint32_t mem_clock);
627 void (*set_pcie_lanes)(struct radeon_device *rdev, int lanes); 633 void (*set_pcie_lanes)(struct radeon_device *rdev, int lanes);
628 void (*set_clock_gating)(struct radeon_device *rdev, int enable); 634 void (*set_clock_gating)(struct radeon_device *rdev, int enable);
@@ -953,7 +959,9 @@ static inline void radeon_ring_write(struct radeon_device *rdev, uint32_t v)
953#define radeon_copy_blit(rdev, s, d, np, f) (rdev)->asic->copy_blit((rdev), (s), (d), (np), (f)) 959#define radeon_copy_blit(rdev, s, d, np, f) (rdev)->asic->copy_blit((rdev), (s), (d), (np), (f))
954#define radeon_copy_dma(rdev, s, d, np, f) (rdev)->asic->copy_dma((rdev), (s), (d), (np), (f)) 960#define radeon_copy_dma(rdev, s, d, np, f) (rdev)->asic->copy_dma((rdev), (s), (d), (np), (f))
955#define radeon_copy(rdev, s, d, np, f) (rdev)->asic->copy((rdev), (s), (d), (np), (f)) 961#define radeon_copy(rdev, s, d, np, f) (rdev)->asic->copy((rdev), (s), (d), (np), (f))
962#define radeon_get_engine_clock(rdev) (rdev)->asic->get_engine_clock((rdev))
956#define radeon_set_engine_clock(rdev, e) (rdev)->asic->set_engine_clock((rdev), (e)) 963#define radeon_set_engine_clock(rdev, e) (rdev)->asic->set_engine_clock((rdev), (e))
964#define radeon_get_memory_clock(rdev) (rdev)->asic->get_memory_clock((rdev))
957#define radeon_set_memory_clock(rdev, e) (rdev)->asic->set_engine_clock((rdev), (e)) 965#define radeon_set_memory_clock(rdev, e) (rdev)->asic->set_engine_clock((rdev), (e))
958#define radeon_set_pcie_lanes(rdev, l) (rdev)->asic->set_pcie_lanes((rdev), (l)) 966#define radeon_set_pcie_lanes(rdev, l) (rdev)->asic->set_pcie_lanes((rdev), (l))
959#define radeon_set_clock_gating(rdev, e) (rdev)->asic->set_clock_gating((rdev), (e)) 967#define radeon_set_clock_gating(rdev, e) (rdev)->asic->set_clock_gating((rdev), (e))