[PATCH 1/5] drm/amdgpu/rlc: unify rlc function into structure

likun Gao likun.gao at amd.com
Wed Oct 10 11:42:52 UTC 2018


From: Likun Gao <Likun.Gao at amd.com>

Put function rlc_init,rlc_fini,rlc_resume,rlc_stop,rlc_start into structure
amdgpu_rlc_funcs.

Signed-off-by: Likun Gao <Likun.Gao at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index b61b5c1..bb7b1ad 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -41,6 +41,12 @@
 struct amdgpu_rlc_funcs {
 	void (*enter_safe_mode)(struct amdgpu_device *adev);
 	void (*exit_safe_mode)(struct amdgpu_device *adev);
+	int  (*rlc_init)(struct amdgpu_device *adev);
+	void (*rlc_fini)(struct amdgpu_device *adev);
+	int  (*rlc_resume)(struct amdgpu_device *adev);
+	void (*rlc_stop)(struct amdgpu_device *adev);
+	void (*rlc_reset)(struct amdgpu_device *adev);
+	void (*rlc_start)(struct amdgpu_device *adev);
 };
 
 struct amdgpu_rlc {
-- 
2.7.4



More information about the amd-gfx mailing list