diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-16 02:17:35 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:27:06 -0400 |
commit | 02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef (patch) | |
tree | 7f8e859b1ea46c8e96a90528c092a0e01462feb6 /drivers/gpu/drm/nouveau/nouveau_pm.h | |
parent | 330c5988ee78045e6a731c3693251aaa5b0d14e3 (diff) |
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.h | 5 |
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 a401ec0a1269..81d27722964b 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); | |||
41 | void nouveau_perf_init(struct drm_device *); | 41 | void nouveau_perf_init(struct drm_device *); |
42 | void nouveau_perf_fini(struct drm_device *); | 42 | void nouveau_perf_fini(struct drm_device *); |
43 | 43 | ||
44 | /* nv50_pm.c */ | ||
45 | int nv50_pm_clock_get(struct drm_device *, u32 id); | ||
46 | void *nv50_pm_clock_pre(struct drm_device *, u32 id, int khz); | ||
47 | void nv50_pm_clock_set(struct drm_device *, void *); | ||
48 | |||
44 | #endif | 49 | #endif |