drm/amdgpu: rework IP block registration (v2)
[linux-block.git] / drivers / gpu / drm / amd / amdgpu / gfx_v8_0.c
index 6f3996f6d39ae1d98b5f9699ecf403145037ad54..27b3de44add7a08c5f839dd93c5e8014f2093376 100644 (file)
@@ -6504,7 +6504,7 @@ static int gfx_v8_0_priv_inst_irq(struct amdgpu_device *adev,
        return 0;
 }
 
-const struct amd_ip_funcs gfx_v8_0_ip_funcs = {
+static const struct amd_ip_funcs gfx_v8_0_ip_funcs = {
        .name = "gfx_v8_0",
        .early_init = gfx_v8_0_early_init,
        .late_init = gfx_v8_0_late_init,
@@ -6734,3 +6734,21 @@ static void gfx_v8_0_get_cu_info(struct amdgpu_device *adev)
        cu_info->number = active_cu_number;
        cu_info->ao_cu_mask = ao_cu_mask;
 }
+
+const struct amdgpu_ip_block_version gfx_v8_0_ip_block =
+{
+       .type = AMD_IP_BLOCK_TYPE_GFX,
+       .major = 8,
+       .minor = 0,
+       .rev = 0,
+       .funcs = &gfx_v8_0_ip_funcs,
+};
+
+const struct amdgpu_ip_block_version gfx_v8_1_ip_block =
+{
+       .type = AMD_IP_BLOCK_TYPE_GFX,
+       .major = 8,
+       .minor = 1,
+       .rev = 0,
+       .funcs = &gfx_v8_0_ip_funcs,
+};