drm/amdgpu: add common mmhub member for adev
authorTao Zhou <tao.zhou1@amd.com>
Thu, 12 Sep 2019 09:03:14 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:02 +0000 (09:11 -0500)
put mmhub_funcs and ras_if pointer into mmhub struct

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h

index 77d4e91..b29d4a3 100644 (file)
@@ -868,6 +868,9 @@ struct amdgpu_device {
        /* nbio */
        struct amdgpu_nbio              nbio;
 
+       /* mmhub */
+       struct amdgpu_mmhub             mmhub;
+
        /* gfx */
        struct amdgpu_gfx               gfx;
 
index 685e54e..a733898 100644 (file)
@@ -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