summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2017-01-10 11:23:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:53:45 -0400
commitf7243053c24d97565c8de3f31ec3b910e7519e9f (patch)
tree692b502ae801034aad92771c119eb5e0a7312d8f /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
parent5e5681788befb2d84d0780f81ea72821e6723ba1 (diff)
drm/amdgpu: add uvd enc rings
And initialize them Reviewed-by: Christian König <christian.koenig@amd.com> 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
index 797210dd52de..7b7f46897811 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
@@ -43,11 +43,13 @@ struct amdgpu_uvd {
struct delayed_work idle_work;
const struct firmware *fw; /* UVD firmware */
struct amdgpu_ring ring;
+ struct amdgpu_ring ring_enc[AMDGPU_MAX_UVD_ENC_RINGS];
struct amdgpu_irq_src irq;
bool address_64_bit;
bool use_ctx_buf;
struct amd_sched_entity entity;
uint32_t srbm_soft_reset;
+ unsigned num_enc_rings;
};
int amdgpu_uvd_sw_init(struct amdgpu_device *adev);