diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-10-01 03:39:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-01 18:51:50 -0400 |
commit | 3bc6853593bd4fba357dc252b3cf60cd86a1d2ec (patch) | |
tree | f60509478804b0087bef653dc6c10578deeb40e9 /drivers/gpu/drm/radeon/radeon_asic.h | |
parent | d4550907157d8b3d5286157c15f1200c44842269 (diff) |
drm/radeon/kms: Convert RS690/RS740 to new init path (V2).
Also cleanup register specific to RS690/RS740. Version 2 add
missing header file for register, remove unecessary call to AGP
function and fix an indentation bug.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_asic.h | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h index 39f1bb656e61..3ad916492747 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.h +++ b/drivers/gpu/drm/radeon/radeon_asic.h | |||
@@ -349,36 +349,39 @@ static struct radeon_asic rs600_asic = { | |||
349 | /* | 349 | /* |
350 | * rs690,rs740 | 350 | * rs690,rs740 |
351 | */ | 351 | */ |
352 | void rs690_errata(struct radeon_device *rdev); | 352 | int rs690_init(struct radeon_device *rdev); |
353 | void rs690_vram_info(struct radeon_device *rdev); | 353 | void rs690_fini(struct radeon_device *rdev); |
354 | int rs690_mc_init(struct radeon_device *rdev); | 354 | int rs690_resume(struct radeon_device *rdev); |
355 | void rs690_mc_fini(struct radeon_device *rdev); | 355 | int rs690_suspend(struct radeon_device *rdev); |
356 | uint32_t rs690_mc_rreg(struct radeon_device *rdev, uint32_t reg); | 356 | uint32_t rs690_mc_rreg(struct radeon_device *rdev, uint32_t reg); |
357 | void rs690_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); | 357 | void rs690_mc_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v); |
358 | void rs690_bandwidth_update(struct radeon_device *rdev); | 358 | void rs690_bandwidth_update(struct radeon_device *rdev); |
359 | static struct radeon_asic rs690_asic = { | 359 | static struct radeon_asic rs690_asic = { |
360 | .init = &rs600_init, | 360 | .init = &rs690_init, |
361 | .errata = &rs690_errata, | 361 | .fini = &rs690_fini, |
362 | .vram_info = &rs690_vram_info, | 362 | .suspend = &rs690_suspend, |
363 | .resume = &rs690_resume, | ||
364 | .errata = NULL, | ||
365 | .vram_info = NULL, | ||
363 | .gpu_reset = &r300_gpu_reset, | 366 | .gpu_reset = &r300_gpu_reset, |
364 | .mc_init = &rs690_mc_init, | 367 | .mc_init = NULL, |
365 | .mc_fini = &rs690_mc_fini, | 368 | .mc_fini = NULL, |
366 | .wb_init = &r100_wb_init, | 369 | .wb_init = NULL, |
367 | .wb_fini = &r100_wb_fini, | 370 | .wb_fini = NULL, |
368 | .gart_init = &rs400_gart_init, | 371 | .gart_init = NULL, |
369 | .gart_fini = &rs400_gart_fini, | 372 | .gart_fini = NULL, |
370 | .gart_enable = &rs400_gart_enable, | 373 | .gart_enable = NULL, |
371 | .gart_disable = &rs400_gart_disable, | 374 | .gart_disable = NULL, |
372 | .gart_tlb_flush = &rs400_gart_tlb_flush, | 375 | .gart_tlb_flush = &rs400_gart_tlb_flush, |
373 | .gart_set_page = &rs400_gart_set_page, | 376 | .gart_set_page = &rs400_gart_set_page, |
374 | .cp_init = &r100_cp_init, | 377 | .cp_init = NULL, |
375 | .cp_fini = &r100_cp_fini, | 378 | .cp_fini = NULL, |
376 | .cp_disable = &r100_cp_disable, | 379 | .cp_disable = NULL, |
377 | .cp_commit = &r100_cp_commit, | 380 | .cp_commit = &r100_cp_commit, |
378 | .ring_start = &r300_ring_start, | 381 | .ring_start = &r300_ring_start, |
379 | .ring_test = &r100_ring_test, | 382 | .ring_test = &r100_ring_test, |
380 | .ring_ib_execute = &r100_ring_ib_execute, | 383 | .ring_ib_execute = &r100_ring_ib_execute, |
381 | .ib_test = &r100_ib_test, | 384 | .ib_test = NULL, |
382 | .irq_set = &rs600_irq_set, | 385 | .irq_set = &rs600_irq_set, |
383 | .irq_process = &rs600_irq_process, | 386 | .irq_process = &rs600_irq_process, |
384 | .get_vblank_counter = &rs600_get_vblank_counter, | 387 | .get_vblank_counter = &rs600_get_vblank_counter, |