From cb85630c02ddb46f168064befb2296d46b69f57a Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 30 Jan 2009 11:18:54 +1000 Subject: nouveau: bring in new mm api definitions, without the actual mm code Use of the new bits is guarded with a mm_enabled=0 hardcode. --- shared-core/nouveau_state.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shared-core/nouveau_state.c') diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c index 4e0140a5..0b6002ce 100644 --- a/shared-core/nouveau_state.c +++ b/shared-core/nouveau_state.c @@ -630,6 +630,15 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data, struct drm_file * case NOUVEAU_GETPARAM_AGP_SIZE: getparam->value=dev_priv->gart_info.aper_size; break; + case NOUVEAU_GETPARAM_MM_ENABLED: + getparam->value = 0; + break; + case NOUVEAU_GETPARAM_VM_VRAM_BASE: + if (dev_priv->card_type >= NV_50) + getparam->value = 0x20000000; + else + getparam->value = 0; + break; default: DRM_ERROR("unknown parameter %lld\n", getparam->param); return -EINVAL; -- cgit v1.2.3