aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2019-09-12 09:03:14 +0000
committerAlex Deucher <[email protected]>2019-10-03 14:11:02 +0000
commitd3a5a121b84ab9fdbbd9ba131668ab797745f5b7 (patch)
treeb83e711d24498c338ba545974fa93195ad66925b /drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
parentdrm/amdgpu: move umc_ras_if from gmc to umc block (diff)
downloadkernel-d3a5a121b84ab9fdbbd9ba131668ab797745f5b7.tar.gz
kernel-d3a5a121b84ab9fdbbd9ba131668ab797745f5b7.zip
drm/amdgpu: add common mmhub member for adev
put mmhub_funcs and ras_if pointer into mmhub struct Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
index 685e54e58700..a733898c7d55 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
@@ -28,6 +28,11 @@ struct amdgpu_mmhub_funcs {
void *ras_error_status);
};
+struct amdgpu_mmhub {
+ struct ras_common_if *ras_if;
+ const struct amdgpu_mmhub_funcs *funcs;
+};
+
int amdgpu_mmhub_ras_late_init(struct amdgpu_device *adev);
#endif