diff options
author | Christian König <christian.koenig@amd.com> | 2014-01-23 09:50:49 -0700 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-02-18 16:11:26 +0100 |
commit | 98ccc291ffdc34ccb9b13f0c29cc51d6eab24022 (patch) | |
tree | 3033271c6e683095c118801dc3681f4ae8c4dfc2 /drivers/gpu/drm/radeon/radeon_kms.c | |
parent | f7ba8b04b22d7c74898f53a0e118f31b9d40dcc2 (diff) | |
download | lwn-98ccc291ffdc34ccb9b13f0c29cc51d6eab24022.tar.gz lwn-98ccc291ffdc34ccb9b13f0c29cc51d6eab24022.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_kms.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_kms.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index ea018d53a85e..baff98be65b1 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -480,6 +480,12 @@ static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file else *value = rdev->pm.default_sclk * 10; break; + case RADEON_INFO_VCE_FW_VERSION: + *value = rdev->vce.fw_version; + break; + case RADEON_INFO_VCE_FB_VERSION: + *value = rdev->vce.fb_version; + break; default: DRM_DEBUG_KMS("Invalid request %d\n", info->request); return -EINVAL; |