diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index ec4d7ca7ed61..2fd22a5d23b4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |||
@@ -24,6 +24,28 @@ | |||
24 | #ifndef __AMDGPU_VCN_H__ | 24 | #ifndef __AMDGPU_VCN_H__ |
25 | #define __AMDGPU_VCN_H__ | 25 | #define __AMDGPU_VCN_H__ |
26 | 26 | ||
27 | #define AMDGPU_VCN_STACK_SIZE (200*1024) | ||
28 | #define AMDGPU_VCN_HEAP_SIZE (256*1024) | ||
29 | #define AMDGPU_VCN_SESSION_SIZE (50*1024) | ||
30 | #define AMDGPU_VCN_FIRMWARE_OFFSET 256 | ||
31 | #define AMDGPU_VCN_MAX_ENC_RINGS 3 | ||
32 | |||
33 | struct amdgpu_vcn { | ||
34 | struct amdgpu_bo *vcpu_bo; | ||
35 | void *cpu_addr; | ||
36 | uint64_t gpu_addr; | ||
37 | unsigned fw_version; | ||
38 | void *saved_bo; | ||
39 | struct delayed_work idle_work; | ||
40 | const struct firmware *fw; /* VCN firmware */ | ||
41 | struct amdgpu_ring ring_dec; | ||
42 | struct amdgpu_ring ring_enc[AMDGPU_VCN_MAX_ENC_RINGS]; | ||
43 | struct amdgpu_irq_src irq; | ||
44 | struct amd_sched_entity entity_dec; | ||
45 | struct amd_sched_entity entity_enc; | ||
46 | uint32_t srbm_soft_reset; | ||
47 | }; | ||
48 | |||
27 | int amdgpu_vcn_sw_init(struct amdgpu_device *adev); | 49 | int amdgpu_vcn_sw_init(struct amdgpu_device *adev); |
28 | int amdgpu_vcn_sw_fini(struct amdgpu_device *adev); | 50 | int amdgpu_vcn_sw_fini(struct amdgpu_device *adev); |
29 | int amdgpu_vcn_suspend(struct amdgpu_device *adev); | 51 | int amdgpu_vcn_suspend(struct amdgpu_device *adev); |