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

Go to the source code of this file.

Macros

#define MASK(field)
 
#define XLATE(src, srclowbit, outfield)
 
#define NV04_CURSOR_SIZE   32
 
#define NV10_CURSOR_SIZE   64
 

Functions

void NVWriteVgaSeq (struct drm_device *, int head, uint8_t index, uint8_t value)
 
uint8_t NVReadVgaSeq (struct drm_device *, int head, uint8_t index)
 
void NVWriteVgaGr (struct drm_device *, int head, uint8_t index, uint8_t value)
 
uint8_t NVReadVgaGr (struct drm_device *, int head, uint8_t index)
 
void NVSetOwner (struct drm_device *, int owner)
 
void NVBlankScreen (struct drm_device *, int head, bool blank)
 
int nouveau_hw_get_pllvals (struct drm_device *, enum nvbios_pll_type plltype, struct nouveau_pll_vals *pllvals)
 
int nouveau_hw_pllvals_to_clk (struct nouveau_pll_vals *pllvals)
 
int nouveau_hw_get_clock (struct drm_device *, enum nvbios_pll_type plltype)
 
void nouveau_hw_save_vga_fonts (struct drm_device *, bool save)
 
void nouveau_hw_save_state (struct drm_device *, int head, struct nv04_mode_state *state)
 
void nouveau_hw_load_state (struct drm_device *, int head, struct nv04_mode_state *state)
 
void nouveau_hw_load_state_palette (struct drm_device *, int head, struct nv04_mode_state *state)
 
void nouveau_calc_arb (struct drm_device *, int vclk, int bpp, int *burst, int *lwm)
 

Macro Definition Documentation

#define MASK (   field)
Value:
( \
(0xffffffff >> (31 - ((1 ? field) - (0 ? field)))) << (0 ? field))

Definition at line 31 of file nouveau_hw.h.

#define NV04_CURSOR_SIZE   32

Definition at line 329 of file nouveau_hw.h.

#define NV10_CURSOR_SIZE   64

Definition at line 331 of file nouveau_hw.h.

#define XLATE (   src,
  srclowbit,
  outfield 
)
Value:
( \
(((src) >> (srclowbit)) << (0 ? outfield)) & MASK(outfield))

Definition at line 34 of file nouveau_hw.h.

Function Documentation

void nouveau_calc_arb ( struct drm_device ,
int  vclk,
int  bpp,
int burst,
int lwm 
)

Definition at line 253 of file nouveau_calc.c.

int nouveau_hw_get_clock ( struct drm_device ,
enum nvbios_pll_type  plltype 
)

Definition at line 217 of file nouveau_hw.c.

int nouveau_hw_get_pllvals ( struct drm_device ,
enum nvbios_pll_type  plltype,
struct nouveau_pll_vals pllvals 
)

Definition at line 166 of file nouveau_hw.c.

void nouveau_hw_load_state ( struct drm_device ,
int  head,
struct nv04_mode_state state 
)

Definition at line 818 of file nouveau_hw.c.

void nouveau_hw_load_state_palette ( struct drm_device ,
int  head,
struct nv04_mode_state state 
)

Definition at line 786 of file nouveau_hw.c.

int nouveau_hw_pllvals_to_clk ( struct nouveau_pll_vals pllvals)

Definition at line 207 of file nouveau_hw.c.

void nouveau_hw_save_state ( struct drm_device ,
int  head,
struct nv04_mode_state state 
)

Definition at line 804 of file nouveau_hw.c.

void nouveau_hw_save_vga_fonts ( struct drm_device ,
bool  save 
)

Definition at line 306 of file nouveau_hw.c.

void NVBlankScreen ( struct drm_device ,
int  head,
bool  blank 
)

Definition at line 112 of file nouveau_hw.c.

uint8_t NVReadVgaGr ( struct drm_device ,
int  head,
uint8_t  index 
)

Definition at line 62 of file nouveau_hw.c.

uint8_t NVReadVgaSeq ( struct drm_device ,
int  head,
uint8_t  index 
)

Definition at line 48 of file nouveau_hw.c.

void NVSetOwner ( struct drm_device ,
int  owner 
)

Definition at line 87 of file nouveau_hw.c.

void NVWriteVgaGr ( struct drm_device ,
int  head,
uint8_t  index,
uint8_t  value 
)

Definition at line 55 of file nouveau_hw.c.

void NVWriteVgaSeq ( struct drm_device ,
int  head,
uint8_t  index,
uint8_t  value 
)

Definition at line 41 of file nouveau_hw.c.