aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_device.c
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2010-02-11 12:25:47 -0500
committerDave Airlie <airlied@redhat.com>2010-02-17 23:47:54 -0500
commit44ca7478d46aaad488d916f7262253e000ee60f9 (patch)
tree112f20f173526a087f3a9e8c419f0ad1875bd1cb /drivers/gpu/drm/radeon/radeon_device.c
parentd80eeb0f347b6effa06e11e7cbcb2e6c559bf404 (diff)
drm/radeon: Add asic hook for dma copy to r200 cards.
r200 cards have dma engine which can be used to tranfer data between vram and system memory. r300 dma engine registers match r200 dma engine. Enabling dma copy for r200 is simple as hooking r200 asic to already existing function r300_copy_dma. Rename r300_dma_copy to r200_dma_copyto reflect that supports starts from r200 cards. v2: Created a new asic object for r200 cards. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 7a30f6955e41..7be3a6968463 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -340,11 +340,13 @@ int radeon_asic_init(struct radeon_device *rdev)
340 case CHIP_RS100: 340 case CHIP_RS100:
341 case CHIP_RV200: 341 case CHIP_RV200:
342 case CHIP_RS200: 342 case CHIP_RS200:
343 rdev->asic = &r100_asic;
344 break;
343 case CHIP_R200: 345 case CHIP_R200:
344 case CHIP_RV250: 346 case CHIP_RV250:
345 case CHIP_RS300: 347 case CHIP_RS300:
346 case CHIP_RV280: 348 case CHIP_RV280:
347 rdev->asic = &r100_asic; 349 rdev->asic = &r200_asic;
348 break; 350 break;
349 case CHIP_R300: 351 case CHIP_R300:
350 case CHIP_R350: 352 case CHIP_R350: