diff options
author | Oak Zeng <Oak.Zeng@amd.com> | 2020-09-17 18:10:12 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-09-30 13:50:13 -0400 |
commit | 8ffff9b4499cbbda5b44cf84df576a7c5a3c2e06 (patch) | |
tree | 21517ce1a4a860b060d05003a203d4156d1e1f29 /drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h | |
parent | 825c91d0908b72f9ec2a9e0c815d2c40af5ad5f4 (diff) |
drm/amdgpu: use function pointer for gfxhub functions
gfxhub functions are now called from function pointers,
instead of from asic-specific functions.
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h index 92d3a70cd9b1..0c46672bbf49 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h @@ -33,4 +33,5 @@ u64 gfxhub_v1_0_get_mc_fb_offset(struct amdgpu_device *adev); void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, uint64_t page_table_base); +extern const struct amdgpu_gfxhub_funcs gfxhub_v1_0_funcs; #endif |