diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-11-15 19:17:53 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-03 00:11:57 -0500 |
commit | 6d6c5a157af45a5bd50ab913b07d826811a9ea0a (patch) | |
tree | d1e823cef00bc8dad50a086656e924a5af8f5fec | |
parent | 2cb3d3b6c64d37514fd8865748de66ff35a489af (diff) |
drm/nouveau: remove some useless GETPARAMs
These have been unused since UMS support was ripped out, so lets remove
them completely.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 17 | ||||
-rw-r--r-- | include/drm/nouveau_drm.h | 3 |
2 files changed, 1 insertions, 19 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 75e70022fbd..35b28406caf 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -1074,21 +1074,6 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data, | |||
1074 | else | 1074 | else |
1075 | getparam->value = NV_PCI; | 1075 | getparam->value = NV_PCI; |
1076 | break; | 1076 | break; |
1077 | case NOUVEAU_GETPARAM_FB_PHYSICAL: | ||
1078 | getparam->value = dev_priv->fb_phys; | ||
1079 | break; | ||
1080 | case NOUVEAU_GETPARAM_AGP_PHYSICAL: | ||
1081 | getparam->value = dev_priv->gart_info.aper_base; | ||
1082 | break; | ||
1083 | case NOUVEAU_GETPARAM_PCI_PHYSICAL: | ||
1084 | if (dev->sg) { | ||
1085 | getparam->value = (unsigned long)dev->sg->virtual; | ||
1086 | } else { | ||
1087 | NV_ERROR(dev, "Requested PCIGART address, " | ||
1088 | "while no PCIGART was created\n"); | ||
1089 | return -EINVAL; | ||
1090 | } | ||
1091 | break; | ||
1092 | case NOUVEAU_GETPARAM_FB_SIZE: | 1077 | case NOUVEAU_GETPARAM_FB_SIZE: |
1093 | getparam->value = dev_priv->fb_available_size; | 1078 | getparam->value = dev_priv->fb_available_size; |
1094 | break; | 1079 | break; |
@@ -1096,7 +1081,7 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data, | |||
1096 | getparam->value = dev_priv->gart_info.aper_size; | 1081 | getparam->value = dev_priv->gart_info.aper_size; |
1097 | break; | 1082 | break; |
1098 | case NOUVEAU_GETPARAM_VM_VRAM_BASE: | 1083 | case NOUVEAU_GETPARAM_VM_VRAM_BASE: |
1099 | getparam->value = dev_priv->vm_vram_base; | 1084 | getparam->value = 0; /* deprecated */ |
1100 | break; | 1085 | break; |
1101 | case NOUVEAU_GETPARAM_PTIMER_TIME: | 1086 | case NOUVEAU_GETPARAM_PTIMER_TIME: |
1102 | getparam->value = dev_priv->engine.timer.read(dev); | 1087 | getparam->value = dev_priv->engine.timer.read(dev); |
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h index 39aa0fd6a52..e2cfe80f6fc 100644 --- a/include/drm/nouveau_drm.h +++ b/include/drm/nouveau_drm.h | |||
@@ -71,11 +71,8 @@ struct drm_nouveau_gpuobj_free { | |||
71 | #define NOUVEAU_GETPARAM_PCI_VENDOR 3 | 71 | #define NOUVEAU_GETPARAM_PCI_VENDOR 3 |
72 | #define NOUVEAU_GETPARAM_PCI_DEVICE 4 | 72 | #define NOUVEAU_GETPARAM_PCI_DEVICE 4 |
73 | #define NOUVEAU_GETPARAM_BUS_TYPE 5 | 73 | #define NOUVEAU_GETPARAM_BUS_TYPE 5 |
74 | #define NOUVEAU_GETPARAM_FB_PHYSICAL 6 | ||
75 | #define NOUVEAU_GETPARAM_AGP_PHYSICAL 7 | ||
76 | #define NOUVEAU_GETPARAM_FB_SIZE 8 | 74 | #define NOUVEAU_GETPARAM_FB_SIZE 8 |
77 | #define NOUVEAU_GETPARAM_AGP_SIZE 9 | 75 | #define NOUVEAU_GETPARAM_AGP_SIZE 9 |
78 | #define NOUVEAU_GETPARAM_PCI_PHYSICAL 10 | ||
79 | #define NOUVEAU_GETPARAM_CHIPSET_ID 11 | 76 | #define NOUVEAU_GETPARAM_CHIPSET_ID 11 |
80 | #define NOUVEAU_GETPARAM_VM_VRAM_BASE 12 | 77 | #define NOUVEAU_GETPARAM_VM_VRAM_BASE 12 |
81 | #define NOUVEAU_GETPARAM_GRAPH_UNITS 13 | 78 | #define NOUVEAU_GETPARAM_GRAPH_UNITS 13 |