]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu/nv: export common IP functions
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Jul 2021 19:11:44 +0000 (15:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:22:58 +0000 (15:22 -0400)
So they can be driven by IP dicovery table.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/nv.h

index cc4b4c8b4cb70c72754b11d559550355c2ad6e73..15625a30658e4ccc946125434a7abfda574d694a 100644 (file)
@@ -599,7 +599,7 @@ static void nv_enable_doorbell_aperture(struct amdgpu_device *adev,
        adev->nbio.funcs->enable_doorbell_selfring_aperture(adev, enable);
 }
 
-static const struct amdgpu_ip_block_version nv_common_ip_block =
+const struct amdgpu_ip_block_version nv_common_ip_block =
 {
        .type = AMD_IP_BLOCK_TYPE_COMMON,
        .major = 1,
index 1f40ba3b04606441b3f50db1e32b9a51c74843f5..7df2f85bbcd048b0caddae6856be8b2b62a3bf92 100644 (file)
@@ -26,6 +26,8 @@
 
 #include "nbio_v2_3.h"
 
+extern const struct amdgpu_ip_block_version nv_common_ip_block;
+
 void nv_grbm_select(struct amdgpu_device *adev,
                    u32 me, u32 pipe, u32 queue, u32 vmid);
 void nv_set_virt_ops(struct amdgpu_device *adev);