drm/radeon: use callbacks for ring pointer handling (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Jan 2013 19:10:56 +0000 (14:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 14:49:07 +0000 (10:49 -0400)
commitf93bdefe6269067afc85688d45c646cde350e0d8
tree72f17de0667e9a006f3b454f9af4745299e198c7
parentb556b12e829c504bd3d1044e28ffbae2385b6fdc
drm/radeon: use callbacks for ring pointer handling (v3)

Add callbacks to the radeon_asic struct to handle
rptr/wptr fetchs and wptr updates.
We currently use one version for all rings, but this
allows us to override with a ring specific versions.

Needed for compute rings on CIK.

v2: udpate as per Christian's comments
v3: fix some rebase cruft

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_ring.c