radeon: add userspace call for mm support check

main
Dave Airlie 2008-08-14 09:11:15 +10:00
parent 957c71ff52
commit d59f41b8cf
1 changed files with 3 additions and 0 deletions

View File

@ -3121,6 +3121,9 @@ static int radeon_cp_getparam(struct drm_device *dev, void *data, struct drm_fil
/* BSD TODO */
value = 1;
break;
case RADEON_PARAM_KERNEL_MM:
value = !dev_priv->mm_disabled;
break;
default:
DRM_DEBUG( "Invalid parameter %d\n", param->param );
return -EINVAL;