drm/amdgpu/VCN2: put IB internal registers offset to structure
authorLeo Liu <leo.liu@amd.com>
Mon, 15 Apr 2019 13:39:06 +0000 (09:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:04 +0000 (14:18 -0500)
commit22a8f442866bf539c7a659923155d9afa03d77bb
treed25466fb2304c4597d2b66ee809232a08b8d6672
parenteec28ef03c903f3e404c57ad0d204e0a9d7d9701
drm/amdgpu/VCN2: put IB internal registers offset to structure

So the ring functions can be shared with different VCN versions
with different internal registers offsets

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c