diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2009-01-30 11:18:54 +1000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2009-02-04 13:22:56 +1000 |
commit | cb85630c02ddb46f168064befb2296d46b69f57a (patch) | |
tree | 551821123ef3f73431fcc1ac81c52abcd0fa44b5 /shared-core/nouveau_state.c | |
parent | 7a389aab86bde183de8806878b8cf055f662ee73 (diff) |
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.
Diffstat (limited to 'shared-core/nouveau_state.c')
-rw-r--r-- | shared-core/nouveau_state.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |