aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-02-23 17:53:40 -0500
committerDave Airlie <airlied@redhat.com>2012-02-27 09:49:24 -0500
commit0f9e006c9a8b264c1a391a58142f6c0e777e63c2 (patch)
tree68fe22075ce561493261c5bbb2130ea9227d9418 /drivers/gpu/drm/radeon/radeon.h
parent901ea57dc4a2792900497172fa41358f9b2f67c3 (diff)
drm/radeon/kms: reorganize page flip callbacks
tidy up the radeon_asic struct. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index f1a369d07e87..f627ac935d7f 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -1205,9 +1205,11 @@ struct radeon_asic {
1205 void (*pm_init_profile)(struct radeon_device *rdev); 1205 void (*pm_init_profile)(struct radeon_device *rdev);
1206 void (*pm_get_dynpm_state)(struct radeon_device *rdev); 1206 void (*pm_get_dynpm_state)(struct radeon_device *rdev);
1207 /* pageflipping */ 1207 /* pageflipping */
1208 void (*pre_page_flip)(struct radeon_device *rdev, int crtc); 1208 struct {
1209 u32 (*page_flip)(struct radeon_device *rdev, int crtc, u64 crtc_base); 1209 void (*pre_page_flip)(struct radeon_device *rdev, int crtc);
1210 void (*post_page_flip)(struct radeon_device *rdev, int crtc); 1210 u32 (*page_flip)(struct radeon_device *rdev, int crtc, u64 crtc_base);
1211 void (*post_page_flip)(struct radeon_device *rdev, int crtc);
1212 } pflip;
1211 /* wait for vblank */ 1213 /* wait for vblank */
1212 void (*wait_for_vblank)(struct radeon_device *rdev, int crtc); 1214 void (*wait_for_vblank)(struct radeon_device *rdev, int crtc);
1213 /* wait for mc_idle */ 1215 /* wait for mc_idle */
@@ -1697,9 +1699,9 @@ void radeon_ring_write(struct radeon_ring *ring, uint32_t v);
1697#define radeon_pm_finish(rdev) (rdev)->asic->pm_finish((rdev)) 1699#define radeon_pm_finish(rdev) (rdev)->asic->pm_finish((rdev))
1698#define radeon_pm_init_profile(rdev) (rdev)->asic->pm_init_profile((rdev)) 1700#define radeon_pm_init_profile(rdev) (rdev)->asic->pm_init_profile((rdev))
1699#define radeon_pm_get_dynpm_state(rdev) (rdev)->asic->pm_get_dynpm_state((rdev)) 1701#define radeon_pm_get_dynpm_state(rdev) (rdev)->asic->pm_get_dynpm_state((rdev))
1700#define radeon_pre_page_flip(rdev, crtc) rdev->asic->pre_page_flip((rdev), (crtc)) 1702#define radeon_pre_page_flip(rdev, crtc) rdev->asic->pflip.pre_page_flip((rdev), (crtc))
1701#define radeon_page_flip(rdev, crtc, base) rdev->asic->page_flip((rdev), (crtc), (base)) 1703#define radeon_page_flip(rdev, crtc, base) rdev->asic->pflip.page_flip((rdev), (crtc), (base))
1702#define radeon_post_page_flip(rdev, crtc) rdev->asic->post_page_flip((rdev), (crtc)) 1704#define radeon_post_page_flip(rdev, crtc) rdev->asic->pflip.post_page_flip((rdev), (crtc))
1703#define radeon_wait_for_vblank(rdev, crtc) rdev->asic->wait_for_vblank((rdev), (crtc)) 1705#define radeon_wait_for_vblank(rdev, crtc) rdev->asic->wait_for_vblank((rdev), (crtc))
1704#define radeon_mc_wait_for_idle(rdev) rdev->asic->mc_wait_for_idle((rdev)) 1706#define radeon_mc_wait_for_idle(rdev) rdev->asic->mc_wait_for_idle((rdev))
1705 1707