aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r100.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-06-28 17:50:35 -0400
committerDave Airlie <airlied@redhat.com>2012-06-29 10:14:47 -0400
commit74da01dcfbb6300d758490d5d4efa1314c0e4e8b (patch)
treea48b531391f57f8f135f77725a98975daf69a5c5 /drivers/gpu/drm/radeon/r100.c
parent0242f74d29df00ea97a6377e3c66f14efbb340d3 (diff)
drm/radeon: move r100_enable_bm to a more logic place
It was stuck right in the middle of the gart functions. Move next to the bm_disable function and where it is used. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r--drivers/gpu/drm/radeon/r100.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 3fa82e1b9428..d06c8dd8ddfa 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -513,15 +513,6 @@ int r100_pci_gart_init(struct radeon_device *rdev)
513 return radeon_gart_table_ram_alloc(rdev); 513 return radeon_gart_table_ram_alloc(rdev);
514} 514}
515 515
516/* required on r1xx, r2xx, r300, r(v)350, r420/r481, rs400/rs480 */
517void r100_enable_bm(struct radeon_device *rdev)
518{
519 uint32_t tmp;
520 /* Enable bus mastering */
521 tmp = RREG32(RADEON_BUS_CNTL) & ~RADEON_BUS_MASTER_DIS;
522 WREG32(RADEON_BUS_CNTL, tmp);
523}
524
525int r100_pci_gart_enable(struct radeon_device *rdev) 516int r100_pci_gart_enable(struct radeon_device *rdev)
526{ 517{
527 uint32_t tmp; 518 uint32_t tmp;
@@ -2531,6 +2522,15 @@ bool r100_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
2531 return radeon_ring_test_lockup(rdev, ring); 2522 return radeon_ring_test_lockup(rdev, ring);
2532} 2523}
2533 2524
2525/* required on r1xx, r2xx, r300, r(v)350, r420/r481, rs400/rs480 */
2526void r100_enable_bm(struct radeon_device *rdev)
2527{
2528 uint32_t tmp;
2529 /* Enable bus mastering */
2530 tmp = RREG32(RADEON_BUS_CNTL) & ~RADEON_BUS_MASTER_DIS;
2531 WREG32(RADEON_BUS_CNTL, tmp);
2532}
2533
2534void r100_bm_disable(struct radeon_device *rdev) 2534void r100_bm_disable(struct radeon_device *rdev)
2535{ 2535{
2536 u32 tmp; 2536 u32 tmp;