summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2017-02-07 11:47:12 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-05-24 17:41:30 -0400
commit7741cced67aed83d87152a601d58bfb16eda8301 (patch)
treef6c7461aa65253e9d330b534aa9ad87aa630a309 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
parent8c303c019014afe5842bf4001b4d762f05b3a77e (diff)
drm/amdgpu: expose vcn RB command
Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
index 937c6d93089f..5dbc6aa33917 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
@@ -30,6 +30,13 @@
#define AMDGPU_VCN_FIRMWARE_OFFSET 256
#define AMDGPU_VCN_MAX_ENC_RINGS 3
+#define VCN_CMD_FENCE 0x00000000
+#define VCN_CMD_TRAP 0x00000001
+#define VCN_CMD_WRITE_REG 0x00000004
+#define VCN_CMD_REG_READ_COND_WAIT 0x00000006
+#define VCN_CMD_PACKET_START 0x0000000a
+#define VCN_CMD_PACKET_END 0x0000000b
+
struct amdgpu_vcn {
struct amdgpu_bo *vcpu_bo;
void *cpu_addr;