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.h43
1 files changed, 23 insertions, 20 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 79c988db79ad..2e41dc12cd00 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -585,8 +585,11 @@ bool radeon_semaphore_emit_signal(struct radeon_device *rdev, int ring,
585 struct radeon_semaphore *semaphore); 585 struct radeon_semaphore *semaphore);
586bool radeon_semaphore_emit_wait(struct radeon_device *rdev, int ring, 586bool radeon_semaphore_emit_wait(struct radeon_device *rdev, int ring,
587 struct radeon_semaphore *semaphore); 587 struct radeon_semaphore *semaphore);
588void radeon_semaphore_sync_to(struct radeon_semaphore *semaphore, 588void radeon_semaphore_sync_fence(struct radeon_semaphore *semaphore,
589 struct radeon_fence *fence); 589 struct radeon_fence *fence);
590void radeon_semaphore_sync_resv(struct radeon_semaphore *semaphore,
591 struct reservation_object *resv,
592 bool shared);
590int radeon_semaphore_sync_rings(struct radeon_device *rdev, 593int radeon_semaphore_sync_rings(struct radeon_device *rdev,
591 struct radeon_semaphore *semaphore, 594 struct radeon_semaphore *semaphore,
592 int waiting_ring); 595 int waiting_ring);
@@ -1855,24 +1858,24 @@ struct radeon_asic {
1855 } display; 1858 } display;
1856 /* copy functions for bo handling */ 1859 /* copy functions for bo handling */
1857 struct { 1860 struct {
1858 int (*blit)(struct radeon_device *rdev, 1861 struct radeon_fence *(*blit)(struct radeon_device *rdev,
1859 uint64_t src_offset, 1862 uint64_t src_offset,
1860 uint64_t dst_offset, 1863 uint64_t dst_offset,
1861 unsigned num_gpu_pages, 1864 unsigned num_gpu_pages,
1862 struct radeon_fence **fence); 1865 struct reservation_object *resv);
1863 u32 blit_ring_index; 1866 u32 blit_ring_index;
1864 int (*dma)(struct radeon_device *rdev, 1867 struct radeon_fence *(*dma)(struct radeon_device *rdev,
1865 uint64_t src_offset, 1868 uint64_t src_offset,
1866 uint64_t dst_offset, 1869 uint64_t dst_offset,
1867 unsigned num_gpu_pages, 1870 unsigned num_gpu_pages,
1868 struct radeon_fence **fence); 1871 struct reservation_object *resv);
1869 u32 dma_ring_index; 1872 u32 dma_ring_index;
1870 /* method used for bo copy */ 1873 /* method used for bo copy */
1871 int (*copy)(struct radeon_device *rdev, 1874 struct radeon_fence *(*copy)(struct radeon_device *rdev,
1872 uint64_t src_offset, 1875 uint64_t src_offset,
1873 uint64_t dst_offset, 1876 uint64_t dst_offset,
1874 unsigned num_gpu_pages, 1877 unsigned num_gpu_pages,
1875 struct radeon_fence **fence); 1878 struct reservation_object *resv);
1876 /* ring used for bo copies */ 1879 /* ring used for bo copies */
1877 u32 copy_ring_index; 1880 u32 copy_ring_index;
1878 } copy; 1881 } copy;
@@ -2833,9 +2836,9 @@ static inline void radeon_ring_write(struct radeon_ring *ring, uint32_t v)
2833#define radeon_hdmi_setmode(rdev, e, m) (rdev)->asic->display.hdmi_setmode((e), (m)) 2836#define radeon_hdmi_setmode(rdev, e, m) (rdev)->asic->display.hdmi_setmode((e), (m))
2834#define radeon_fence_ring_emit(rdev, r, fence) (rdev)->asic->ring[(r)]->emit_fence((rdev), (fence)) 2837#define radeon_fence_ring_emit(rdev, r, fence) (rdev)->asic->ring[(r)]->emit_fence((rdev), (fence))
2835#define radeon_semaphore_ring_emit(rdev, r, cp, semaphore, emit_wait) (rdev)->asic->ring[(r)]->emit_semaphore((rdev), (cp), (semaphore), (emit_wait)) 2838#define radeon_semaphore_ring_emit(rdev, r, cp, semaphore, emit_wait) (rdev)->asic->ring[(r)]->emit_semaphore((rdev), (cp), (semaphore), (emit_wait))
2836#define radeon_copy_blit(rdev, s, d, np, f) (rdev)->asic->copy.blit((rdev), (s), (d), (np), (f)) 2839#define radeon_copy_blit(rdev, s, d, np, resv) (rdev)->asic->copy.blit((rdev), (s), (d), (np), (resv))
2837#define radeon_copy_dma(rdev, s, d, np, f) (rdev)->asic->copy.dma((rdev), (s), (d), (np), (f)) 2840#define radeon_copy_dma(rdev, s, d, np, resv) (rdev)->asic->copy.dma((rdev), (s), (d), (np), (resv))
2838#define radeon_copy(rdev, s, d, np, f) (rdev)->asic->copy.copy((rdev), (s), (d), (np), (f)) 2841#define radeon_copy(rdev, s, d, np, resv) (rdev)->asic->copy.copy((rdev), (s), (d), (np), (resv))
2839#define radeon_copy_blit_ring_index(rdev) (rdev)->asic->copy.blit_ring_index 2842#define radeon_copy_blit_ring_index(rdev) (rdev)->asic->copy.blit_ring_index
2840#define radeon_copy_dma_ring_index(rdev) (rdev)->asic->copy.dma_ring_index 2843#define radeon_copy_dma_ring_index(rdev) (rdev)->asic->copy.dma_ring_index
2841#define radeon_copy_ring_index(rdev) (rdev)->asic->copy.copy_ring_index 2844#define radeon_copy_ring_index(rdev) (rdev)->asic->copy.copy_ring_index