drm/radeon: make ring rptr and wptr register offsets variable
authorChristian König <deathsimple@vodafone.de>
Thu, 13 Oct 2011 10:48:45 +0000 (12:48 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 19:49:56 +0000 (19:49 +0000)
commit5596a9db156107b01ceb7db4d50cc091117da627
tree93a485ad83c37f28ba4565292bd13492959d72f8
parent7b1f2485db253aaa0081e1c5213533e166130732
drm/radeon: make ring rptr and wptr register offsets variable

Every ring seems to have the concept of read and
write pointers. Make the register offset variable
so we can use the functions for different types of rings.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c
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
drivers/gpu/drm/radeon/rv770.c