diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-04-22 12:39:58 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 04:20:47 -0400 |
commit | def9ba9cf6a8266ee1ffd72556db002c3a2663db (patch) | |
tree | 4fff0f90b886dcfd96f11853cf4c605b2d3b759f /drivers/gpu/drm/radeon/radeon.h | |
parent | 1d42bbc8f7f9ce4d852692ef7aa336b133b0830a (diff) |
drm/radeon/kms: add gui_idle callback
Check to see if the GUI engine and related blocks
(2D, 3D, CP, etc) are idle or not. There are a number
of cases when we need to know if the drawing engine
is busy.
Signed-off-by: Alex Deucher <alexdeucher@gmail.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index ab29d972a16..bb4a2a66f07 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -803,6 +803,7 @@ struct radeon_asic { | |||
803 | * through ring. | 803 | * through ring. |
804 | */ | 804 | */ |
805 | void (*ioctl_wait_idle)(struct radeon_device *rdev, struct radeon_bo *bo); | 805 | void (*ioctl_wait_idle)(struct radeon_device *rdev, struct radeon_bo *bo); |
806 | bool (*gui_idle)(struct radeon_device *rdev); | ||
806 | }; | 807 | }; |
807 | 808 | ||
808 | /* | 809 | /* |
@@ -1209,6 +1210,7 @@ static inline void radeon_ring_write(struct radeon_device *rdev, uint32_t v) | |||
1209 | #define radeon_hpd_fini(rdev) (rdev)->asic->hpd_fini((rdev)) | 1210 | #define radeon_hpd_fini(rdev) (rdev)->asic->hpd_fini((rdev)) |
1210 | #define radeon_hpd_sense(rdev, hpd) (rdev)->asic->hpd_sense((rdev), (hpd)) | 1211 | #define radeon_hpd_sense(rdev, hpd) (rdev)->asic->hpd_sense((rdev), (hpd)) |
1211 | #define radeon_hpd_set_polarity(rdev, hpd) (rdev)->asic->hpd_set_polarity((rdev), (hpd)) | 1212 | #define radeon_hpd_set_polarity(rdev, hpd) (rdev)->asic->hpd_set_polarity((rdev), (hpd)) |
1213 | #define radeon_gui_idle(rdev) (rdev)->asic->gui_idle((rdev)) | ||
1212 | 1214 | ||
1213 | /* Common functions */ | 1215 | /* Common functions */ |
1214 | /* AGP */ | 1216 | /* AGP */ |