summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_reg.h
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki2010-01-26 19:39:20 +0100
committerBen Skeggs2010-02-09 03:48:08 +0100
commit69c9700b544e496dc3ccf472a4f3a76dcf4abaf7 (patch)
tree2d80752bfabdf77a42f7d432dfafed5be85f02f5 /drivers/gpu/drm/nouveau/nouveau_reg.h
parentdrm/nouveau: Add module options to disable acceleration. (diff)
downloadkernel-qcow2-linux-69c9700b544e496dc3ccf472a4f3a76dcf4abaf7.tar.gz
kernel-qcow2-linux-69c9700b544e496dc3ccf472a4f3a76dcf4abaf7.tar.xz
kernel-qcow2-linux-69c9700b544e496dc3ccf472a4f3a76dcf4abaf7.zip
drm/nouveau: Add getparam to get available PGRAPH units.
On nv50, this will be needed by applications using CUDA to know how much stack/local memory to allocate. Signed-off-by: Marcin Koƛcielnicki <koriakin@0x04.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_reg.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_reg.h b/drivers/gpu/drm/nouveau/nouveau_reg.h
index 251f1b3b38b9..aa9b310e41be 100644
--- a/drivers/gpu/drm/nouveau/nouveau_reg.h
+++ b/drivers/gpu/drm/nouveau/nouveau_reg.h
@@ -99,6 +99,7 @@
* the card will hang early on in the X init process.
*/
# define NV_PMC_ENABLE_UNK13 (1<<13)
+#define NV40_PMC_GRAPH_UNITS 0x00001540
#define NV40_PMC_BACKLIGHT 0x000015f0
# define NV40_PMC_BACKLIGHT_MASK 0x001f0000
#define NV40_PMC_1700 0x00001700