Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
nv17_tv.h File Reference

Go to the source code of this file.

Data Structures

struct  nv17_tv_state
 
struct  nv17_tv_encoder
 
struct  nv17_tv_norm_params
 

Macros

#define to_tv_enc(x)
 
#define get_tv_norm(enc)   (&nv17_tv_norms[to_tv_enc(enc)->tv_norm])
 
#define nv_load_ptv(dev, state, reg)   nv_write_ptv(dev, NV_PTV_OFFSET + 0x##reg, state->ptv_##reg)
 
#define nv_save_ptv(dev, state, reg)   state->ptv_##reg = nv_read_ptv(dev, NV_PTV_OFFSET + 0x##reg)
 
#define nv_load_tv_enc(dev, state, reg)   nv_write_tv_enc(dev, 0x##reg, state->tv_enc[0x##reg])
 

Enumerations

enum  nv17_tv_norm {
  TV_NORM_PAL, TV_NORM_PAL_M, TV_NORM_PAL_N, TV_NORM_PAL_NC,
  TV_NORM_NTSC_M, TV_NORM_NTSC_J, NUM_LD_TV_NORMS, TV_NORM_HD480I = NUM_LD_TV_NORMS,
  TV_NORM_HD480P, TV_NORM_HD576I, TV_NORM_HD576P, TV_NORM_HD720P,
  TV_NORM_HD1080I, NUM_TV_NORMS
}
 

Functions

void nv17_tv_state_save (struct drm_device *dev, struct nv17_tv_state *state)
 
void nv17_tv_state_load (struct drm_device *dev, struct nv17_tv_state *state)
 
void nv17_tv_update_properties (struct drm_encoder *encoder)
 
void nv17_tv_update_rescaler (struct drm_encoder *encoder)
 
void nv17_ctv_update_rescaler (struct drm_encoder *encoder)
 

Variables

charnv17_tv_norm_names [NUM_TV_NORMS]
 
struct nv17_tv_norm_params nv17_tv_norms [NUM_TV_NORMS]
 
struct drm_display_mode nv17_tv_modes []
 

Macro Definition Documentation

#define get_tv_norm (   enc)    (&nv17_tv_norms[to_tv_enc(enc)->tv_norm])

Definition at line 113 of file nv17_tv.h.

#define nv_load_ptv (   dev,
  state,
  reg 
)    nv_write_ptv(dev, NV_PTV_OFFSET + 0x##reg, state->ptv_##reg)

Definition at line 156 of file nv17_tv.h.

#define nv_load_tv_enc (   dev,
  state,
  reg 
)    nv_write_tv_enc(dev, 0x##reg, state->tv_enc[0x##reg])

Definition at line 160 of file nv17_tv.h.

#define nv_save_ptv (   dev,
  state,
  reg 
)    state->ptv_##reg = nv_read_ptv(dev, NV_PTV_OFFSET + 0x##reg)

Definition at line 158 of file nv17_tv.h.

#define to_tv_enc (   x)
Value:

Definition at line 85 of file nv17_tv.h.

Enumeration Type Documentation

Enumerator:
TV_NORM_PAL 
TV_NORM_PAL_M 
TV_NORM_PAL_N 
TV_NORM_PAL_NC 
TV_NORM_NTSC_M 
TV_NORM_NTSC_J 
NUM_LD_TV_NORMS 
TV_NORM_HD480I 
TV_NORM_HD480P 
TV_NORM_HD576I 
TV_NORM_HD576P 
TV_NORM_HD720P 
TV_NORM_HD1080I 
NUM_TV_NORMS 

Definition at line 53 of file nv17_tv.h.

Function Documentation

void nv17_ctv_update_rescaler ( struct drm_encoder encoder)

Definition at line 543 of file nv17_tv_modes.c.

void nv17_tv_state_load ( struct drm_device dev,
struct nv17_tv_state state 
)

Definition at line 408 of file nv17_tv_modes.c.

void nv17_tv_state_save ( struct drm_device dev,
struct nv17_tv_state state 
)

Definition at line 381 of file nv17_tv_modes.c.

void nv17_tv_update_properties ( struct drm_encoder encoder)

Definition at line 472 of file nv17_tv_modes.c.

void nv17_tv_update_rescaler ( struct drm_encoder encoder)

Definition at line 527 of file nv17_tv_modes.c.

Variable Documentation

struct drm_display_mode nv17_tv_modes[]

Definition at line 441 of file nv17_tv_modes.c.

char* nv17_tv_norm_names[NUM_TV_NORMS]

Definition at line 35 of file nv17_tv_modes.c.