Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
nouveau_pm.h File Reference
#include <subdev/bios/pll.h>
#include <subdev/clock.h>

Go to the source code of this file.

Data Structures

struct  nouveau_pm_voltage_level
 
struct  nouveau_pm_voltage
 
struct  nouveau_pm_memtiming
 
struct  nouveau_pm_tbl_header
 
struct  nouveau_pm_tbl_entry
 
struct  nouveau_pm_profile_func
 
struct  nouveau_pm_profile
 
struct  nouveau_pm_level
 
struct  nouveau_pm_temp_sensor_constants
 
struct  nouveau_pm_threshold_temp
 
struct  nouveau_pm
 
struct  nouveau_mem_exec_func
 

Macros

#define NV_MEM_CL_DDR2_MAX   8
 
#define NV_MEM_WR_DDR2_MAX   9
 
#define NV_MEM_CL_DDR3_MAX   17
 
#define NV_MEM_WR_DDR3_MAX   17
 
#define NV_MEM_CL_GDDR3_MAX   16
 
#define NV_MEM_WR_GDDR3_MAX   18
 
#define NV_MEM_CL_GDDR5_MAX   21
 
#define NV_MEM_WR_GDDR5_MAX   20
 
#define NOUVEAU_PM_MAX_LEVEL   8
 

Functions

int nouveau_mem_exec (struct nouveau_mem_exec_func *, struct nouveau_pm_level *)
 
int nouveau_pm_init (struct drm_device *dev)
 
void nouveau_pm_fini (struct drm_device *dev)
 
void nouveau_pm_resume (struct drm_device *dev)
 
void nouveau_pm_trigger (struct drm_device *dev)
 
void nouveau_volt_init (struct drm_device *)
 
void nouveau_volt_fini (struct drm_device *)
 
int nouveau_volt_vid_lookup (struct drm_device *, int voltage)
 
int nouveau_volt_lvl_lookup (struct drm_device *, int vid)
 
int nouveau_voltage_gpio_get (struct drm_device *)
 
int nouveau_voltage_gpio_set (struct drm_device *, int voltage)
 
void nouveau_perf_init (struct drm_device *)
 
void nouveau_perf_fini (struct drm_device *)
 
u8nouveau_perf_rammap (struct drm_device *, u32 freq, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
 
u8nouveau_perf_ramcfg (struct drm_device *, u32 freq, u8 *ver, u8 *len)
 
u8nouveau_perf_timing (struct drm_device *, u32 freq, u8 *ver, u8 *len)
 
void nouveau_mem_timing_init (struct drm_device *)
 
void nouveau_mem_timing_fini (struct drm_device *)
 
int nv04_pm_clocks_get (struct drm_device *, struct nouveau_pm_level *)
 
voidnv04_pm_clocks_pre (struct drm_device *, struct nouveau_pm_level *)
 
int nv04_pm_clocks_set (struct drm_device *, void *)
 
int nv40_pm_clocks_get (struct drm_device *, struct nouveau_pm_level *)
 
voidnv40_pm_clocks_pre (struct drm_device *, struct nouveau_pm_level *)
 
int nv40_pm_clocks_set (struct drm_device *, void *)
 
int nv40_pm_pwm_get (struct drm_device *, int, u32 *, u32 *)
 
int nv40_pm_pwm_set (struct drm_device *, int, u32, u32)
 
int nv50_pm_clocks_get (struct drm_device *, struct nouveau_pm_level *)
 
voidnv50_pm_clocks_pre (struct drm_device *, struct nouveau_pm_level *)
 
int nv50_pm_clocks_set (struct drm_device *, void *)
 
int nv50_pm_pwm_get (struct drm_device *, int, u32 *, u32 *)
 
int nv50_pm_pwm_set (struct drm_device *, int, u32, u32)
 
int nva3_pm_clocks_get (struct drm_device *, struct nouveau_pm_level *)
 
voidnva3_pm_clocks_pre (struct drm_device *, struct nouveau_pm_level *)
 
int nva3_pm_clocks_set (struct drm_device *, void *)
 
int nvc0_pm_clocks_get (struct drm_device *, struct nouveau_pm_level *)
 
voidnvc0_pm_clocks_pre (struct drm_device *, struct nouveau_pm_level *)
 
int nvc0_pm_clocks_set (struct drm_device *, void *)
 
int nouveau_mem_timing_calc (struct drm_device *, u32 freq, struct nouveau_pm_memtiming *)
 
void nouveau_mem_timing_read (struct drm_device *, struct nouveau_pm_memtiming *)
 

Variables

struct nouveau_pm_profile_func nouveau_pm_static_profile_func
 

Macro Definition Documentation

#define NOUVEAU_PM_MAX_LEVEL   8

Definition at line 112 of file nouveau_pm.h.

#define NV_MEM_CL_DDR2_MAX   8

Definition at line 46 of file nouveau_pm.h.

#define NV_MEM_CL_DDR3_MAX   17

Definition at line 48 of file nouveau_pm.h.

#define NV_MEM_CL_GDDR3_MAX   16

Definition at line 50 of file nouveau_pm.h.

#define NV_MEM_CL_GDDR5_MAX   21

Definition at line 52 of file nouveau_pm.h.

#define NV_MEM_WR_DDR2_MAX   9

Definition at line 47 of file nouveau_pm.h.

#define NV_MEM_WR_DDR3_MAX   17

Definition at line 49 of file nouveau_pm.h.

#define NV_MEM_WR_GDDR3_MAX   18

Definition at line 51 of file nouveau_pm.h.

#define NV_MEM_WR_GDDR5_MAX   20

Definition at line 53 of file nouveau_pm.h.

Function Documentation

int nouveau_mem_exec ( struct nouveau_mem_exec_func ,
struct nouveau_pm_level  
)

Definition at line 543 of file nouveau_mem.c.

int nouveau_mem_timing_calc ( struct drm_device ,
u32  freq,
struct nouveau_pm_memtiming  
)

Definition at line 395 of file nouveau_mem.c.

void nouveau_mem_timing_fini ( struct drm_device )
void nouveau_mem_timing_init ( struct drm_device )
void nouveau_mem_timing_read ( struct drm_device ,
struct nouveau_pm_memtiming  
)

Definition at line 474 of file nouveau_mem.c.

void nouveau_perf_fini ( struct drm_device )

Definition at line 414 of file nouveau_perf.c.

void nouveau_perf_init ( struct drm_device )

Definition at line 293 of file nouveau_perf.c.

u8* nouveau_perf_ramcfg ( struct drm_device ,
u32  freq,
u8 ver,
u8 len 
)

Definition at line 144 of file nouveau_perf.c.

u8* nouveau_perf_rammap ( struct drm_device ,
u32  freq,
u8 ver,
u8 hdr,
u8 cnt,
u8 len 
)

Definition at line 88 of file nouveau_perf.c.

u8* nouveau_perf_timing ( struct drm_device ,
u32  freq,
u8 ver,
u8 len 
)

Definition at line 164 of file nouveau_perf.c.

void nouveau_pm_fini ( struct drm_device dev)

Definition at line 903 of file nouveau_pm.c.

int nouveau_pm_init ( struct drm_device dev)

Definition at line 798 of file nouveau_pm.c.

void nouveau_pm_resume ( struct drm_device dev)

Definition at line 930 of file nouveau_pm.c.

void nouveau_pm_trigger ( struct drm_device dev)

Definition at line 120 of file nouveau_pm.c.

void nouveau_volt_fini ( struct drm_device )

Definition at line 245 of file nouveau_volt.c.

void nouveau_volt_init ( struct drm_device )

Definition at line 106 of file nouveau_volt.c.

int nouveau_volt_lvl_lookup ( struct drm_device ,
int  vid 
)

Definition at line 92 of file nouveau_volt.c.

int nouveau_volt_vid_lookup ( struct drm_device ,
int  voltage 
)

Definition at line 78 of file nouveau_volt.c.

int nouveau_voltage_gpio_get ( struct drm_device )

Definition at line 37 of file nouveau_volt.c.

int nouveau_voltage_gpio_set ( struct drm_device ,
int  voltage 
)

Definition at line 56 of file nouveau_volt.c.

int nv04_pm_clocks_get ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 36 of file nv04_pm.c.

void* nv04_pm_clocks_pre ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 83 of file nv04_pm.c.

int nv04_pm_clocks_set ( struct drm_device ,
void  
)

Definition at line 123 of file nv04_pm.c.

int nv40_pm_clocks_get ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 97 of file nv40_pm.c.

void* nv40_pm_clocks_pre ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 154 of file nv40_pm.c.

int nv40_pm_clocks_set ( struct drm_device ,
void  
)

Definition at line 239 of file nv40_pm.c.

int nv40_pm_pwm_get ( struct drm_device ,
int  ,
u32 ,
u32  
)
int nv40_pm_pwm_set ( struct drm_device ,
int  ,
u32  ,
u32   
)
int nv50_pm_clocks_get ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 349 of file nv50_pm.c.

void* nv50_pm_clocks_pre ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 607 of file nv50_pm.c.

int nv50_pm_clocks_set ( struct drm_device ,
void  
)

Definition at line 813 of file nv50_pm.c.

int nv50_pm_pwm_get ( struct drm_device ,
int  ,
u32 ,
u32  
)
int nv50_pm_pwm_set ( struct drm_device ,
int  ,
u32  ,
u32   
)
int nva3_pm_clocks_get ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 243 of file nva3_pm.c.

void* nva3_pm_clocks_pre ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 274 of file nva3_pm.c.

int nva3_pm_clocks_set ( struct drm_device ,
void  
)

Definition at line 581 of file nva3_pm.c.

int nvc0_pm_clocks_get ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 152 of file nvc0_pm.c.

void* nvc0_pm_clocks_pre ( struct drm_device ,
struct nouveau_pm_level  
)

Definition at line 365 of file nvc0_pm.c.

int nvc0_pm_clocks_set ( struct drm_device ,
void  
)

Definition at line 583 of file nvc0_pm.c.

Variable Documentation

struct nouveau_pm_profile_func nouveau_pm_static_profile_func

Definition at line 218 of file nouveau_pm.c.