diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2010-02-11 18:25:47 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-18 05:47:54 +0100 |
commit | 44ca7478d46aaad488d916f7262253e000ee60f9 (patch) | |
tree | 112f20f173526a087f3a9e8c419f0ad1875bd1cb /drivers/gpu/drm/radeon/radeon_device.c | |
parent | drm/radeon/kms: Create asic structure for r300 pcie cards. (diff) | |
download | linux-44ca7478d46aaad488d916f7262253e000ee60f9.tar.xz linux-44ca7478d46aaad488d916f7262253e000ee60f9.zip |
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.c | 4 |
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) case CHIP_RS100: case CHIP_RV200: case CHIP_RS200: + rdev->asic = &r100_asic; + break; case CHIP_R200: case CHIP_RV250: case CHIP_RS300: case CHIP_RV280: - rdev->asic = &r100_asic; + rdev->asic = &r200_asic; break; case CHIP_R300: case CHIP_R350: |