drm/nouveau: Add getparam to get available PGRAPH units.
authorMarcin Kościelnicki <koriakin@0x04.net>
Tue, 26 Jan 2010 18:39:20 +0000 (18:39 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 9 Feb 2010 02:48:08 +0000 (12:48 +1000)
commit69c9700b544e496dc3ccf472a4f3a76dcf4abaf7
tree2d80752bfabdf77a42f7d432dfafed5be85f02f5
parenta32ed69d7bb3cd259d813d71281d62993b9a70fd
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>
drivers/gpu/drm/nouveau/nouveau_reg.h
drivers/gpu/drm/nouveau/nouveau_state.c
include/drm/nouveau_drm.h