aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_pm.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-16 16:17:35 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 16:27:06 +1000
commit02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef (patch)
tree7f8e859b1ea46c8e96a90528c092a0e01462feb6 /drivers/gpu/drm/nouveau/nouveau_pm.h
parent330c5988ee78045e6a731c3693251aaa5b0d14e3 (diff)
downloadkernel_samsung_smdk4412-02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef.zip
kernel_samsung_smdk4412-02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef.tar.gz
kernel_samsung_smdk4412-02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef.tar.bz2
drm/nv50: import initial clock get/set routines + hook up pm engine
This will make nouveau_pm attempt to report the card's current performance level both during bootup, and through sysfs. This is a very initial implementation, and can be improved a *lot* Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_pm.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_pm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.h b/drivers/gpu/drm/nouveau/nouveau_pm.h
index a401ec0..81d2772 100644
--- a/drivers/gpu/drm/nouveau/nouveau_pm.h
+++ b/drivers/gpu/drm/nouveau/nouveau_pm.h
@@ -41,4 +41,9 @@ int nouveau_voltage_gpio_set(struct drm_device *, int voltage);
void nouveau_perf_init(struct drm_device *);
void nouveau_perf_fini(struct drm_device *);
+/* nv50_pm.c */
+int nv50_pm_clock_get(struct drm_device *, u32 id);
+void *nv50_pm_clock_pre(struct drm_device *, u32 id, int khz);
+void nv50_pm_clock_set(struct drm_device *, void *);
+
#endif