Commit d3a5a121 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

drm/amdgpu: add common mmhub member for adev

put mmhub_funcs and ras_if pointer into mmhub struct
Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarGuchun Chen <guchun.chen@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 03740baa
...@@ -868,6 +868,9 @@ struct amdgpu_device { ...@@ -868,6 +868,9 @@ struct amdgpu_device {
/* nbio */ /* nbio */
struct amdgpu_nbio nbio; struct amdgpu_nbio nbio;
/* mmhub */
struct amdgpu_mmhub mmhub;
/* gfx */ /* gfx */
struct amdgpu_gfx gfx; struct amdgpu_gfx gfx;
......
...@@ -28,6 +28,11 @@ struct amdgpu_mmhub_funcs { ...@@ -28,6 +28,11 @@ struct amdgpu_mmhub_funcs {
void *ras_error_status); 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); int amdgpu_mmhub_ras_late_init(struct amdgpu_device *adev);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment