aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2018-09-28 07:21:23 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-11-09 16:28:52 -0500
commitfdb81fd788a732b5efda8638be3fe159550b032d (patch)
tree63e54f39f4445585e03a6795ec67cbe75751e4a0 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
parenta82c15668cfc02d69e0265cda50fa932310ddd30 (diff)
drm/amdgpu: unify rlc function into structure
Put function rlc_init,rlc_fini,rlc_resume,rlc_stop,rlc_start into structure amdgpu_rlc_funcs and change the method to call rlc function for each verssion of GFX. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index b61b5c11aead..0a7c285c0454 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -41,6 +41,12 @@
41struct amdgpu_rlc_funcs { 41struct amdgpu_rlc_funcs {
42 void (*enter_safe_mode)(struct amdgpu_device *adev); 42 void (*enter_safe_mode)(struct amdgpu_device *adev);
43 void (*exit_safe_mode)(struct amdgpu_device *adev); 43 void (*exit_safe_mode)(struct amdgpu_device *adev);
44 int (*init)(struct amdgpu_device *adev);
45 void (*fini)(struct amdgpu_device *adev);
46 int (*resume)(struct amdgpu_device *adev);
47 void (*stop)(struct amdgpu_device *adev);
48 void (*reset)(struct amdgpu_device *adev);
49 void (*start)(struct amdgpu_device *adev);
44}; 50};
45 51
46struct amdgpu_rlc { 52struct amdgpu_rlc {