Path: blob/master/drivers/gpu/drm/nouveau/nouveau_pm.h
15112 views
/*1* Copyright 2010 Red Hat Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*21* Authors: Ben Skeggs22*/2324#ifndef __NOUVEAU_PM_H__25#define __NOUVEAU_PM_H__2627/* nouveau_pm.c */28int nouveau_pm_init(struct drm_device *dev);29void nouveau_pm_fini(struct drm_device *dev);30void nouveau_pm_resume(struct drm_device *dev);3132/* nouveau_volt.c */33void nouveau_volt_init(struct drm_device *);34void nouveau_volt_fini(struct drm_device *);35int nouveau_volt_vid_lookup(struct drm_device *, int voltage);36int nouveau_volt_lvl_lookup(struct drm_device *, int vid);37int nouveau_voltage_gpio_get(struct drm_device *);38int nouveau_voltage_gpio_set(struct drm_device *, int voltage);3940/* nouveau_perf.c */41void nouveau_perf_init(struct drm_device *);42void nouveau_perf_fini(struct drm_device *);4344/* nouveau_mem.c */45void nouveau_mem_timing_init(struct drm_device *);46void nouveau_mem_timing_fini(struct drm_device *);4748/* nv04_pm.c */49int nv04_pm_clock_get(struct drm_device *, u32 id);50void *nv04_pm_clock_pre(struct drm_device *, struct nouveau_pm_level *,51u32 id, int khz);52void nv04_pm_clock_set(struct drm_device *, void *);5354/* nv50_pm.c */55int nv50_pm_clock_get(struct drm_device *, u32 id);56void *nv50_pm_clock_pre(struct drm_device *, struct nouveau_pm_level *,57u32 id, int khz);58void nv50_pm_clock_set(struct drm_device *, void *);5960/* nva3_pm.c */61int nva3_pm_clock_get(struct drm_device *, u32 id);62void *nva3_pm_clock_pre(struct drm_device *, struct nouveau_pm_level *,63u32 id, int khz);64void nva3_pm_clock_set(struct drm_device *, void *);6566/* nouveau_temp.c */67void nouveau_temp_init(struct drm_device *dev);68void nouveau_temp_fini(struct drm_device *dev);69void nouveau_temp_safety_checks(struct drm_device *dev);70int nv40_temp_get(struct drm_device *dev);71int nv84_temp_get(struct drm_device *dev);7273#endif747576