drm/radeon: add VCE version parsing and checking

Also make the result available to userspace.

Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Christian König
2014-01-23 09:50:49 -07:00
parent f7ba8b04b2
commit 98ccc291ff
4 changed files with 62 additions and 6 deletions

View File

@@ -1606,6 +1606,8 @@ struct radeon_vce {
struct radeon_bo *vcpu_bo;
void *cpu_addr;
uint64_t gpu_addr;
unsigned fw_version;
unsigned fb_version;
atomic_t handles[RADEON_MAX_VCE_HANDLES];
struct drm_file *filp[RADEON_MAX_VCE_HANDLES];
};