diff options
Diffstat (limited to 'drivers/char/drm/radeon_state.c')
-rw-r--r-- | drivers/char/drm/radeon_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/drm/radeon_state.c b/drivers/char/drm/radeon_state.c index 98c5f1d3a8e7..5b89e471bc71 100644 --- a/drivers/char/drm/radeon_state.c +++ b/drivers/char/drm/radeon_state.c | |||
@@ -3085,6 +3085,9 @@ static int radeon_cp_getparam(DRM_IOCTL_ARGS) | |||
3085 | else | 3085 | else |
3086 | value = RADEON_CARD_PCI; | 3086 | value = RADEON_CARD_PCI; |
3087 | break; | 3087 | break; |
3088 | case RADEON_PARAM_VBLANK_CRTC: | ||
3089 | value = radeon_vblank_crtc_get(dev); | ||
3090 | break; | ||
3088 | default: | 3091 | default: |
3089 | DRM_DEBUG("Invalid parameter %d\n", param.param); | 3092 | DRM_DEBUG("Invalid parameter %d\n", param.param); |
3090 | return DRM_ERR(EINVAL); | 3093 | return DRM_ERR(EINVAL); |
@@ -3141,6 +3144,9 @@ static int radeon_cp_setparam(DRM_IOCTL_ARGS) | |||
3141 | if (dev_priv->gart_info.table_size < RADEON_PCIGART_TABLE_SIZE) | 3144 | if (dev_priv->gart_info.table_size < RADEON_PCIGART_TABLE_SIZE) |
3142 | dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; | 3145 | dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; |
3143 | break; | 3146 | break; |
3147 | case RADEON_SETPARAM_VBLANK_CRTC: | ||
3148 | return radeon_vblank_crtc_set(dev, sp.value); | ||
3149 | break; | ||
3144 | default: | 3150 | default: |
3145 | DRM_DEBUG("Invalid parameter %d\n", sp.param); | 3151 | DRM_DEBUG("Invalid parameter %d\n", sp.param); |
3146 | return DRM_ERR(EINVAL); | 3152 | return DRM_ERR(EINVAL); |